Advertisement
Guest User

Untitled

a guest
Aug 30th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.54 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2013-08-30 11:24:54.442013)
  2. Working directory: /opt/noc
  3. <class 'pymongo.errors.InvalidOperation'>
  4. cannot do an empty bulk insert
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/lib/python2.7/site-packages/pymongo/collection.py (Line: 362)
  8. Function: insert
  9. 355 if manipulate:
  10. 356 docs = [self.__database._fix_incoming(doc, self) for doc in docs]
  11. 357
  12. 358 safe, options = self._get_write_mode(safe, **kwargs)
  13. 359 message._do_batched_insert(self.__full_name, docs,
  14. 360 check_keys, safe, options,
  15. 361 continue_on_error, self.__uuid_subtype,
  16. 362 ==> self.database.connection)
  17. 363
  18. 364 ids = [doc.get("_id", None) for doc in docs]
  19. 365 if return_one:
  20. 366 return ids[0]
  21. 367 else:
  22. 368 return ids
  23. Variables:
  24. safe = False
  25. check_keys = True
  26. docs = []
  27. return_one = False
  28. self =
  29. Collection(Database(Connection('localhost', 27017), u'noc'), u'noc.cache.selector')
  30. kwargs = {}
  31. continue_on_error = False
  32. doc_or_docs = []
  33. options = {}
  34. manipulate = True
  35. ------------------------------------------------------------------------
  36. File: /opt/noc/sa/models/selectorcache.py (Line: 55)
  37. Function: rebuild_for_object
  38. 48 r += [
  39. 49 {
  40. 50 "object": o.id,
  41. 51 "selector": s.id,
  42. 52 "vc_domain": d
  43. 53 }
  44. 54 ]
  45. 55 ==> cls._get_collection().insert(r)
  46. 56
  47. 57 ##
  48. 58 from managedobjectselector import ManagedObjectSelector
  49. Variables:
  50. r = []
  51. object = <ManagedObject: cat->
  52. cls = <class 'noc.sa.models.selectorcache.SelectorCache'>
  53. ------------------------------------------------------------------------
  54. File: /opt/noc/sa/models/managedobject.py (Line: 250)
  55. Function: save
  56. 243 # Notify changes
  57. 244 if ((old is None and self.trap_source_ip) or
  58. 245 (old and self.trap_source_ip != old.trap_source_ip) or
  59. 246 (old and self.activator.id != old.activator.id)):
  60. 247 self.sae_refresh_event_filter()
  61. 248 # Notify new object
  62. 249 if old is None:
  63. 250 ==> SelectorCache.rebuild_for_object(self)
  64. 251 self.event(self.EV_NEW, {"object": self})
  65. 252 # @todo: will be removed with GridVCS
  66. 253 # Process config
  67. 254 try:
  68. 255 # self.config is OneToOne field created by Config
  69. 256 config = self.config
  70. Variables:
  71. self = <ManagedObject: cat->
  72. old = None
  73. ------------------------------------------------------------------------
  74. File: /opt/noc/lib/python2.7/site-packages/django/contrib/admin/options.py (Line: 709)
  75. Function: save_model
  76. 702 """
  77. 703 return form.save(commit=False)
  78. 704
  79. 705 def save_model(self, request, obj, form, change):
  80. 706 """
  81. 707 Given a model instance save it to the database.
  82. 708 """
  83. 709 ==> obj.save()
  84. 710
  85. 711 def delete_model(self, request, obj):
  86. 712 """
  87. 713 Given a model instance delete it from the database.
  88. 714 """
  89. 715 obj.delete()
  90. Variables:
  91. request =
  92. <WSGIRequest
  93. path:/sa/managedobject/2/,
  94. GET:<QueryDict: {}>,
  95. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'123'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  96. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  97. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  98. META:{'CONTENT_LENGTH': '8606',
  99. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  100. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  101. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  102. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  103. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  104. 'HTTP_CONNECTION': 'close',
  105. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  106. 'HTTP_DNT': '1',
  107. 'HTTP_HOST': '127.0.0.1:8000',
  108. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  109. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  110. 'PATH_INFO': u'/sa/managedobject/2/',
  111. 'QUERY_STRING': '',
  112. 'REMOTE_ADDR': '127.0.0.1',
  113. 'REQUEST_METHOD': 'POST',
  114. 'SCRIPT_NAME': u'',
  115. 'SERVER_NAME': '127.0.0.1',
  116. 'SERVER_PORT': '8000',
  117. 'SERVER_PROTOCOL': 'HTTP/1.0',
  118. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  119. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  120. 'wsgi.multiprocess': True,
  121. 'wsgi.multithread': False,
  122. 'wsgi.run_once': False,
  123. 'wsgi.url_scheme': 'http',
  124. 'wsgi.version': (1, 0)}>
  125. self =
  126. <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>
  127. obj = <ManagedObject: cat->
  128. form = <django.forms.models.ManagedObjectForm object at 0x80dfe4e50>
  129. change = False
  130. ------------------------------------------------------------------------
  131. File: /opt/noc/sa/apps/managedobject/views.py (Line: 268)
  132. Function: save_model
  133. 261 if obj:
  134. 262 return obj.has_access(request.user)
  135. 263 else:
  136. 264 return admin.ModelAdmin.has_delete_permission(self, request)
  137. 265
  138. 266 def save_model(self, request, obj, form, change):
  139. 267 # Save before checking
  140. 268 ==> admin.ModelAdmin.save_model(self, request, obj, form, change)
  141. 269 # Then check
  142. 270 if not obj.has_access(request.user):
  143. 271 # Will be rolled back by exception handler
  144. 272 raise PermissionDenied("Permission denied")
  145. 273
  146. 274 def test_access(self, request, queryset):
  147. Variables:
  148. request =
  149. <WSGIRequest
  150. path:/sa/managedobject/2/,
  151. GET:<QueryDict: {}>,
  152. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'123'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  153. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  154. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  155. META:{'CONTENT_LENGTH': '8606',
  156. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  157. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  158. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  159. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  160. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  161. 'HTTP_CONNECTION': 'close',
  162. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  163. 'HTTP_DNT': '1',
  164. 'HTTP_HOST': '127.0.0.1:8000',
  165. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  166. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  167. 'PATH_INFO': u'/sa/managedobject/2/',
  168. 'QUERY_STRING': '',
  169. 'REMOTE_ADDR': '127.0.0.1',
  170. 'REQUEST_METHOD': 'POST',
  171. 'SCRIPT_NAME': u'',
  172. 'SERVER_NAME': '127.0.0.1',
  173. 'SERVER_PORT': '8000',
  174. 'SERVER_PROTOCOL': 'HTTP/1.0',
  175. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  176. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  177. 'wsgi.multiprocess': True,
  178. 'wsgi.multithread': False,
  179. 'wsgi.run_once': False,
  180. 'wsgi.url_scheme': 'http',
  181. 'wsgi.version': (1, 0)}>
  182. self =
  183. <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>
  184. obj = <ManagedObject: cat->
  185. form = <django.forms.models.ManagedObjectForm object at 0x80dfe4e50>
  186. change = False
  187. ------------------------------------------------------------------------
  188. File: /opt/noc/lib/python2.7/site-packages/django/contrib/admin/options.py (Line: 955)
  189. Function: add_view
  190. 948 prefix = "%s-%s" % (prefix, prefixes[prefix])
  191. 949 formset = FormSet(data=request.POST, files=request.FILES,
  192. 950 instance=new_object,
  193. 951 save_as_new="_saveasnew" in request.POST,
  194. 952 prefix=prefix, queryset=inline.queryset(request))
  195. 953 formsets.append(formset)
  196. 954 if all_valid(formsets) and form_validated:
  197. 955 ==> self.save_model(request, new_object, form, False)
  198. 956 self.save_related(request, form, formsets, False)
  199. 957 self.log_addition(request, new_object)
  200. 958 return self.response_add(request, new_object)
  201. 959 else:
  202. 960 # Prepare the dict of initial data from the request.
  203. 961 # We have to special-case M2Ms as a list of comma-separated PKs.
  204. Variables:
  205. new_object = <ManagedObject: cat->
  206. form = <django.forms.models.ManagedObjectForm object at 0x80dfe4e50>
  207. form_url = '/admin/../sa/managedobject/add/'
  208. FormSet = <class 'django.forms.formsets.ManagedObjectAttributeFormFormSet'>
  209. request =
  210. <WSGIRequest
  211. path:/sa/managedobject/2/,
  212. GET:<QueryDict: {}>,
  213. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'123'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  214. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  215. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  216. META:{'CONTENT_LENGTH': '8606',
  217. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  218. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  219. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  220. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  221. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  222. 'HTTP_CONNECTION': 'close',
  223. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  224. 'HTTP_DNT': '1',
  225. 'HTTP_HOST': '127.0.0.1:8000',
  226. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  227. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  228. 'PATH_INFO': u'/sa/managedobject/2/',
  229. 'QUERY_STRING': '',
  230. 'REMOTE_ADDR': '127.0.0.1',
  231. 'REQUEST_METHOD': 'POST',
  232. 'SCRIPT_NAME': u'',
  233. 'SERVER_NAME': '127.0.0.1',
  234. 'SERVER_PORT': '8000',
  235. 'SERVER_PROTOCOL': 'HTTP/1.0',
  236. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  237. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  238. 'wsgi.multiprocess': True,
  239. 'wsgi.multithread': False,
  240. 'wsgi.run_once': False,
  241. 'wsgi.url_scheme': 'http',
  242. 'wsgi.version': (1, 0)}>
  243. inline_instances =
  244. [<noc.sa.apps.managedobject.views.ManagedObjectAttributeInline object at 0x80dfcc350>]
  245. form_validated = True
  246. prefixes = {'managedobjectattribute_set': 1}
  247. prefix = 'managedobjectattribute_set'
  248. formsets =
  249. [<django.forms.formsets.ManagedObjectAttributeFormFormSet object at 0x80e096310>]
  250. self =
  251. <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>
  252. inline =
  253. <noc.sa.apps.managedobject.views.ManagedObjectAttributeInline object at 0x80dfcc350>
  254. model = <class 'noc.sa.models.managedobject.ManagedObject'>
  255. extra_context = None
  256. ModelForm = <class 'django.forms.models.ManagedObjectForm'>
  257. formset =
  258. <django.forms.formsets.ManagedObjectAttributeFormFormSet object at 0x80e096310>
  259. opts = <Options for ManagedObject>
  260. ------------------------------------------------------------------------
  261. File: /opt/noc/lib/python2.7/site-packages/django/db/transaction.py (Line: 209)
  262. Function: inner
  263. 202 def __exit__(self, exc_type, exc_value, traceback):
  264. 203 self.exiting(exc_value, self.using)
  265. 204
  266. 205 def __call__(self, func):
  267. 206 @wraps(func)
  268. 207 def inner(*args, **kwargs):
  269. 208 with self:
  270. 209 ==> return func(*args, **kwargs)
  271. 210 return inner
  272. 211
  273. 212 def _transaction_func(entering, exiting, using):
  274. 213 """
  275. 214 Takes 3 things, an entering function (what to do to start this block of
  276. 215 transaction management), an exiting function (what to do to end it, on both
  277. Variables:
  278. self = <django.db.transaction.Transaction object at 0x809224b10>
  279. args =
  280. (<noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>,
  281. <WSGIRequest
  282. path:/sa/managedobject/2/,
  283. GET:<QueryDict: {}>,
  284. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  285. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  286. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  287. META:{'CONTENT_LENGTH': '8606',
  288. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  289. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  290. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  291. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  292. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  293. 'HTTP_CONNECTION': 'close',
  294. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  295. 'HTTP_DNT': '1',
  296. 'HTTP_HOST': '127.0.0.1:8000',
  297. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  298. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  299. 'PATH_INFO': u'/sa/managedobject/2/',
  300. 'QUERY_STRING': '',
  301. 'REMOTE_ADDR': '127.0.0.1',
  302. 'REQUEST_METHOD': 'POST',
  303. 'SCRIPT_NAME': u'',
  304. 'SERVER_NAME': '127.0.0.1',
  305. 'SERVER_PORT': '8000',
  306. 'SERVER_PROTOCOL': 'HTTP/1.0',
  307. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  308. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  309. 'wsgi.multiprocess': True,
  310. 'wsgi.multithread': False,
  311. 'wsgi.run_once': False,
  312. 'wsgi.url_scheme': 'http',
  313. 'wsgi.version': (1, 0)}>)
  314. func = <function add_view at 0x80922b140>
  315. kwargs = {'form_url': '/admin/../sa/managedobject/add/'}
  316. ------------------------------------------------------------------------
  317. File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 21)
  318. Function: bound_func
  319. 14 """
  320. 15 # 'func' is a function at the time it is passed to _dec, but will eventually
  321. 16 # be a method of the class it is defined it.
  322. 17 def _dec(func):
  323. 18 def _wrapper(self, *args, **kwargs):
  324. 19 @decorator
  325. 20 def bound_func(*args2, **kwargs2):
  326. 21 ==> return func(self, *args2, **kwargs2)
  327. 22 # bound_func has the signature that 'decorator' expects i.e. no
  328. 23 # 'self' argument, but it is a closure over self so it can call
  329. 24 # 'func' correctly.
  330. 25 return bound_func(*args, **kwargs)
  331. 26 # In case 'decorator' adds attributes to the function it decorates, we
  332. 27 # want to copy those. We don't have access to bound_func in this scope,
  333. Variables:
  334. args2 =
  335. (<WSGIRequest
  336. path:/sa/managedobject/2/,
  337. GET:<QueryDict: {}>,
  338. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  339. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  340. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  341. META:{'CONTENT_LENGTH': '8606',
  342. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  343. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  344. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  345. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  346. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  347. 'HTTP_CONNECTION': 'close',
  348. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  349. 'HTTP_DNT': '1',
  350. 'HTTP_HOST': '127.0.0.1:8000',
  351. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  352. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  353. 'PATH_INFO': u'/sa/managedobject/2/',
  354. 'QUERY_STRING': '',
  355. 'REMOTE_ADDR': '127.0.0.1',
  356. 'REQUEST_METHOD': 'POST',
  357. 'SCRIPT_NAME': u'',
  358. 'SERVER_NAME': '127.0.0.1',
  359. 'SERVER_PORT': '8000',
  360. 'SERVER_PROTOCOL': 'HTTP/1.0',
  361. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  362. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  363. 'wsgi.multiprocess': True,
  364. 'wsgi.multithread': False,
  365. 'wsgi.run_once': False,
  366. 'wsgi.url_scheme': 'http',
  367. 'wsgi.version': (1, 0)}>,)
  368. func = <function add_view at 0x80922b2a8>
  369. self =
  370. <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>
  371. kwargs2 = {'form_url': '/admin/../sa/managedobject/add/'}
  372. ------------------------------------------------------------------------
  373. File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 91)
  374. Function: _wrapped_view
  375. 84 if result is not None:
  376. 85 return result
  377. 86 if hasattr(middleware, 'process_view'):
  378. 87 result = middleware.process_view(request, view_func, args, kwargs)
  379. 88 if result is not None:
  380. 89 return result
  381. 90 try:
  382. 91 ==> response = view_func(request, *args, **kwargs)
  383. 92 except Exception, e:
  384. 93 if hasattr(middleware, 'process_exception'):
  385. 94 result = middleware.process_exception(request, e)
  386. 95 if result is not None:
  387. 96 return result
  388. 97 raise
  389. Variables:
  390. e = InvalidOperation('cannot do an empty bulk insert',)
  391. middleware = <django.middleware.csrf.CsrfViewMiddleware object at 0x809204bd0>
  392. args = ()
  393. request =
  394. <WSGIRequest
  395. path:/sa/managedobject/2/,
  396. GET:<QueryDict: {}>,
  397. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  398. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  399. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  400. META:{'CONTENT_LENGTH': '8606',
  401. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  402. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  403. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  404. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  405. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  406. 'HTTP_CONNECTION': 'close',
  407. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  408. 'HTTP_DNT': '1',
  409. 'HTTP_HOST': '127.0.0.1:8000',
  410. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  411. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  412. 'PATH_INFO': u'/sa/managedobject/2/',
  413. 'QUERY_STRING': '',
  414. 'REMOTE_ADDR': '127.0.0.1',
  415. 'REQUEST_METHOD': 'POST',
  416. 'SCRIPT_NAME': u'',
  417. 'SERVER_NAME': '127.0.0.1',
  418. 'SERVER_PORT': '8000',
  419. 'SERVER_PROTOCOL': 'HTTP/1.0',
  420. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  421. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  422. 'wsgi.multiprocess': True,
  423. 'wsgi.multithread': False,
  424. 'wsgi.run_once': False,
  425. 'wsgi.url_scheme': 'http',
  426. 'wsgi.version': (1, 0)}>
  427. result = None
  428. kwargs = {'form_url': '/admin/../sa/managedobject/add/'}
  429. view_func = <function bound_func at 0x80dfa9320>
  430. ------------------------------------------------------------------------
  431. File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 25)
  432. Function: _wrapper
  433. 18 def _wrapper(self, *args, **kwargs):
  434. 19 @decorator
  435. 20 def bound_func(*args2, **kwargs2):
  436. 21 return func(self, *args2, **kwargs2)
  437. 22 # bound_func has the signature that 'decorator' expects i.e. no
  438. 23 # 'self' argument, but it is a closure over self so it can call
  439. 24 # 'func' correctly.
  440. 25 ==> return bound_func(*args, **kwargs)
  441. 26 # In case 'decorator' adds attributes to the function it decorates, we
  442. 27 # want to copy those. We don't have access to bound_func in this scope,
  443. 28 # but we can cheat by using it on a dummy function.
  444. 29 @decorator
  445. 30 def dummy(*args, **kwargs):
  446. 31 pass
  447. Variables:
  448. self =
  449. <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>
  450. args =
  451. (<WSGIRequest
  452. path:/sa/managedobject/2/,
  453. GET:<QueryDict: {}>,
  454. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  455. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  456. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  457. META:{'CONTENT_LENGTH': '8606',
  458. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  459. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  460. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  461. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  462. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  463. 'HTTP_CONNECTION': 'close',
  464. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  465. 'HTTP_DNT': '1',
  466. 'HTTP_HOST': '127.0.0.1:8000',
  467. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  468. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  469. 'PATH_INFO': u'/sa/managedobject/2/',
  470. 'QUERY_STRING': '',
  471. 'REMOTE_ADDR': '127.0.0.1',
  472. 'REQUEST_METHOD': 'POST',
  473. 'SCRIPT_NAME': u'',
  474. 'SERVER_NAME': '127.0.0.1',
  475. 'SERVER_PORT': '8000',
  476. 'SERVER_PROTOCOL': 'HTTP/1.0',
  477. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  478. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  479. 'wsgi.multiprocess': True,
  480. 'wsgi.multithread': False,
  481. 'wsgi.run_once': False,
  482. 'wsgi.url_scheme': 'http',
  483. 'wsgi.version': (1, 0)}>,)
  484. bound_func = <function bound_func at 0x80dfa9398>
  485. func = <function add_view at 0x80922b2a8>
  486. kwargs = {'form_url': '/admin/../sa/managedobject/add/'}
  487. decorator = <function csrf_protect at 0x809217cf8>
  488. ------------------------------------------------------------------------
  489. File: /opt/noc/lib/python2.7/site-packages/django/contrib/admin/options.py (Line: 1028)
  490. Function: change_view
  491. 1021
  492. 1022 if obj is None:
  493. 1023 raise Http404(_('%(name)s object with primary key %(key)r does not exist.') % {'name': force_unicode(opts.verbose_name), 'key': escape(object_id)})
  494. 1024
  495. 1025 if request.method == 'POST' and "_saveasnew" in request.POST:
  496. 1026 return self.add_view(request, form_url=reverse('admin:%s_%s_add' %
  497. 1027 (opts.app_label, opts.module_name),
  498. 1028 ==> current_app=self.admin_site.name))
  499. 1029
  500. 1030 ModelForm = self.get_form(request, obj)
  501. 1031 formsets = []
  502. 1032 inline_instances = self.get_inline_instances(request)
  503. 1033 if request.method == 'POST':
  504. 1034 form = ModelForm(request.POST, request.FILES, instance=obj)
  505. Variables:
  506. obj = <ManagedObject: cat77-11>
  507. self =
  508. <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>
  509. request =
  510. <WSGIRequest
  511. path:/sa/managedobject/2/,
  512. GET:<QueryDict: {}>,
  513. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  514. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  515. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  516. META:{'CONTENT_LENGTH': '8606',
  517. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  518. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  519. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  520. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  521. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  522. 'HTTP_CONNECTION': 'close',
  523. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  524. 'HTTP_DNT': '1',
  525. 'HTTP_HOST': '127.0.0.1:8000',
  526. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  527. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  528. 'PATH_INFO': u'/sa/managedobject/2/',
  529. 'QUERY_STRING': '',
  530. 'REMOTE_ADDR': '127.0.0.1',
  531. 'REQUEST_METHOD': 'POST',
  532. 'SCRIPT_NAME': u'',
  533. 'SERVER_NAME': '127.0.0.1',
  534. 'SERVER_PORT': '8000',
  535. 'SERVER_PROTOCOL': 'HTTP/1.0',
  536. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  537. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  538. 'wsgi.multiprocess': True,
  539. 'wsgi.multithread': False,
  540. 'wsgi.run_once': False,
  541. 'wsgi.url_scheme': 'http',
  542. 'wsgi.version': (1, 0)}>
  543. object_id = u'2'
  544. model = <class 'noc.sa.models.managedobject.ManagedObject'>
  545. extra_context =
  546. {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>}
  547. form_url = ''
  548. opts = <Options for ManagedObject>
  549. ------------------------------------------------------------------------
  550. File: /opt/noc/lib/python2.7/site-packages/django/db/transaction.py (Line: 209)
  551. Function: inner
  552. 202 def __exit__(self, exc_type, exc_value, traceback):
  553. 203 self.exiting(exc_value, self.using)
  554. 204
  555. 205 def __call__(self, func):
  556. 206 @wraps(func)
  557. 207 def inner(*args, **kwargs):
  558. 208 with self:
  559. 209 ==> return func(*args, **kwargs)
  560. 210 return inner
  561. 211
  562. 212 def _transaction_func(entering, exiting, using):
  563. 213 """
  564. 214 Takes 3 things, an entering function (what to do to start this block of
  565. 215 transaction management), an exiting function (what to do to end it, on both
  566. Variables:
  567. self = <django.db.transaction.Transaction object at 0x809224bd0>
  568. args =
  569. (<noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>,
  570. <WSGIRequest
  571. path:/sa/managedobject/2/,
  572. GET:<QueryDict: {}>,
  573. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  574. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  575. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  576. META:{'CONTENT_LENGTH': '8606',
  577. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  578. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  579. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  580. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  581. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  582. 'HTTP_CONNECTION': 'close',
  583. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  584. 'HTTP_DNT': '1',
  585. 'HTTP_HOST': '127.0.0.1:8000',
  586. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  587. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  588. 'PATH_INFO': u'/sa/managedobject/2/',
  589. 'QUERY_STRING': '',
  590. 'REMOTE_ADDR': '127.0.0.1',
  591. 'REQUEST_METHOD': 'POST',
  592. 'SCRIPT_NAME': u'',
  593. 'SERVER_NAME': '127.0.0.1',
  594. 'SERVER_PORT': '8000',
  595. 'SERVER_PROTOCOL': 'HTTP/1.0',
  596. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  597. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  598. 'wsgi.multiprocess': True,
  599. 'wsgi.multithread': False,
  600. 'wsgi.run_once': False,
  601. 'wsgi.url_scheme': 'http',
  602. 'wsgi.version': (1, 0)}>,
  603. u'2')
  604. func = <function change_view at 0x80922b410>
  605. kwargs =
  606. {'extra_context': {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>}}
  607. ------------------------------------------------------------------------
  608. File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 21)
  609. Function: bound_func
  610. 14 """
  611. 15 # 'func' is a function at the time it is passed to _dec, but will eventually
  612. 16 # be a method of the class it is defined it.
  613. 17 def _dec(func):
  614. 18 def _wrapper(self, *args, **kwargs):
  615. 19 @decorator
  616. 20 def bound_func(*args2, **kwargs2):
  617. 21 ==> return func(self, *args2, **kwargs2)
  618. 22 # bound_func has the signature that 'decorator' expects i.e. no
  619. 23 # 'self' argument, but it is a closure over self so it can call
  620. 24 # 'func' correctly.
  621. 25 return bound_func(*args, **kwargs)
  622. 26 # In case 'decorator' adds attributes to the function it decorates, we
  623. 27 # want to copy those. We don't have access to bound_func in this scope,
  624. Variables:
  625. args2 =
  626. (<WSGIRequest
  627. path:/sa/managedobject/2/,
  628. GET:<QueryDict: {}>,
  629. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  630. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  631. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  632. META:{'CONTENT_LENGTH': '8606',
  633. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  634. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  635. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  636. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  637. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  638. 'HTTP_CONNECTION': 'close',
  639. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  640. 'HTTP_DNT': '1',
  641. 'HTTP_HOST': '127.0.0.1:8000',
  642. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  643. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  644. 'PATH_INFO': u'/sa/managedobject/2/',
  645. 'QUERY_STRING': '',
  646. 'REMOTE_ADDR': '127.0.0.1',
  647. 'REQUEST_METHOD': 'POST',
  648. 'SCRIPT_NAME': u'',
  649. 'SERVER_NAME': '127.0.0.1',
  650. 'SERVER_PORT': '8000',
  651. 'SERVER_PROTOCOL': 'HTTP/1.0',
  652. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  653. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  654. 'wsgi.multiprocess': True,
  655. 'wsgi.multithread': False,
  656. 'wsgi.run_once': False,
  657. 'wsgi.url_scheme': 'http',
  658. 'wsgi.version': (1, 0)}>,
  659. u'2')
  660. func = <function change_view at 0x80922b500>
  661. self =
  662. <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>
  663. kwargs2 =
  664. {'extra_context': {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>}}
  665. ------------------------------------------------------------------------
  666. File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 91)
  667. Function: _wrapped_view
  668. 84 if result is not None:
  669. 85 return result
  670. 86 if hasattr(middleware, 'process_view'):
  671. 87 result = middleware.process_view(request, view_func, args, kwargs)
  672. 88 if result is not None:
  673. 89 return result
  674. 90 try:
  675. 91 ==> response = view_func(request, *args, **kwargs)
  676. 92 except Exception, e:
  677. 93 if hasattr(middleware, 'process_exception'):
  678. 94 result = middleware.process_exception(request, e)
  679. 95 if result is not None:
  680. 96 return result
  681. 97 raise
  682. Variables:
  683. e = InvalidOperation('cannot do an empty bulk insert',)
  684. middleware = <django.middleware.csrf.CsrfViewMiddleware object at 0x809204bd0>
  685. args = (u'2',)
  686. request =
  687. <WSGIRequest
  688. path:/sa/managedobject/2/,
  689. GET:<QueryDict: {}>,
  690. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  691. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  692. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  693. META:{'CONTENT_LENGTH': '8606',
  694. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  695. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  696. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  697. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  698. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  699. 'HTTP_CONNECTION': 'close',
  700. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  701. 'HTTP_DNT': '1',
  702. 'HTTP_HOST': '127.0.0.1:8000',
  703. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  704. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  705. 'PATH_INFO': u'/sa/managedobject/2/',
  706. 'QUERY_STRING': '',
  707. 'REMOTE_ADDR': '127.0.0.1',
  708. 'REQUEST_METHOD': 'POST',
  709. 'SCRIPT_NAME': u'',
  710. 'SERVER_NAME': '127.0.0.1',
  711. 'SERVER_PORT': '8000',
  712. 'SERVER_PROTOCOL': 'HTTP/1.0',
  713. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  714. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  715. 'wsgi.multiprocess': True,
  716. 'wsgi.multithread': False,
  717. 'wsgi.run_once': False,
  718. 'wsgi.url_scheme': 'http',
  719. 'wsgi.version': (1, 0)}>
  720. result = None
  721. kwargs =
  722. {'extra_context': {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>}}
  723. view_func = <function bound_func at 0x80df93cf8>
  724. ------------------------------------------------------------------------
  725. File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 25)
  726. Function: _wrapper
  727. 18 def _wrapper(self, *args, **kwargs):
  728. 19 @decorator
  729. 20 def bound_func(*args2, **kwargs2):
  730. 21 return func(self, *args2, **kwargs2)
  731. 22 # bound_func has the signature that 'decorator' expects i.e. no
  732. 23 # 'self' argument, but it is a closure over self so it can call
  733. 24 # 'func' correctly.
  734. 25 ==> return bound_func(*args, **kwargs)
  735. 26 # In case 'decorator' adds attributes to the function it decorates, we
  736. 27 # want to copy those. We don't have access to bound_func in this scope,
  737. 28 # but we can cheat by using it on a dummy function.
  738. 29 @decorator
  739. 30 def dummy(*args, **kwargs):
  740. 31 pass
  741. Variables:
  742. self =
  743. <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x80d8c1e50>
  744. args =
  745. (<WSGIRequest
  746. path:/sa/managedobject/2/,
  747. GET:<QueryDict: {}>,
  748. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  749. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  750. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  751. META:{'CONTENT_LENGTH': '8606',
  752. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  753. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  754. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  755. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  756. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  757. 'HTTP_CONNECTION': 'close',
  758. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  759. 'HTTP_DNT': '1',
  760. 'HTTP_HOST': '127.0.0.1:8000',
  761. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  762. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  763. 'PATH_INFO': u'/sa/managedobject/2/',
  764. 'QUERY_STRING': '',
  765. 'REMOTE_ADDR': '127.0.0.1',
  766. 'REQUEST_METHOD': 'POST',
  767. 'SCRIPT_NAME': u'',
  768. 'SERVER_NAME': '127.0.0.1',
  769. 'SERVER_PORT': '8000',
  770. 'SERVER_PROTOCOL': 'HTTP/1.0',
  771. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  772. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  773. 'wsgi.multiprocess': True,
  774. 'wsgi.multithread': False,
  775. 'wsgi.run_once': False,
  776. 'wsgi.url_scheme': 'http',
  777. 'wsgi.version': (1, 0)}>,
  778. u'2')
  779. bound_func = <function bound_func at 0x80df93d70>
  780. func = <function change_view at 0x80922b500>
  781. kwargs =
  782. {'extra_context': {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>}}
  783. decorator = <function csrf_protect at 0x809217cf8>
  784. ------------------------------------------------------------------------
  785. File: /opt/noc/lib/app/modelapplication.py (Line: 173)
  786. Function: view_change
  787. 166
  788. 167 @view(url=r"^(\d+)/$", url_name="change", access=HasPerm("change"))
  789. 168 def view_change(self, request, object_id, extra_context=None):
  790. 169 """Display change form"""
  791. 170 return self.admin.change_view(
  792. 171 request,
  793. 172 object_id,
  794. 173 ==> extra_context=self.get_context(extra_context))
  795. 174
  796. 175 ##
  797. 176 ## Backport from ExtApplication/ExtModelApplication for lookup support
  798. 177 ##
  799. 178 ignored_params = ["_dc"]
  800. 179 page_param = "__page"
  801. Variables:
  802. self =
  803. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>
  804. extra_context = None
  805. request =
  806. <WSGIRequest
  807. path:/sa/managedobject/2/,
  808. GET:<QueryDict: {}>,
  809. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'321'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  810. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  811. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  812. META:{'CONTENT_LENGTH': '8606',
  813. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  814. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  815. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  816. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  817. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  818. 'HTTP_CONNECTION': 'close',
  819. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  820. 'HTTP_DNT': '1',
  821. 'HTTP_HOST': '127.0.0.1:8000',
  822. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  823. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  824. 'PATH_INFO': u'/sa/managedobject/2/',
  825. 'QUERY_STRING': '',
  826. 'REMOTE_ADDR': '127.0.0.1',
  827. 'REQUEST_METHOD': 'POST',
  828. 'SCRIPT_NAME': u'',
  829. 'SERVER_NAME': '127.0.0.1',
  830. 'SERVER_PORT': '8000',
  831. 'SERVER_PROTOCOL': 'HTTP/1.0',
  832. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  833. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  834. 'wsgi.multiprocess': True,
  835. 'wsgi.multithread': False,
  836. 'wsgi.run_once': False,
  837. 'wsgi.url_scheme': 'http',
  838. 'wsgi.version': (1, 0)}>
  839. object_id = u'2'
  840. ------------------------------------------------------------------------
  841. File: /opt/noc/lib/app/site.py (Line: 232)
  842. Function: inner
  843. 225 for k, v in request.POST.lists())
  844. 226 elif request.method == "GET":
  845. 227 a = dict((k, v[0] if len(v) == 1 else v)
  846. 228 for k, v in request.GET.lists())
  847. 229 logging.debug("API %s %s %s" % (request.method,
  848. 230 request.path, a))
  849. 231 # Call handler
  850. 232 ==> r = v(request, *args, **kwargs)
  851. 233 # Dump SQL statements
  852. 234 if self.log_sql_statements:
  853. 235 from django.db import connections
  854. 236 tsc = 0
  855. 237 sc = defaultdict(int)
  856. 238 for conn in connections.all():
  857. Variables:
  858. args = (u'2',)
  859. view_map =
  860. {'DELETE': <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>>,
  861. 'GET': <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>>,
  862. 'POST': <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>>,
  863. 'PUT': <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>>}
  864. Form = <class 'django.forms.forms.Form'>
  865. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  866. self = <noc.lib.app.site.Site object at 0x80904fa90>
  867. v =
  868. <bound method ManagedObjectApplication.view_change of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>>
  869. request =
  870. <WSGIRequest
  871. path:/sa/managedobject/2/,
  872. GET:<QueryDict: {}>,
  873. POST:<QueryDict: {u'managedobjectattribute_set-INITIAL_FORMS': [u'4'], u'managedobjectattribute_set-0-id': [None], u'config_filter_rule': [u''], u'managedobjectattribute_set-3-id': [None], u'trap_community': [u'123'], u'managedobjectattribute_set-MAX_NUM_FORMS': [u''], u'managedobjectattribute_set-2-value': [u'Cisco'], u'managedobjectattribute_set-5-managed_object': [None], u'managedobjectattribute_set-6-id': [None], u'managedobjectattribute_set-4-managed_object': [None], u'managedobjectattribute_set-5-key': [u''], u'administrative_domain': [u'2'], u'super_password': [u'xxx'], u'shape': [u''], u'profile_name': [u'Cisco.IOS'], u'managedobjectattribute_set-3-managed_object': [None], u'managedobjectattribute_set-3-value': [u'12.2(60)EZ1'], u'managedobjectattribute_set-6-managed_object': [None], u'managedobjectattribute_set-6-key': [u''], u'port': [u''], u'managedobjectattribute_set-4-key': [u''], u'vc_domain': [u''], u'managedobjectattribute_set-0-key': [u'image'], u'config_diff_filter_rule': [u''], u'managedobjectattribute_set-1-value': [u'ME340x'], u'managedobjectattribute_set-4-id': [None], u'managedobjectattribute_set-2-managed_object': [None], u'activator': [u'1'], u'managedobjectattribute_set-5-id': [None], u'csrfmiddlewaretoken': [u'IDkEC2joQ0xqB16cYOt3sf02s349QrHO'], u'scheme': [u'1'], u'managedobjectattribute_set-__prefix__-managed_object': [u'2'], u'managedobjectattribute_set-0-managed_object': [None], u'managedobjectattribute_set-__prefix__-key': [u''], u'managedobjectattribute_set-5-value': [u''], u'description': [u''], u'_saveasnew': [u'Save as new'], u'tags': [u''], u'config_validation_rule': [u''], u'remote_path': [u''], u'managedobjectattribute_set-2-key': [u'vendor'], u'managedobjectattribute_set-4-value': [u''], u'user': [u'xxx'], u'managedobjectattribute_set-__prefix__-id': [u''], u'address': [u'192.168.80.1'], u'password': [u'xxx'], u'managedobjectattribute_set-__prefix__-value': [u''], u'is_configuration_managed': [u'on'], u'snmp_rw': [u''], u'managedobjectattribute_set-TOTAL_FORMS': [u'7'], u'managedobjectattribute_set-1-id': [None], u'managedobjectattribute_set-1-key': [u'platform'], u'managedobjectattribute_set-6-value': [u''], u'name': [u'cat-'], u'managedobjectattribute_set-0-value': [u'ME340x-METROIPACCESSK9-M'], u'object_profile': [u'1'], u'trap_source_ip': [u'192.168.80.1'], u'managedobjectattribute_set-2-id': [None], u'is_managed': [u'on'], u'managedobjectattribute_set-3-key': [u'version'], u'repo_path': [u'cisco/cat-'], u'max_scripts': [u''], u'snmp_ro': [u'123'], u'managedobjectattribute_set-1-managed_object': [None], u'vrf': [u'3']}>,
  874. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  875. 'sessionid': '7290360ac4fa56534270bf5e097382a6'},
  876. META:{'CONTENT_LENGTH': '8606',
  877. 'CONTENT_TYPE': 'multipart/form-data; boundary=---------------------------747502730778137393224886678',
  878. 'CSRF_COOKIE': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  879. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  880. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  881. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  882. 'HTTP_CONNECTION': 'close',
  883. 'HTTP_COOKIE': 'sessionid=7290360ac4fa56534270bf5e097382a6; csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  884. 'HTTP_DNT': '1',
  885. 'HTTP_HOST': '127.0.0.1:8000',
  886. 'HTTP_REFERER': 'http://1.1.1.1/sa/managedobject/2/',
  887. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  888. 'PATH_INFO': u'/sa/managedobject/2/',
  889. 'QUERY_STRING': '',
  890. 'REMOTE_ADDR': '127.0.0.1',
  891. 'REQUEST_METHOD': 'POST',
  892. 'SCRIPT_NAME': u'',
  893. 'SERVER_NAME': '127.0.0.1',
  894. 'SERVER_PORT': '8000',
  895. 'SERVER_PROTOCOL': 'HTTP/1.0',
  896. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x805fd20c0>,
  897. 'wsgi.input': <_io.BytesIO object at 0x80dfe8710>,
  898. 'wsgi.multiprocess': True,
  899. 'wsgi.multithread': False,
  900. 'wsgi.run_once': False,
  901. 'wsgi.url_scheme': 'http',
  902. 'wsgi.version': (1, 0)}>
  903. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  904. to_log_api_call = False
  905. kwargs = {}
  906. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  907. app =
  908. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x80d8c1e10>
  909. ------------------------------------------------------------------------
  910. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement