Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 57.26 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2012-12-03 18:48:54.889310)
  2. Working directory: /opt/noc
  3. <type 'exceptions.TypeError'>
  4. rule() got an unexpected keyword argument 'instance'
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/main/models/__init__.py (Line: 962)
  8. Function: __call__
  9.   955                 with self.compiled_lock:
  10.   956                     self.compiled_pyrules[self.name] = f
  11.   957                     self.compiled_changed[self.name] = t
  12.   958             # Check interface
  13.   959             i = self.interface_class()
  14.   960             kwargs = i.clean(**kwargs)
  15.   961             # Evaluate pyRule
  16.   962 ==>         result = f(**kwargs)
  17.   963             # Check and result
  18.   964             return i.clean_result(result)
  19.   965    
  20.   966         @classmethod
  21.   967         def call(cls, py_rule_name, **kwargs):
  22.   968             """
  23. Variables:
  24.  requires_recompile = True
  25.                   f = <function rule at 0x5dc67d0>
  26.                   i = <noc.sa.interfaces.idbpresave.IDBPreSave object at 0x62e7990>
  27.                self = <PyRule: test_pyrule>
  28.                   t = datetime.datetime(2012, 12, 3, 18, 48, 54, 888840)
  29.              kwargs = {'instance': <ManagedObject: 192.168.100.46>, 'model': <class 'noc.sa.models.managedobject.ManagedObject'>}
  30. ------------------------------------------------------------------------
  31. File: /opt/noc/main/models/__init__.py (Line: 1621)
  32. Function: pre_save_dispatch
  33. 1614         ## Dispatcher for pre-save
  34. 1615         ##
  35. 1616         @classmethod
  36. 1617         def pre_save_dispatch(cls, **kwargs):
  37. 1618             m = kwargs["sender"]._meta.db_table
  38. 1619             if m in cls._pre_save_triggers:
  39. 1620                 for t in cls._pre_save_triggers[m]:
  40. 1621 ==>                 t(model=kwargs["sender"], instance=kwargs["instance"])
  41. 1622    
  42. 1623         ##
  43. 1624         ## Dispatcher for post-save
  44. 1625         ##
  45. 1626         @classmethod
  46. 1627         def post_save_dispatch(cls, **kwargs):
  47. Variables:
  48.                 cls = <class 'noc.main.models.DBTrigger'>
  49.                   m = 'sa_managedobject'
  50.                   t = <PyRule: test_pyrule>
  51.              kwargs = {'raw': False, 'signal': <django.dispatch.dispatcher.Signal object at 0x372e7d0>, 'sender': <class 'noc.sa.models.managedobject.ManagedObject'>, 'using': 'default', 'instance': <ManagedObject: 192.168.100.46>}
  52. ------------------------------------------------------------------------
  53. File: /opt/noc/contrib/lib/django/dispatch/dispatcher.py (Line: 172)
  54. Function: send
  55.  165             Returns a list of tuple pairs [(receiver, response), ... ].
  56.  166             """
  57.   167             responses = []
  58.   168             if not self.receivers:
  59.   169                 return responses
  60.   170    
  61.   171             for receiver in self._live_receivers(_make_id(sender)):
  62.   172 ==>             response = receiver(signal=self, sender=sender, **named)
  63.   173                 responses.append((receiver, response))
  64.   174             return responses
  65.   175    
  66.   176         def send_robust(self, sender, **named):
  67.   177             """
  68.  178             Send signal from sender to all connected receivers catching errors.
  69. Variables:
  70.               named = {'instance': <ManagedObject: 192.168.100.46>, 'using': 'default', 'raw': False}
  71.           responses = [(<function audit_trail_save at 0x3d4fc08>, None)]
  72.                self = <django.dispatch.dispatcher.Signal object at 0x372e7d0>
  73.            receiver = <bound method ?.pre_save_dispatch of <class 'noc.main.models.DBTrigger'>>
  74.            response = None
  75.              sender = <class 'noc.sa.models.managedobject.ManagedObject'>
  76. ------------------------------------------------------------------------
  77. File: /opt/noc/contrib/lib/django/db/models/base.py (Line: 486)
  78. Function: save_base
  79.  479                 meta = cls._meta
  80.  480                 if not meta.proxy:
  81.  481                     origin = cls
  82.  482             else:
  83.  483                 meta = cls._meta
  84.  484    
  85.  485             if origin and not meta.auto_created:
  86.  486 ==>             signals.pre_save.send(sender=origin, instance=self, raw=raw, using=using)
  87.  487    
  88.  488             # If we are in a raw save, save the object exactly as presented.
  89.  489             # That means that we don't try to be smart about saving attributes
  90.  490             # that might have come from the parent class - we just save the
  91.  491             # attributes we have been given to the class we have been given.
  92.  492             # We also go through this process to defer the save of proxy objects
  93. Variables:
  94.              origin = <class 'noc.sa.models.managedobject.ManagedObject'>
  95.        force_insert = False
  96.                self = <ManagedObject: 192.168.100.46>
  97.        force_update = False
  98.                 raw = False
  99.                meta = <Options for ManagedObject>
  100.               using = 'default'
  101.                 cls = <class 'noc.sa.models.managedobject.ManagedObject'>
  102. ------------------------------------------------------------------------
  103. File: /opt/noc/contrib/lib/django/db/models/base.py (Line: 463)
  104. Function: save
  105.  456    
  106.  457             The 'force_insert' and 'force_update' parameters can be used to insist
  107.  458             that the "save" must be an SQL insert or update (or equivalent for
  108.  459             non-SQL backends), respectively. Normally, they should not be set.
  109.  460             """
  110.   461             if force_insert and force_update:
  111.   462                 raise ValueError("Cannot force both insert and updating in model saving.")
  112.   463 ==>         self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  113.   464    
  114.   465         save.alters_data = True
  115.   466    
  116.   467         def save_base(self, raw=False, cls=None, origin=None, force_insert=False,
  117.   468                 force_update=False, using=None):
  118.   469             """
  119. Variables:
  120.               using = None
  121.                self = <ManagedObject: 192.168.100.46>
  122.        force_update = False
  123.        force_insert = False
  124. ------------------------------------------------------------------------
  125. File: /opt/noc/sa/models/managedobject.py (Line: 218)
  126. Function: save
  127.  211             """
  128.   212             # Get previous version
  129.   213             if self.id:
  130.   214                 old = ManagedObject.objects.get(id=self.id)
  131.   215             else:
  132.   216                 old = None
  133.   217             # Save
  134.   218 ==>         super(ManagedObject, self).save()
  135.   219             # Notify changes
  136.   220             if ((old is None and self.trap_source_ip) or
  137.   221                 (old and self.trap_source_ip != old.trap_source_ip) or
  138.   222                 (old and self.activator.id != old.activator.id)):
  139.   223                 self.sae_refresh_event_filter()
  140.   224             # Process config
  141. Variables:
  142.                 self = <ManagedObject: 192.168.100.46>
  143.                  old = <ManagedObject: 192.168.100.46>
  144. ------------------------------------------------------------------------
  145. File: /opt/noc/contrib/lib/django/contrib/admin/options.py (Line: 709)
  146. Function: save_model
  147.   702             """
  148.  703             return form.save(commit=False)
  149.  704    
  150.  705         def save_model(self, request, obj, form, change):
  151.  706             """
  152.   707             Given a model instance save it to the database.
  153.   708             """
  154.  709 ==>         obj.save()
  155.  710    
  156.  711         def delete_model(self, request, obj):
  157.  712             """
  158.   713             Given a model instance delete it from the database.
  159.   714             """
  160.  715             obj.delete()
  161. Variables:
  162.             request = <WSGIRequest
  163. path:/sa/managedobject/4/,
  164. GET:<QueryDict: {}>,
  165. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [u'11'], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [u'9'], u'trap_community': [u''], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Zyxel'], u'managedobjectattribute_set-5-managed_object': [u'4'], u'managedobjectattribute_set-6-id': [u''], u'managedobjectattribute_set-4-managed_object': [u'4'], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'1'], u'super_password': [u''], u'profile_name': [u'Zyxel.ZyNOS'], u'managedobjectattribute_set-3-managed_object': [u'4'], u'managedobjectattribute_set-3-value': [u'3.90(TX.3)'], u'managedobjectattribute_set-6-managed_object': [u'4'], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'_save': [u'Save'], u'managedobjectattribute_set-0-key': [u'Boot PROM'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ES-2024A'], u'managedobjectattribute_set-4-id': [u''], u'managedobjectattribute_set-2-managed_object': [u'4'], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [u''], u'csrfmiddlewaretoken': [u'3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2'], u'scheme': [u'0'], u'managedobjectattribute_set-__prefix__-managed_object': [u'4'], u'managedobjectattribute_set-0-managed_object': [u'4'], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'tags': [u''], u'config_validation_rule': [u''], u'managedobjectattribute_set-1-id': [u'8'], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'vlitvin'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.100.46'], u'password': [u'IrlsaQ3kPk'], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'vrf': [u''], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'192.168.100.46'], u'managedobjectattribute_set-0-value': [u'1.08'], u'object_profile': [u'1'], u'trap_source_ip': [u''], u'managedobjectattribute_set-2-id': [u'10'], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'managedobjectattribute_set-__prefix__-value': [u''], u'max_scripts': [u''], u'snmp_ro': [u''], u'managedobjectattribute_set-1-managed_object': [u'4'], u'repo_path': [u'sw46']}>,
  166. COOKIES:{'csrftoken': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  167. 'sessionid': 'faae0f00cf0d481fd6967aedf6a70ce6'},
  168. META:{'CONTENT_LENGTH': '7291',
  169. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundary0yS85BrongmWjRrV',
  170. 'CSRF_COOKIE': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  171. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  172. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  173. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  174. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  175. 'HTTP_CONNECTION': 'Keep-Alive',
  176. 'HTTP_COOKIE': 'sessionid=faae0f00cf0d481fd6967aedf6a70ce6; csrftoken=3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  177. 'HTTP_HOST': '127.0.0.1:8000',
  178. 'HTTP_ORIGIN': 'http://nocproject.amsterdamtelecom.ru',
  179. 'HTTP_REFERER': 'http://nocproject.amsterdamtelecom.ru/sa/managedobject/4/',
  180. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11',
  181. 'HTTP_X_FORWARDED_FOR': '178.236.128.178',
  182. 'HTTP_X_FORWARDED_HOST': 'nocproject.amsterdamtelecom.ru',
  183. 'HTTP_X_FORWARDED_SERVER': 'nocproject.amsterdamtelecom.ru',
  184. 'PATH_INFO': u'/sa/managedobject/4/',
  185. 'QUERY_STRING': '',
  186. 'REMOTE_ADDR': '127.0.0.1',
  187. 'REQUEST_METHOD': 'POST',
  188. 'SCRIPT_NAME': u'',
  189. 'SERVER_NAME': '127.0.0.1',
  190. 'SERVER_PORT': '8000',
  191. 'SERVER_PROTOCOL': 'HTTP/1.1',
  192. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x332b030>,
  193. 'wsgi.input': <io.BytesIO object at 0x5d12170>,
  194. 'wsgi.multiprocess': True,
  195. 'wsgi.multithread': False,
  196. 'wsgi.run_once': False,
  197. 'wsgi.url_scheme': 'http',
  198. 'wsgi.version': (1, 0)}>
  199.                self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x5448410>
  200.                 obj = <ManagedObject: 192.168.100.46>
  201.                form = <django.forms.models.ManagedObjectForm object at 0x5cc1950>
  202.              change = True
  203. ------------------------------------------------------------------------
  204. File: /opt/noc/sa/apps/managedobject/views.py (Line: 268)
  205. Function: save_model
  206.  261             if obj:
  207.  262                 return obj.has_access(request.user)
  208.  263             else:
  209.  264                 return admin.ModelAdmin.has_delete_permission(self, request)
  210.  265        
  211.  266         def save_model(self, request, obj, form, change):
  212.  267             # Save before checking
  213.  268 ==>         admin.ModelAdmin.save_model(self, request, obj, form, change)
  214.  269             # Then check
  215.  270             if not obj.has_access(request.user):
  216.  271                 # Will be rolled back by exception handler
  217.  272                 raise PermissionDenied("Permission denied")
  218.  273    
  219.  274         def test_access(self, request, queryset):
  220. Variables:
  221.             request = <WSGIRequest
  222. path:/sa/managedobject/4/,
  223. GET:<QueryDict: {}>,
  224. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [u'11'], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [u'9'], u'trap_community': [u''], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Zyxel'], u'managedobjectattribute_set-5-managed_object': [u'4'], u'managedobjectattribute_set-6-id': [u''], u'managedobjectattribute_set-4-managed_object': [u'4'], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'1'], u'super_password': [u''], u'profile_name': [u'Zyxel.ZyNOS'], u'managedobjectattribute_set-3-managed_object': [u'4'], u'managedobjectattribute_set-3-value': [u'3.90(TX.3)'], u'managedobjectattribute_set-6-managed_object': [u'4'], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'_save': [u'Save'], u'managedobjectattribute_set-0-key': [u'Boot PROM'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ES-2024A'], u'managedobjectattribute_set-4-id': [u''], u'managedobjectattribute_set-2-managed_object': [u'4'], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [u''], u'csrfmiddlewaretoken': [u'3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2'], u'scheme': [u'0'], u'managedobjectattribute_set-__prefix__-managed_object': [u'4'], u'managedobjectattribute_set-0-managed_object': [u'4'], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'tags': [u''], u'config_validation_rule': [u''], u'managedobjectattribute_set-1-id': [u'8'], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'vlitvin'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.100.46'], u'password': [u'IrlsaQ3kPk'], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'vrf': [u''], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'192.168.100.46'], u'managedobjectattribute_set-0-value': [u'1.08'], u'object_profile': [u'1'], u'trap_source_ip': [u''], u'managedobjectattribute_set-2-id': [u'10'], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'managedobjectattribute_set-__prefix__-value': [u''], u'max_scripts': [u''], u'snmp_ro': [u''], u'managedobjectattribute_set-1-managed_object': [u'4'], u'repo_path': [u'sw46']}>,
  225. COOKIES:{'csrftoken': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  226. 'sessionid': 'faae0f00cf0d481fd6967aedf6a70ce6'},
  227. META:{'CONTENT_LENGTH': '7291',
  228. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundary0yS85BrongmWjRrV',
  229. 'CSRF_COOKIE': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  230. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  231. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  232. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  233. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  234. 'HTTP_CONNECTION': 'Keep-Alive',
  235. 'HTTP_COOKIE': 'sessionid=faae0f00cf0d481fd6967aedf6a70ce6; csrftoken=3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  236. 'HTTP_HOST': '127.0.0.1:8000',
  237. 'HTTP_ORIGIN': 'http://nocproject.amsterdamtelecom.ru',
  238. 'HTTP_REFERER': 'http://nocproject.amsterdamtelecom.ru/sa/managedobject/4/',
  239. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11',
  240. 'HTTP_X_FORWARDED_FOR': '178.236.128.178',
  241. 'HTTP_X_FORWARDED_HOST': 'nocproject.amsterdamtelecom.ru',
  242. 'HTTP_X_FORWARDED_SERVER': 'nocproject.amsterdamtelecom.ru',
  243. 'PATH_INFO': u'/sa/managedobject/4/',
  244. 'QUERY_STRING': '',
  245. 'REMOTE_ADDR': '127.0.0.1',
  246. 'REQUEST_METHOD': 'POST',
  247. 'SCRIPT_NAME': u'',
  248. 'SERVER_NAME': '127.0.0.1',
  249. 'SERVER_PORT': '8000',
  250. 'SERVER_PROTOCOL': 'HTTP/1.1',
  251. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x332b030>,
  252. 'wsgi.input': <io.BytesIO object at 0x5d12170>,
  253. 'wsgi.multiprocess': True,
  254. 'wsgi.multithread': False,
  255. 'wsgi.run_once': False,
  256. 'wsgi.url_scheme': 'http',
  257. 'wsgi.version': (1, 0)}>
  258.                self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x5448410>
  259.                 obj = <ManagedObject: 192.168.100.46>
  260.                form = <django.forms.models.ManagedObjectForm object at 0x5cc1950>
  261.              change = True
  262. ------------------------------------------------------------------------
  263. File: /opt/noc/contrib/lib/django/contrib/admin/options.py (Line: 1054)
  264. Function: change_view
  265. 1047                     formset = FormSet(request.POST, request.FILES,
  266. 1048                                       instance=new_object, prefix=prefix,
  267. 1049                                       queryset=inline.queryset(request))
  268. 1050    
  269. 1051                     formsets.append(formset)
  270. 1052    
  271. 1053                 if all_valid(formsets) and form_validated:
  272. 1054 ==>                 self.save_model(request, new_object, form, True)
  273. 1055                     self.save_related(request, form, formsets, True)
  274. 1056                     change_message = self.construct_change_message(request, form, formsets)
  275. 1057                     self.log_change(request, new_object, change_message)
  276. 1058                     return self.response_change(request, new_object)
  277. 1059    
  278. 1060             else:
  279. Variables:
  280.          new_object = <ManagedObject: 192.168.100.46>
  281.       extra_context = {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>}
  282.                 obj = <ManagedObject: 192.168.100.46>
  283.                form = <django.forms.models.ManagedObjectForm object at 0x5cc1950>
  284.            form_url = ''
  285.                self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x5448410>
  286.             request = <WSGIRequest
  287. path:/sa/managedobject/4/,
  288. GET:<QueryDict: {}>,
  289. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [u'11'], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [u'9'], u'trap_community': [u''], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Zyxel'], u'managedobjectattribute_set-5-managed_object': [u'4'], u'managedobjectattribute_set-6-id': [u''], u'managedobjectattribute_set-4-managed_object': [u'4'], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'1'], u'super_password': [u''], u'profile_name': [u'Zyxel.ZyNOS'], u'managedobjectattribute_set-3-managed_object': [u'4'], u'managedobjectattribute_set-3-value': [u'3.90(TX.3)'], u'managedobjectattribute_set-6-managed_object': [u'4'], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'_save': [u'Save'], u'managedobjectattribute_set-0-key': [u'Boot PROM'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ES-2024A'], u'managedobjectattribute_set-4-id': [u''], u'managedobjectattribute_set-2-managed_object': [u'4'], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [u''], u'csrfmiddlewaretoken': [u'3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2'], u'scheme': [u'0'], u'managedobjectattribute_set-__prefix__-managed_object': [u'4'], u'managedobjectattribute_set-0-managed_object': [u'4'], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'tags': [u''], u'config_validation_rule': [u''], u'managedobjectattribute_set-1-id': [u'8'], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'vlitvin'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.100.46'], u'password': [u'IrlsaQ3kPk'], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'vrf': [u''], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'192.168.100.46'], u'managedobjectattribute_set-0-value': [u'1.08'], u'object_profile': [u'1'], u'trap_source_ip': [u''], u'managedobjectattribute_set-2-id': [u'10'], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'managedobjectattribute_set-__prefix__-value': [u''], u'max_scripts': [u''], u'snmp_ro': [u''], u'managedobjectattribute_set-1-managed_object': [u'4'], u'repo_path': [u'sw46']}>,
  290. COOKIES:{'csrftoken': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  291. 'sessionid': 'faae0f00cf0d481fd6967aedf6a70ce6'},
  292. META:{'CONTENT_LENGTH': '7291',
  293. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundary0yS85BrongmWjRrV',
  294. 'CSRF_COOKIE': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  295. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  296. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  297. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  298. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  299. 'HTTP_CONNECTION': 'Keep-Alive',
  300. 'HTTP_COOKIE': 'sessionid=faae0f00cf0d481fd6967aedf6a70ce6; csrftoken=3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  301. 'HTTP_HOST': '127.0.0.1:8000',
  302. 'HTTP_ORIGIN': 'http://nocproject.amsterdamtelecom.ru',
  303. 'HTTP_REFERER': 'http://nocproject.amsterdamtelecom.ru/sa/managedobject/4/',
  304. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11',
  305. 'HTTP_X_FORWARDED_FOR': '178.236.128.178',
  306. 'HTTP_X_FORWARDED_HOST': 'nocproject.amsterdamtelecom.ru',
  307. 'HTTP_X_FORWARDED_SERVER': 'nocproject.amsterdamtelecom.ru',
  308. 'PATH_INFO': u'/sa/managedobject/4/',
  309. 'QUERY_STRING': '',
  310. 'REMOTE_ADDR': '127.0.0.1',
  311. 'REQUEST_METHOD': 'POST',
  312. 'SCRIPT_NAME': u'',
  313. 'SERVER_NAME': '127.0.0.1',
  314. 'SERVER_PORT': '8000',
  315. 'SERVER_PROTOCOL': 'HTTP/1.1',
  316. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x332b030>,
  317. 'wsgi.input': <io.BytesIO object at 0x5d12170>,
  318. 'wsgi.multiprocess': True,
  319. 'wsgi.multithread': False,
  320. 'wsgi.run_once': False,
  321. 'wsgi.url_scheme': 'http',
  322. 'wsgi.version': (1, 0)}>
  323.    inline_instances = [<noc.sa.apps.managedobject.views.ManagedObjectAttributeInline object at 0x603ed90>]
  324.           object_id = u'4'
  325.             FormSet = <class 'django.forms.formsets.ManagedObjectAttributeFormFormSet'>
  326.            prefixes = {'managedobjectattribute_set': 1}
  327.              prefix = 'managedobjectattribute_set'
  328.            formsets = [<django.forms.formsets.ManagedObjectAttributeFormFormSet object at 0x5e2f750>]
  329.              inline = <noc.sa.apps.managedobject.views.ManagedObjectAttributeInline object at 0x603ed90>
  330.               model = <class 'noc.sa.models.managedobject.ManagedObject'>
  331.      form_validated = True
  332.           ModelForm = <class 'django.forms.models.ManagedObjectForm'>
  333.             formset = <django.forms.formsets.ManagedObjectAttributeFormFormSet object at 0x5e2f750>
  334.                opts = <Options for ManagedObject>
  335. ------------------------------------------------------------------------
  336. File: /opt/noc/contrib/lib/django/db/transaction.py (Line: 209)
  337. Function: inner
  338.  202         def __exit__(self, exc_type, exc_value, traceback):
  339.  203             self.exiting(exc_value, self.using)
  340.  204    
  341.  205         def __call__(self, func):
  342.  206             @wraps(func)
  343.  207             def inner(*args, **kwargs):
  344.  208                 with self:
  345.  209 ==>                 return func(*args, **kwargs)
  346.  210             return inner
  347.  211    
  348.  212     def _transaction_func(entering, exiting, using):
  349.  213         """
  350.   214         Takes 3 things, an entering function (what to do to start this block of
  351.   215         transaction management), an exiting function (what to do to end it, on both
  352. Variables:
  353.                 self = <django.db.transaction.Transaction object at 0x3ad8150>
  354.                 args = (<noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x5448410>, <WSGIRequest
  355. path:/sa/managedobject/4/,
  356. GET:<QueryDict: {}>,
  357. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [u'11'], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [u'9'], u'trap_community': [u''], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Zyxel'], u'managedobjectattribute_set-5-managed_object': [u'4'], u'managedobjectattribute_set-6-id': [u''], u'managedobjectattribute_set-4-managed_object': [u'4'], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'1'], u'super_password': [u''], u'profile_name': [u'Zyxel.ZyNOS'], u'managedobjectattribute_set-3-managed_object': [u'4'], u'managedobjectattribute_set-3-value': [u'3.90(TX.3)'], u'managedobjectattribute_set-6-managed_object': [u'4'], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'_save': [u'Save'], u'managedobjectattribute_set-0-key': [u'Boot PROM'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ES-2024A'], u'managedobjectattribute_set-4-id': [u''], u'managedobjectattribute_set-2-managed_object': [u'4'], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [u''], u'csrfmiddlewaretoken': [u'3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2'], u'scheme': [u'0'], u'managedobjectattribute_set-__prefix__-managed_object': [u'4'], u'managedobjectattribute_set-0-managed_object': [u'4'], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'tags': [u''], u'config_validation_rule': [u''], u'managedobjectattribute_set-1-id': [u'8'], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'vlitvin'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.100.46'], u'password': [u'IrlsaQ3kPk'], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'vrf': [u''], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'192.168.100.46'], u'managedobjectattribute_set-0-value': [u'1.08'], u'object_profile': [u'1'], u'trap_source_ip': [u''], u'managedobjectattribute_set-2-id': [u'10'], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'managedobjectattribute_set-__prefix__-value': [u''], u'max_scripts': [u''], u'snmp_ro': [u''], u'managedobjectattribute_set-1-managed_object': [u'4'], u'repo_path': [u'sw46']}>,
  358. COOKIES:{'csrftoken': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  359.  'sessionid': 'faae0f00cf0d481fd6967aedf6a70ce6'},
  360. META:{'CONTENT_LENGTH': '7291',
  361.  'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundary0yS85BrongmWjRrV',
  362.  'CSRF_COOKIE': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  363.  'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  364.  'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  365.  'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  366.  'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  367.  'HTTP_CONNECTION': 'Keep-Alive',
  368.  'HTTP_COOKIE': 'sessionid=faae0f00cf0d481fd6967aedf6a70ce6; csrftoken=3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  369.  'HTTP_HOST': '127.0.0.1:8000',
  370.  'HTTP_ORIGIN': 'http://nocproject.amsterdamtelecom.ru',
  371.  'HTTP_REFERER': 'http://nocproject.amsterdamtelecom.ru/sa/managedobject/4/',
  372.  'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11',
  373.  'HTTP_X_FORWARDED_FOR': '178.236.128.178',
  374.  'HTTP_X_FORWARDED_HOST': 'nocproject.amsterdamtelecom.ru',
  375.  'HTTP_X_FORWARDED_SERVER': 'nocproject.amsterdamtelecom.ru',
  376.  'PATH_INFO': u'/sa/managedobject/4/',
  377.  'QUERY_STRING': '',
  378.  'REMOTE_ADDR': '127.0.0.1',
  379.  'REQUEST_METHOD': 'POST',
  380.  'SCRIPT_NAME': u'',
  381.  'SERVER_NAME': '127.0.0.1',
  382.  'SERVER_PORT': '8000',
  383.  'SERVER_PROTOCOL': 'HTTP/1.1',
  384.  'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x332b030>,
  385.  'wsgi.input': <io.BytesIO object at 0x5d12170>,
  386.  'wsgi.multiprocess': True,
  387.  'wsgi.multithread': False,
  388.  'wsgi.run_once': False,
  389.  'wsgi.url_scheme': 'http',
  390.  'wsgi.version': (1, 0)}>, u'4')
  391.                 func = <function change_view at 0x3ad75f0>
  392.               kwargs = {'extra_context': {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>}}
  393. ------------------------------------------------------------------------
  394. File: /opt/noc/contrib/lib/django/utils/decorators.py (Line: 21)
  395. Function: bound_func
  396.    14         """
  397.   15         # 'func' is a function at the time it is passed to _dec, but will eventually
  398.   16         # be a method of the class it is defined it.
  399.   17         def _dec(func):
  400.   18             def _wrapper(self, *args, **kwargs):
  401.   19                 @decorator
  402.   20                 def bound_func(*args2, **kwargs2):
  403.   21 ==>                 return func(self, *args2, **kwargs2)
  404.   22                 # bound_func has the signature that 'decorator' expects i.e.  no
  405.   23                 # 'self' argument, but it is a closure over self so it can call
  406.   24                 # 'func' correctly.
  407.   25                 return bound_func(*args, **kwargs)
  408.   26             # In case 'decorator' adds attributes to the function it decorates, we
  409.   27             # want to copy those. We don't have access to bound_func in this scope,
  410. Variables:
  411.               args2 = (<WSGIRequest
  412. path:/sa/managedobject/4/,
  413. GET:<QueryDict: {}>,
  414. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [u'11'], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [u'9'], u'trap_community': [u''], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Zyxel'], u'managedobjectattribute_set-5-managed_object': [u'4'], u'managedobjectattribute_set-6-id': [u''], u'managedobjectattribute_set-4-managed_object': [u'4'], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'1'], u'super_password': [u''], u'profile_name': [u'Zyxel.ZyNOS'], u'managedobjectattribute_set-3-managed_object': [u'4'], u'managedobjectattribute_set-3-value': [u'3.90(TX.3)'], u'managedobjectattribute_set-6-managed_object': [u'4'], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'_save': [u'Save'], u'managedobjectattribute_set-0-key': [u'Boot PROM'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ES-2024A'], u'managedobjectattribute_set-4-id': [u''], u'managedobjectattribute_set-2-managed_object': [u'4'], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [u''], u'csrfmiddlewaretoken': [u'3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2'], u'scheme': [u'0'], u'managedobjectattribute_set-__prefix__-managed_object': [u'4'], u'managedobjectattribute_set-0-managed_object': [u'4'], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'tags': [u''], u'config_validation_rule': [u''], u'managedobjectattribute_set-1-id': [u'8'], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'vlitvin'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.100.46'], u'password': [u'IrlsaQ3kPk'], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'vrf': [u''], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'192.168.100.46'], u'managedobjectattribute_set-0-value': [u'1.08'], u'object_profile': [u'1'], u'trap_source_ip': [u''], u'managedobjectattribute_set-2-id': [u'10'], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'managedobjectattribute_set-__prefix__-value': [u''], u'max_scripts': [u''], u'snmp_ro': [u''], u'managedobjectattribute_set-1-managed_object': [u'4'], u'repo_path': [u'sw46']}>,
  415. COOKIES:{'csrftoken': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  416. 'sessionid': 'faae0f00cf0d481fd6967aedf6a70ce6'},
  417. META:{'CONTENT_LENGTH': '7291',
  418. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundary0yS85BrongmWjRrV',
  419. 'CSRF_COOKIE': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  420. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  421. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  422. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  423. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  424. 'HTTP_CONNECTION': 'Keep-Alive',
  425. 'HTTP_COOKIE': 'sessionid=faae0f00cf0d481fd6967aedf6a70ce6; csrftoken=3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  426. 'HTTP_HOST': '127.0.0.1:8000',
  427. 'HTTP_ORIGIN': 'http://nocproject.amsterdamtelecom.ru',
  428. 'HTTP_REFERER': 'http://nocproject.amsterdamtelecom.ru/sa/managedobject/4/',
  429. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11',
  430. 'HTTP_X_FORWARDED_FOR': '178.236.128.178',
  431. 'HTTP_X_FORWARDED_HOST': 'nocproject.amsterdamtelecom.ru',
  432. 'HTTP_X_FORWARDED_SERVER': 'nocproject.amsterdamtelecom.ru',
  433. 'PATH_INFO': u'/sa/managedobject/4/',
  434. 'QUERY_STRING': '',
  435. 'REMOTE_ADDR': '127.0.0.1',
  436. 'REQUEST_METHOD': 'POST',
  437. 'SCRIPT_NAME': u'',
  438. 'SERVER_NAME': '127.0.0.1',
  439. 'SERVER_PORT': '8000',
  440. 'SERVER_PROTOCOL': 'HTTP/1.1',
  441. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x332b030>,
  442. 'wsgi.input': <io.BytesIO object at 0x5d12170>,
  443. 'wsgi.multiprocess': True,
  444. 'wsgi.multithread': False,
  445. 'wsgi.run_once': False,
  446. 'wsgi.url_scheme': 'http',
  447. 'wsgi.version': (1, 0)}>, u'4')
  448.                func = <function change_view at 0x3ad76e0>
  449.                self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x5448410>
  450.             kwargs2 = {'extra_context': {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>}}
  451. ------------------------------------------------------------------------
  452. File: /opt/noc/contrib/lib/django/utils/decorators.py (Line: 91)
  453. Function: _wrapped_view
  454.   84                         if result is not None:
  455.   85                             return result
  456.   86                     if hasattr(middleware, 'process_view'):
  457.   87                         result = middleware.process_view(request, view_func, args, kwargs)
  458.   88                         if result is not None:
  459.   89                             return result
  460.   90                     try:
  461.   91 ==>                     response = view_func(request, *args, **kwargs)
  462.   92                     except Exception, e:
  463.   93                         if hasattr(middleware, 'process_exception'):
  464.   94                             result = middleware.process_exception(request, e)
  465.   95                             if result is not None:
  466.   96                                 return result
  467.   97                         raise
  468. Variables:
  469.                   e = TypeError("rule() got an unexpected keyword argument 'instance'",)
  470.          middleware = <django.middleware.csrf.CsrfViewMiddleware object at 0x3aa02d0>
  471.                args = (u'4',)
  472.             request = <WSGIRequest
  473. path:/sa/managedobject/4/,
  474. GET:<QueryDict: {}>,
  475. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [u'11'], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [u'9'], u'trap_community': [u''], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Zyxel'], u'managedobjectattribute_set-5-managed_object': [u'4'], u'managedobjectattribute_set-6-id': [u''], u'managedobjectattribute_set-4-managed_object': [u'4'], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'1'], u'super_password': [u''], u'profile_name': [u'Zyxel.ZyNOS'], u'managedobjectattribute_set-3-managed_object': [u'4'], u'managedobjectattribute_set-3-value': [u'3.90(TX.3)'], u'managedobjectattribute_set-6-managed_object': [u'4'], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'_save': [u'Save'], u'managedobjectattribute_set-0-key': [u'Boot PROM'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ES-2024A'], u'managedobjectattribute_set-4-id': [u''], u'managedobjectattribute_set-2-managed_object': [u'4'], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [u''], u'csrfmiddlewaretoken': [u'3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2'], u'scheme': [u'0'], u'managedobjectattribute_set-__prefix__-managed_object': [u'4'], u'managedobjectattribute_set-0-managed_object': [u'4'], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'tags': [u''], u'config_validation_rule': [u''], u'managedobjectattribute_set-1-id': [u'8'], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'vlitvin'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.100.46'], u'password': [u'IrlsaQ3kPk'], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'vrf': [u''], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'192.168.100.46'], u'managedobjectattribute_set-0-value': [u'1.08'], u'object_profile': [u'1'], u'trap_source_ip': [u''], u'managedobjectattribute_set-2-id': [u'10'], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'managedobjectattribute_set-__prefix__-value': [u''], u'max_scripts': [u''], u'snmp_ro': [u''], u'managedobjectattribute_set-1-managed_object': [u'4'], u'repo_path': [u'sw46']}>,
  476. COOKIES:{'csrftoken': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  477. 'sessionid': 'faae0f00cf0d481fd6967aedf6a70ce6'},
  478. META:{'CONTENT_LENGTH': '7291',
  479. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundary0yS85BrongmWjRrV',
  480. 'CSRF_COOKIE': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  481. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  482. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  483. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  484. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  485. 'HTTP_CONNECTION': 'Keep-Alive',
  486. 'HTTP_COOKIE': 'sessionid=faae0f00cf0d481fd6967aedf6a70ce6; csrftoken=3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  487. 'HTTP_HOST': '127.0.0.1:8000',
  488. 'HTTP_ORIGIN': 'http://nocproject.amsterdamtelecom.ru',
  489. 'HTTP_REFERER': 'http://nocproject.amsterdamtelecom.ru/sa/managedobject/4/',
  490. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11',
  491. 'HTTP_X_FORWARDED_FOR': '178.236.128.178',
  492. 'HTTP_X_FORWARDED_HOST': 'nocproject.amsterdamtelecom.ru',
  493. 'HTTP_X_FORWARDED_SERVER': 'nocproject.amsterdamtelecom.ru',
  494. 'PATH_INFO': u'/sa/managedobject/4/',
  495. 'QUERY_STRING': '',
  496. 'REMOTE_ADDR': '127.0.0.1',
  497. 'REQUEST_METHOD': 'POST',
  498. 'SCRIPT_NAME': u'',
  499. 'SERVER_NAME': '127.0.0.1',
  500. 'SERVER_PORT': '8000',
  501. 'SERVER_PROTOCOL': 'HTTP/1.1',
  502. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x332b030>,
  503. 'wsgi.input': <io.BytesIO object at 0x5d12170>,
  504. 'wsgi.multiprocess': True,
  505. 'wsgi.multithread': False,
  506. 'wsgi.run_once': False,
  507. 'wsgi.url_scheme': 'http',
  508. 'wsgi.version': (1, 0)}>
  509.              result = None
  510.              kwargs = {'extra_context': {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>}}
  511.           view_func = <function bound_func at 0x602cc80>
  512. ------------------------------------------------------------------------
  513. File: /opt/noc/contrib/lib/django/utils/decorators.py (Line: 25)
  514. Function: _wrapper
  515.   18             def _wrapper(self, *args, **kwargs):
  516.   19                 @decorator
  517.   20                 def bound_func(*args2, **kwargs2):
  518.   21                     return func(self, *args2, **kwargs2)
  519.   22                 # bound_func has the signature that 'decorator' expects i.e.  no
  520.   23                 # 'self' argument, but it is a closure over self so it can call
  521.   24                 # 'func' correctly.
  522.   25 ==>             return bound_func(*args, **kwargs)
  523.   26             # In case 'decorator' adds attributes to the function it decorates, we
  524.   27             # want to copy those. We don't have access to bound_func in this scope,
  525.   28             # but we can cheat by using it on a dummy function.
  526.   29             @decorator
  527.   30             def dummy(*args, **kwargs):
  528.   31                 pass
  529. Variables:
  530.                self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x5448410>
  531.                args = (<WSGIRequest
  532. path:/sa/managedobject/4/,
  533. GET:<QueryDict: {}>,
  534. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [u'11'], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [u'9'], u'trap_community': [u''], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Zyxel'], u'managedobjectattribute_set-5-managed_object': [u'4'], u'managedobjectattribute_set-6-id': [u''], u'managedobjectattribute_set-4-managed_object': [u'4'], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'1'], u'super_password': [u''], u'profile_name': [u'Zyxel.ZyNOS'], u'managedobjectattribute_set-3-managed_object': [u'4'], u'managedobjectattribute_set-3-value': [u'3.90(TX.3)'], u'managedobjectattribute_set-6-managed_object': [u'4'], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'_save': [u'Save'], u'managedobjectattribute_set-0-key': [u'Boot PROM'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ES-2024A'], u'managedobjectattribute_set-4-id': [u''], u'managedobjectattribute_set-2-managed_object': [u'4'], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [u''], u'csrfmiddlewaretoken': [u'3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2'], u'scheme': [u'0'], u'managedobjectattribute_set-__prefix__-managed_object': [u'4'], u'managedobjectattribute_set-0-managed_object': [u'4'], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'tags': [u''], u'config_validation_rule': [u''], u'managedobjectattribute_set-1-id': [u'8'], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'vlitvin'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.100.46'], u'password': [u'IrlsaQ3kPk'], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'vrf': [u''], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'192.168.100.46'], u'managedobjectattribute_set-0-value': [u'1.08'], u'object_profile': [u'1'], u'trap_source_ip': [u''], u'managedobjectattribute_set-2-id': [u'10'], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'managedobjectattribute_set-__prefix__-value': [u''], u'max_scripts': [u''], u'snmp_ro': [u''], u'managedobjectattribute_set-1-managed_object': [u'4'], u'repo_path': [u'sw46']}>,
  535. COOKIES:{'csrftoken': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  536. 'sessionid': 'faae0f00cf0d481fd6967aedf6a70ce6'},
  537. META:{'CONTENT_LENGTH': '7291',
  538. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundary0yS85BrongmWjRrV',
  539. 'CSRF_COOKIE': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  540. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  541. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  542. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  543. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  544. 'HTTP_CONNECTION': 'Keep-Alive',
  545. 'HTTP_COOKIE': 'sessionid=faae0f00cf0d481fd6967aedf6a70ce6; csrftoken=3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  546. 'HTTP_HOST': '127.0.0.1:8000',
  547. 'HTTP_ORIGIN': 'http://nocproject.amsterdamtelecom.ru',
  548. 'HTTP_REFERER': 'http://nocproject.amsterdamtelecom.ru/sa/managedobject/4/',
  549. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11',
  550. 'HTTP_X_FORWARDED_FOR': '178.236.128.178',
  551. 'HTTP_X_FORWARDED_HOST': 'nocproject.amsterdamtelecom.ru',
  552. 'HTTP_X_FORWARDED_SERVER': 'nocproject.amsterdamtelecom.ru',
  553. 'PATH_INFO': u'/sa/managedobject/4/',
  554. 'QUERY_STRING': '',
  555. 'REMOTE_ADDR': '127.0.0.1',
  556. 'REQUEST_METHOD': 'POST',
  557. 'SCRIPT_NAME': u'',
  558. 'SERVER_NAME': '127.0.0.1',
  559. 'SERVER_PORT': '8000',
  560. 'SERVER_PROTOCOL': 'HTTP/1.1',
  561. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x332b030>,
  562. 'wsgi.input': <io.BytesIO object at 0x5d12170>,
  563. 'wsgi.multiprocess': True,
  564. 'wsgi.multithread': False,
  565. 'wsgi.run_once': False,
  566. 'wsgi.url_scheme': 'http',
  567. 'wsgi.version': (1, 0)}>, u'4')
  568.          bound_func = <function bound_func at 0x602c758>
  569.                func = <function change_view at 0x3ad76e0>
  570.              kwargs = {'extra_context': {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>}}
  571.           decorator = <function csrf_protect at 0x3a975f0>
  572. ------------------------------------------------------------------------
  573. File: /opt/noc/lib/app/modelapplication.py (Line: 173)
  574. Function: view_change
  575.  166        
  576.  167         @view(url=r"^(\d+)/$", url_name="change", access=HasPerm("change"))
  577.  168         def view_change(self, request, object_id, extra_context=None):
  578.  169             """Display change form"""
  579.  170             return self.admin.change_view(
  580.  171                 request,
  581.  172                 object_id,
  582.  173 ==>             extra_context=self.get_context(extra_context))
  583.  174    
  584.  175         ##
  585.  176         ## Backport from ExtApplication/ExtModelApplication for lookup support
  586.  177         ##
  587.  178         ignored_params = ["_dc"]
  588.  179         page_param = "__page"
  589. Variables:
  590.                self = <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>
  591.       extra_context = None
  592.             request = <WSGIRequest
  593. path:/sa/managedobject/4/,
  594. GET:<QueryDict: {}>,
  595. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [u'11'], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [u'9'], u'trap_community': [u''], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Zyxel'], u'managedobjectattribute_set-5-managed_object': [u'4'], u'managedobjectattribute_set-6-id': [u''], u'managedobjectattribute_set-4-managed_object': [u'4'], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'1'], u'super_password': [u''], u'profile_name': [u'Zyxel.ZyNOS'], u'managedobjectattribute_set-3-managed_object': [u'4'], u'managedobjectattribute_set-3-value': [u'3.90(TX.3)'], u'managedobjectattribute_set-6-managed_object': [u'4'], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'_save': [u'Save'], u'managedobjectattribute_set-0-key': [u'Boot PROM'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ES-2024A'], u'managedobjectattribute_set-4-id': [u''], u'managedobjectattribute_set-2-managed_object': [u'4'], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [u''], u'csrfmiddlewaretoken': [u'3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2'], u'scheme': [u'0'], u'managedobjectattribute_set-__prefix__-managed_object': [u'4'], u'managedobjectattribute_set-0-managed_object': [u'4'], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'tags': [u''], u'config_validation_rule': [u''], u'managedobjectattribute_set-1-id': [u'8'], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'vlitvin'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.100.46'], u'password': [u'IrlsaQ3kPk'], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'vrf': [u''], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'192.168.100.46'], u'managedobjectattribute_set-0-value': [u'1.08'], u'object_profile': [u'1'], u'trap_source_ip': [u''], u'managedobjectattribute_set-2-id': [u'10'], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'managedobjectattribute_set-__prefix__-value': [u''], u'max_scripts': [u''], u'snmp_ro': [u''], u'managedobjectattribute_set-1-managed_object': [u'4'], u'repo_path': [u'sw46']}>,
  596. COOKIES:{'csrftoken': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  597. 'sessionid': 'faae0f00cf0d481fd6967aedf6a70ce6'},
  598. META:{'CONTENT_LENGTH': '7291',
  599. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundary0yS85BrongmWjRrV',
  600. 'CSRF_COOKIE': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  601. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  602. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  603. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  604. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  605. 'HTTP_CONNECTION': 'Keep-Alive',
  606. 'HTTP_COOKIE': 'sessionid=faae0f00cf0d481fd6967aedf6a70ce6; csrftoken=3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  607. 'HTTP_HOST': '127.0.0.1:8000',
  608. 'HTTP_ORIGIN': 'http://nocproject.amsterdamtelecom.ru',
  609. 'HTTP_REFERER': 'http://nocproject.amsterdamtelecom.ru/sa/managedobject/4/',
  610. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11',
  611. 'HTTP_X_FORWARDED_FOR': '178.236.128.178',
  612. 'HTTP_X_FORWARDED_HOST': 'nocproject.amsterdamtelecom.ru',
  613. 'HTTP_X_FORWARDED_SERVER': 'nocproject.amsterdamtelecom.ru',
  614. 'PATH_INFO': u'/sa/managedobject/4/',
  615. 'QUERY_STRING': '',
  616. 'REMOTE_ADDR': '127.0.0.1',
  617. 'REQUEST_METHOD': 'POST',
  618. 'SCRIPT_NAME': u'',
  619. 'SERVER_NAME': '127.0.0.1',
  620. 'SERVER_PORT': '8000',
  621. 'SERVER_PROTOCOL': 'HTTP/1.1',
  622. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x332b030>,
  623. 'wsgi.input': <io.BytesIO object at 0x5d12170>,
  624. 'wsgi.multiprocess': True,
  625. 'wsgi.multithread': False,
  626. 'wsgi.run_once': False,
  627. 'wsgi.url_scheme': 'http',
  628. 'wsgi.version': (1, 0)}>
  629.           object_id = u'4'
  630. ------------------------------------------------------------------------
  631. File: /opt/noc/lib/app/site.py (Line: 232)
  632. Function: inner
  633.  225                                            for k, v in request.POST.lists())
  634.  226                         elif request.method == "GET":
  635.  227                             a = dict((k, v[0] if len(v) == 1 else v)
  636.  228                                      for k, v in request.GET.lists())
  637.  229                         logging.debug("API %s %s %s" % (request.method,
  638.  230                                                         request.path, a))
  639.  231                     # Call handler
  640.  232 ==>                 r = v(request, *args, **kwargs)
  641.  233                     # Dump SQL statements
  642.  234                     if self.log_sql_statements:
  643.  235                         from django.db import connections
  644.  236                         tsc = 0
  645.  237                         sc = defaultdict(int)
  646.  238                         for conn in connections.all():
  647. Variables:
  648.                args = (u'4',)
  649.            view_map = {'PUT': <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>>, 'POST': <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>>, 'GET': <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>>, 'DELETE': <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>>}
  650.                Form = <class 'django.forms.forms.Form'>
  651.       DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  652.                self = <noc.lib.app.site.Site object at 0x396d210>
  653.                   v = <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>>
  654.             request = <WSGIRequest
  655. path:/sa/managedobject/4/,
  656. GET:<QueryDict: {}>,
  657. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [u'11'], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [u'9'], u'trap_community': [u''], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Zyxel'], u'managedobjectattribute_set-5-managed_object': [u'4'], u'managedobjectattribute_set-6-id': [u''], u'managedobjectattribute_set-4-managed_object': [u'4'], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'1'], u'super_password': [u''], u'profile_name': [u'Zyxel.ZyNOS'], u'managedobjectattribute_set-3-managed_object': [u'4'], u'managedobjectattribute_set-3-value': [u'3.90(TX.3)'], u'managedobjectattribute_set-6-managed_object': [u'4'], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'_save': [u'Save'], u'managedobjectattribute_set-0-key': [u'Boot PROM'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ES-2024A'], u'managedobjectattribute_set-4-id': [u''], u'managedobjectattribute_set-2-managed_object': [u'4'], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [u''], u'csrfmiddlewaretoken': [u'3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2'], u'scheme': [u'0'], u'managedobjectattribute_set-__prefix__-managed_object': [u'4'], u'managedobjectattribute_set-0-managed_object': [u'4'], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'tags': [u''], u'config_validation_rule': [u''], u'managedobjectattribute_set-1-id': [u'8'], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'vlitvin'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.100.46'], u'password': [u'IrlsaQ3kPk'], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'vrf': [u''], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'192.168.100.46'], u'managedobjectattribute_set-0-value': [u'1.08'], u'object_profile': [u'1'], u'trap_source_ip': [u''], u'managedobjectattribute_set-2-id': [u'10'], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'managedobjectattribute_set-__prefix__-value': [u''], u'max_scripts': [u''], u'snmp_ro': [u''], u'managedobjectattribute_set-1-managed_object': [u'4'], u'repo_path': [u'sw46']}>,
  658. COOKIES:{'csrftoken': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  659. 'sessionid': 'faae0f00cf0d481fd6967aedf6a70ce6'},
  660. META:{'CONTENT_LENGTH': '7291',
  661. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundary0yS85BrongmWjRrV',
  662. 'CSRF_COOKIE': '3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  663. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  664. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  665. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  666. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  667. 'HTTP_CONNECTION': 'Keep-Alive',
  668. 'HTTP_COOKIE': 'sessionid=faae0f00cf0d481fd6967aedf6a70ce6; csrftoken=3eFBlOxaEt3gcldLR8aU7Vr9yAx4HMX2',
  669. 'HTTP_HOST': '127.0.0.1:8000',
  670. 'HTTP_ORIGIN': 'http://nocproject.amsterdamtelecom.ru',
  671. 'HTTP_REFERER': 'http://nocproject.amsterdamtelecom.ru/sa/managedobject/4/',
  672. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.91 Safari/537.11',
  673. 'HTTP_X_FORWARDED_FOR': '178.236.128.178',
  674. 'HTTP_X_FORWARDED_HOST': 'nocproject.amsterdamtelecom.ru',
  675. 'HTTP_X_FORWARDED_SERVER': 'nocproject.amsterdamtelecom.ru',
  676. 'PATH_INFO': u'/sa/managedobject/4/',
  677. 'QUERY_STRING': '',
  678. 'REMOTE_ADDR': '127.0.0.1',
  679. 'REQUEST_METHOD': 'POST',
  680. 'SCRIPT_NAME': u'',
  681. 'SERVER_NAME': '127.0.0.1',
  682. 'SERVER_PORT': '8000',
  683. 'SERVER_PROTOCOL': 'HTTP/1.1',
  684. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x332b030>,
  685. 'wsgi.input': <io.BytesIO object at 0x5d12170>,
  686. 'wsgi.multiprocess': True,
  687. 'wsgi.multithread': False,
  688. 'wsgi.run_once': False,
  689. 'wsgi.url_scheme': 'http',
  690. 'wsgi.version': (1, 0)}>
  691.     to_log_api_call = False
  692.  InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  693.    PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  694.              kwargs = {}
  695.                 app = <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x54481d0>
  696. ------------------------------------------------------------------------
  697. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement