Advertisement
Guest User

Untitled

a guest
Mar 28th, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.00 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2014-03-28 11:35:19.410100)
  2. Working directory: /opt/noc
  3. <class 'django.core.urlresolvers.NoReverseMatch'>
  4. Reverse for 'css' with arguments '()' and keyword arguments '{}' not found.
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/lib/python2.7/site-packages/django/template/defaulttags.py (Line: 424)
  8. Function: render
  9. 417 args=args, kwargs=kwargs,
  10. 418 current_app=context.current_app)
  11. 419 except NoReverseMatch:
  12. 420 if self.asvar is None:
  13. 421 # Re-raise the original exception, not the one with
  14. 422 # the path relative to the project. This makes a
  15. 423 # better error message.
  16. 424 ==> raise e
  17. 425 else:
  18. 426 if self.asvar is None:
  19. 427 raise e
  20. 428
  21. 429 if self.asvar:
  22. 430 context[self.asvar] = url
  23. Variables:
  24. project_name = 'noc'
  25. e =
  26. NoReverseMatch(u"Reverse for 'css' with arguments '()' and keyword arguments '{}' not found.",)
  27. reverse = <function reverse at 0x2454050>
  28. url = ''
  29. self = <django.template.defaulttags.URLNode object at 0x61669d0>
  30. args = []
  31. view_name = u'fm:alarm:css'
  32. context =
  33. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  34. kwargs = {}
  35. NoReverseMatch = <class 'django.core.urlresolvers.NoReverseMatch'>
  36. ------------------------------------------------------------------------
  37. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
  38. Function: render_node
  39. 830 "Return a list of all nodes of the given type"
  40. 831 nodes = []
  41. 832 for node in self:
  42. 833 nodes.extend(node.get_nodes_by_type(nodetype))
  43. 834 return nodes
  44. 835
  45. 836 def render_node(self, node, context):
  46. 837 ==> return node.render(context)
  47. 838
  48. 839 class TextNode(Node):
  49. 840 def __init__(self, s):
  50. 841 self.s = s
  51. 842
  52. 843 def __repr__(self):
  53. Variables:
  54. node = <django.template.defaulttags.URLNode object at 0x61669d0>
  55. self =
  56. [<Text Node: '
  57. <link type="text/css" re'>,
  58. <django.template.defaulttags.URLNode object at 0x61669d0>,
  59. <Text Node: '">
  60. '>]
  61. context =
  62. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  63. ------------------------------------------------------------------------
  64. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
  65. Function: render
  66. 816 # extend_nodelist().
  67. 817 contains_nontext = False
  68. 818
  69. 819 def render(self, context):
  70. 820 bits = []
  71. 821 for node in self:
  72. 822 if isinstance(node, Node):
  73. 823 ==> bit = self.render_node(node, context)
  74. 824 else:
  75. 825 bit = node
  76. 826 bits.append(force_unicode(bit))
  77. 827 return mark_safe(u''.join(bits))
  78. 828
  79. 829 def get_nodes_by_type(self, nodetype):
  80. Variables:
  81. node = <django.template.defaulttags.URLNode object at 0x61669d0>
  82. bit = u'\n<link type="text/css" rel="stylesheet" href="'
  83. bits = [u'\n<link type="text/css" rel="stylesheet" href="']
  84. self =
  85. [<Text Node: '
  86. <link type="text/css" re'>,
  87. <django.template.defaulttags.URLNode object at 0x61669d0>,
  88. <Text Node: '">
  89. '>]
  90. context =
  91. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  92. ------------------------------------------------------------------------
  93. File: /opt/noc/lib/python2.7/site-packages/django/template/loader_tags.py (Line: 62)
  94. Function: render
  95. 55 push = block = block_context.pop(self.name)
  96. 56 if block is None:
  97. 57 block = self
  98. 58 # Create new block so we can store context without thread-safety issues.
  99. 59 block = BlockNode(block.name, block.nodelist)
  100. 60 block.context = context
  101. 61 context['block'] = block
  102. 62 ==> result = block.nodelist.render(context)
  103. 63 if push is not None:
  104. 64 block_context.push(self.name, push)
  105. 65 context.pop()
  106. 66 return result
  107. 67
  108. 68 def super(self):
  109. Variables:
  110. push =
  111. <Block Node: extrahead. Contents: [<Text Node: '
  112. <link type="text/css" re'>, <django.template.defaulttags.URLNode object at 0x61669d0>, <Text Node: '">
  113. '>]>
  114. block_context = <django.template.loader_tags.BlockContext object at 0x6166450>
  115. context =
  116. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  117. block =
  118. <Block Node: extrahead. Contents: [<Text Node: '
  119. <link type="text/css" re'>, <django.template.defaulttags.URLNode object at 0x61669d0>, <Text Node: '">
  120. '>]>
  121. self = <Block Node: extrahead. Contents: []>
  122. ------------------------------------------------------------------------
  123. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
  124. Function: render_node
  125. 830 "Return a list of all nodes of the given type"
  126. 831 nodes = []
  127. 832 for node in self:
  128. 833 nodes.extend(node.get_nodes_by_type(nodetype))
  129. 834 return nodes
  130. 835
  131. 836 def render_node(self, node, context):
  132. 837 ==> return node.render(context)
  133. 838
  134. 839 class TextNode(Node):
  135. 840 def __init__(self, s):
  136. 841 self.s = s
  137. 842
  138. 843 def __repr__(self):
  139. Variables:
  140. node = <Block Node: extrahead. Contents: []>
  141. self =
  142. [<django.template.defaulttags.LoadNode object at 0x53bea10>,
  143. <django.template.defaulttags.LoadNode object at 0x47a3d90>,
  144. <Text Node: '<!DOCTYPE html>
  145. <html lan'>,
  146. <Variable Node: LANGUAGE_CODE|default:"en-us">,
  147. <Text Node: '" '>,
  148. <IfNode>,
  149. <Text Node: '>
  150. <head>
  151. <title>'>,
  152. <Block Node: title. Contents: []>,
  153. <Text Node: ' | '>,
  154. <Variable Node: setup.installation_name>,
  155. <Text Node: '</title>
  156. '>,
  157. <IfNode>,
  158. <Text Node: '
  159. <link rel="stylesheet" t'>,
  160. <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x47c7c10>]>,
  161. <Text Node: '" /><link rel="stylesheet'>,
  162. <django.template.base.SimpleNode object at 0x47c7bd0>,
  163. <Text Node: '"></SCRIPT>
  164. <SCRIPT TYPE='>,
  165. <Block Node: extrastyle. Contents: []>,
  166. <Text Node: '
  167. <!--[if lte IE 7]><link '>,
  168. <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x47c7610>, <Text Node: '/media/admin/css/ie.css'>]>,
  169. <Text Node: '" /><![endif]-->
  170. '>,
  171. <IfNode>,
  172. <Text Node: '
  173. <script type="text/javas'>,
  174. <Block Node: extrahead. Contents: []>,
  175. <Text Node: '
  176. '>,
  177. <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>,
  178. <Text Node: '
  179. </head>
  180. '>,
  181. <django.template.defaulttags.LoadNode object at 0x555a5d0>,
  182. <Text Node: '
  183.  
  184. <body class="'>,
  185. <IfNode>,
  186. <Block Node: bodyclass. Contents: []>,
  187. <Text Node: '"
  188. onmousemove="wi'>,
  189. <IfNode>,
  190. <Text Node: '
  191. '>,
  192. <IfNode>,
  193. <Text Node: '
  194.  
  195. <!-- Conten'>,
  196. <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
  197. <Text Node: '">
  198. '>,
  199. <Block Node: pretitle. Contents: []>,
  200. <Text Node: '
  201. '>,
  202. <Block Node: content_title. Contents: [<IfNode>]>,
  203. <Text Node: '
  204. '>,
  205. <Block Node: content. Contents: [<Text Node: '
  206. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  207. '>, <Variable Node: content>, <Text Node: '
  208. '>]>,
  209. <Text Node: '
  210. '>,
  211. <Block Node: sidebar. Contents: []>,
  212. <Text Node: '
  213. </div>
  214. <!-- END '>]
  215. context =
  216. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  217. ------------------------------------------------------------------------
  218. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
  219. Function: render
  220. 816 # extend_nodelist().
  221. 817 contains_nontext = False
  222. 818
  223. 819 def render(self, context):
  224. 820 bits = []
  225. 821 for node in self:
  226. 822 if isinstance(node, Node):
  227. 823 ==> bit = self.render_node(node, context)
  228. 824 else:
  229. 825 bit = node
  230. 826 bits.append(force_unicode(bit))
  231. 827 return mark_safe(u''.join(bits))
  232. 828
  233. 829 def get_nodes_by_type(self, nodetype):
  234. Variables:
  235. node = <Block Node: extrahead. Contents: []>
  236. bit =
  237. u'\n<script type="text/javascript">window.__admin_media_prefix__ = "/media/admin/";</script>\n'
  238. bits =
  239. [u'',
  240. u'',
  241. u'<!DOCTYPE html>\n<html lang="',
  242. u'ru',
  243. u'" ',
  244. u'',
  245. u'>\n<head>\n<title>',
  246. u'Managed Objects',
  247. u' | ',
  248. u'DanCer',
  249. u'</title>\n',
  250. u'\n <link rel="icon" type="image/png" href="/static/img/logo_24x24_deep_azure.png" />\n',
  251. u'\n<link rel="stylesheet" type="text/css" href="',
  252. u'/media/admin/css/base.css',
  253. u'" /><link rel="stylesheet" type="text/css" href="/static/css/main.css" />\n<META NAME="Copyright" CONTENT="2007-2011, nocproject.org" />\n<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />\n<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache" />\n<META HTTP-EQUIV="Expires" CONTENT="0" />\n<SCRIPT TYPE="text/javascript" SRC="',
  254. u'/media/admin/js/jquery.js',
  255. u'"></SCRIPT>\n<SCRIPT TYPE="text/javascript" SRC="/static/js/jquery.corner.js"></SCRIPT>\n<SCRIPT TYPE="text/javascript" SRC="/static/js/popup.js"></SCRIPT>\n',
  256. u'',
  257. u'\n<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="',
  258. u'/media/admin/css/ie.css',
  259. u'" /><![endif]-->\n',
  260. u'',
  261. u'\n<script type="text/javascript">window.__admin_media_prefix__ = "/media/admin/";</script>\n']
  262. self =
  263. [<django.template.defaulttags.LoadNode object at 0x53bea10>,
  264. <django.template.defaulttags.LoadNode object at 0x47a3d90>,
  265. <Text Node: '<!DOCTYPE html>
  266. <html lan'>,
  267. <Variable Node: LANGUAGE_CODE|default:"en-us">,
  268. <Text Node: '" '>,
  269. <IfNode>,
  270. <Text Node: '>
  271. <head>
  272. <title>'>,
  273. <Block Node: title. Contents: []>,
  274. <Text Node: ' | '>,
  275. <Variable Node: setup.installation_name>,
  276. <Text Node: '</title>
  277. '>,
  278. <IfNode>,
  279. <Text Node: '
  280. <link rel="stylesheet" t'>,
  281. <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x47c7c10>]>,
  282. <Text Node: '" /><link rel="stylesheet'>,
  283. <django.template.base.SimpleNode object at 0x47c7bd0>,
  284. <Text Node: '"></SCRIPT>
  285. <SCRIPT TYPE='>,
  286. <Block Node: extrastyle. Contents: []>,
  287. <Text Node: '
  288. <!--[if lte IE 7]><link '>,
  289. <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x47c7610>, <Text Node: '/media/admin/css/ie.css'>]>,
  290. <Text Node: '" /><![endif]-->
  291. '>,
  292. <IfNode>,
  293. <Text Node: '
  294. <script type="text/javas'>,
  295. <Block Node: extrahead. Contents: []>,
  296. <Text Node: '
  297. '>,
  298. <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>,
  299. <Text Node: '
  300. </head>
  301. '>,
  302. <django.template.defaulttags.LoadNode object at 0x555a5d0>,
  303. <Text Node: '
  304.  
  305. <body class="'>,
  306. <IfNode>,
  307. <Block Node: bodyclass. Contents: []>,
  308. <Text Node: '"
  309. onmousemove="wi'>,
  310. <IfNode>,
  311. <Text Node: '
  312. '>,
  313. <IfNode>,
  314. <Text Node: '
  315.  
  316. <!-- Conten'>,
  317. <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
  318. <Text Node: '">
  319. '>,
  320. <Block Node: pretitle. Contents: []>,
  321. <Text Node: '
  322. '>,
  323. <Block Node: content_title. Contents: [<IfNode>]>,
  324. <Text Node: '
  325. '>,
  326. <Block Node: content. Contents: [<Text Node: '
  327. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  328. '>, <Variable Node: content>, <Text Node: '
  329. '>]>,
  330. <Text Node: '
  331. '>,
  332. <Block Node: sidebar. Contents: []>,
  333. <Text Node: '
  334. </div>
  335. <!-- END '>]
  336. context =
  337. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  338. ------------------------------------------------------------------------
  339. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 134)
  340. Function: _render
  341. 127
  342. 128 def __iter__(self):
  343. 129 for node in self.nodelist:
  344. 130 for subnode in node:
  345. 131 yield subnode
  346. 132
  347. 133 def _render(self, context):
  348. 134 ==> return self.nodelist.render(context)
  349. 135
  350. 136 def render(self, context):
  351. 137 "Display stage -- can be called many times"
  352. 138 context.render_context.push()
  353. 139 try:
  354. 140 return self._render(context)
  355. Variables:
  356. self = <django.template.base.Template object at 0x5328a90>
  357. context =
  358. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  359. ------------------------------------------------------------------------
  360. File: /opt/noc/lib/python2.7/site-packages/django/template/loader_tags.py (Line: 123)
  361. Function: render
  362. 116 blocks = dict([(n.name, n) for n in
  363. 117 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  364. 118 block_context.add_blocks(blocks)
  365. 119 break
  366. 120
  367. 121 # Call Template._render explicitly so the parser context stays
  368. 122 # the same.
  369. 123 ==> return compiled_parent._render(context)
  370. 124
  371. 125 class BaseIncludeNode(Node):
  372. 126 def __init__(self, *args, **kwargs):
  373. 127 self.extra_context = kwargs.pop('extra_context', {})
  374. 128 self.isolated_context = kwargs.pop('isolated_context', False)
  375. 129 super(BaseIncludeNode, self).__init__(*args, **kwargs)
  376. Variables:
  377. node = <django.template.defaulttags.LoadNode object at 0x53bea10>
  378. blocks =
  379. {u'blockbots': <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>,
  380. u'bodyclass': <Block Node: bodyclass. Contents: []>,
  381. u'breadcrumbs': <Block Node: breadcrumbs. Contents: [<Text Node: '<li>'>, <django.templatetags.i18n.TranslateNode object at 0x47c7f50>, <Text Node: '</li>'>]>,
  382. u'coltype': <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
  383. u'content': <Block Node: content. Contents: [<Text Node: '
  384. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  385. '>, <Variable Node: content>, <Text Node: '
  386. '>]>,
  387. u'content_title': <Block Node: content_title. Contents: [<IfNode>]>,
  388. u'extrahead': <Block Node: extrahead. Contents: []>,
  389. u'extrastyle': <Block Node: extrastyle. Contents: []>,
  390. u'object-tools': <Block Node: object-tools. Contents: []>,
  391. u'pretitle': <Block Node: pretitle. Contents: []>,
  392. u'sidebar': <Block Node: sidebar. Contents: []>,
  393. u'stylesheet': <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x47c7c10>]>,
  394. u'stylesheet_ie': <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x47c7610>, <Text Node: '/media/admin/css/ie.css'>]>,
  395. u'stylesheet_rtl': <Block Node: stylesheet_rtl. Contents: [<Text Node: '/media/admin/css/rtl.css'>]>,
  396. u'title': <Block Node: title. Contents: []>}
  397. block_context = <django.template.loader_tags.BlockContext object at 0x6166450>
  398. n = <Block Node: sidebar. Contents: []>
  399. context =
  400. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  401. compiled_parent = <django.template.base.Template object at 0x5328a90>
  402. self = <ExtendsNode: extends "admin/base.html">
  403. ------------------------------------------------------------------------
  404. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
  405. Function: render_node
  406. 830 "Return a list of all nodes of the given type"
  407. 831 nodes = []
  408. 832 for node in self:
  409. 833 nodes.extend(node.get_nodes_by_type(nodetype))
  410. 834 return nodes
  411. 835
  412. 836 def render_node(self, node, context):
  413. 837 ==> return node.render(context)
  414. 838
  415. 839 class TextNode(Node):
  416. 840 def __init__(self, s):
  417. 841 self.s = s
  418. 842
  419. 843 def __repr__(self):
  420. Variables:
  421. node = <ExtendsNode: extends "admin/base.html">
  422. self = [<ExtendsNode: extends "admin/base.html">]
  423. context =
  424. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  425. ------------------------------------------------------------------------
  426. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
  427. Function: render
  428. 816 # extend_nodelist().
  429. 817 contains_nontext = False
  430. 818
  431. 819 def render(self, context):
  432. 820 bits = []
  433. 821 for node in self:
  434. 822 if isinstance(node, Node):
  435. 823 ==> bit = self.render_node(node, context)
  436. 824 else:
  437. 825 bit = node
  438. 826 bits.append(force_unicode(bit))
  439. 827 return mark_safe(u''.join(bits))
  440. 828
  441. 829 def get_nodes_by_type(self, nodetype):
  442. Variables:
  443. node = <ExtendsNode: extends "admin/base.html">
  444. self = [<ExtendsNode: extends "admin/base.html">]
  445. bits = []
  446. context =
  447. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  448. ------------------------------------------------------------------------
  449. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 134)
  450. Function: _render
  451. 127
  452. 128 def __iter__(self):
  453. 129 for node in self.nodelist:
  454. 130 for subnode in node:
  455. 131 yield subnode
  456. 132
  457. 133 def _render(self, context):
  458. 134 ==> return self.nodelist.render(context)
  459. 135
  460. 136 def render(self, context):
  461. 137 "Display stage -- can be called many times"
  462. 138 context.render_context.push()
  463. 139 try:
  464. 140 return self._render(context)
  465. Variables:
  466. self = <django.template.base.Template object at 0x61662d0>
  467. context =
  468. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  469. ------------------------------------------------------------------------
  470. File: /opt/noc/lib/python2.7/site-packages/django/template/loader_tags.py (Line: 123)
  471. Function: render
  472. 116 blocks = dict([(n.name, n) for n in
  473. 117 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  474. 118 block_context.add_blocks(blocks)
  475. 119 break
  476. 120
  477. 121 # Call Template._render explicitly so the parser context stays
  478. 122 # the same.
  479. 123 ==> return compiled_parent._render(context)
  480. 124
  481. 125 class BaseIncludeNode(Node):
  482. 126 def __init__(self, *args, **kwargs):
  483. 127 self.extra_context = kwargs.pop('extra_context', {})
  484. 128 self.isolated_context = kwargs.pop('isolated_context', False)
  485. 129 super(BaseIncludeNode, self).__init__(*args, **kwargs)
  486. Variables:
  487. node = <ExtendsNode: extends "admin/base.html">
  488. block_context = <django.template.loader_tags.BlockContext object at 0x6166450>
  489. compiled_parent = <django.template.base.Template object at 0x61662d0>
  490. self = <ExtendsNode: extends "template.html">
  491. context =
  492. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  493. ------------------------------------------------------------------------
  494. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
  495. Function: render_node
  496. 830 "Return a list of all nodes of the given type"
  497. 831 nodes = []
  498. 832 for node in self:
  499. 833 nodes.extend(node.get_nodes_by_type(nodetype))
  500. 834 return nodes
  501. 835
  502. 836 def render_node(self, node, context):
  503. 837 ==> return node.render(context)
  504. 838
  505. 839 class TextNode(Node):
  506. 840 def __init__(self, s):
  507. 841 self.s = s
  508. 842
  509. 843 def __repr__(self):
  510. Variables:
  511. node = <ExtendsNode: extends "template.html">
  512. self = [<ExtendsNode: extends "template.html">]
  513. context =
  514. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  515. ------------------------------------------------------------------------
  516. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
  517. Function: render
  518. 816 # extend_nodelist().
  519. 817 contains_nontext = False
  520. 818
  521. 819 def render(self, context):
  522. 820 bits = []
  523. 821 for node in self:
  524. 822 if isinstance(node, Node):
  525. 823 ==> bit = self.render_node(node, context)
  526. 824 else:
  527. 825 bit = node
  528. 826 bits.append(force_unicode(bit))
  529. 827 return mark_safe(u''.join(bits))
  530. 828
  531. 829 def get_nodes_by_type(self, nodetype):
  532. Variables:
  533. node = <ExtendsNode: extends "template.html">
  534. self = [<ExtendsNode: extends "template.html">]
  535. bits = []
  536. context =
  537. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  538. ------------------------------------------------------------------------
  539. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 134)
  540. Function: _render
  541. 127
  542. 128 def __iter__(self):
  543. 129 for node in self.nodelist:
  544. 130 for subnode in node:
  545. 131 yield subnode
  546. 132
  547. 133 def _render(self, context):
  548. 134 ==> return self.nodelist.render(context)
  549. 135
  550. 136 def render(self, context):
  551. 137 "Display stage -- can be called many times"
  552. 138 context.render_context.push()
  553. 139 try:
  554. 140 return self._render(context)
  555. Variables:
  556. self = <django.template.base.Template object at 0x6166610>
  557. context =
  558. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  559. ------------------------------------------------------------------------
  560. File: /opt/noc/lib/python2.7/site-packages/django/template/base.py (Line: 140)
  561. Function: render
  562. 133 def _render(self, context):
  563. 134 return self.nodelist.render(context)
  564. 135
  565. 136 def render(self, context):
  566. 137 "Display stage -- can be called many times"
  567. 138 context.render_context.push()
  568. 139 try:
  569. 140 ==> return self._render(context)
  570. 141 finally:
  571. 142 context.render_context.pop()
  572. 143
  573. 144 def compile_string(template_string, origin):
  574. 145 "Compiles template_string into NodeList ready for rendering"
  575. 146 if settings.TEMPLATE_DEBUG:
  576. Variables:
  577. self = <django.template.base.Template object at 0x6166610>
  578. context =
  579. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  580. ------------------------------------------------------------------------
  581. File: /opt/noc/lib/python2.7/site-packages/django/template/loader.py (Line: 176)
  582. Function: render_to_string
  583. 169 t = get_template(template_name)
  584. 170 if not context_instance:
  585. 171 return t.render(Context(dictionary))
  586. 172 # Add the dictionary to the context stack, ensuring it gets removed again
  587. 173 # to keep the context_instance in the same state it started in.
  588. 174 context_instance.update(dictionary)
  589. 175 try:
  590. 176 ==> return t.render(context_instance)
  591. 177 finally:
  592. 178 context_instance.pop()
  593. 179
  594. 180 def select_template(template_name_list):
  595. 181 "Given a list of template names, returns the first that can be loaded."
  596. 182 if not template_name_list:
  597. Variables:
  598. template_name =
  599. ['sa/apps/managedobject/templates/alarms.html',
  600. 'sa/templates/alarms.html',
  601. 'templates/alarms.html']
  602. t = <django.template.base.Template object at 0x6166610>
  603. dictionary =
  604. {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>,
  605. <AlarmSeverity: WARNING>,
  606. u'BPDU Guard Violation on 9')],
  607. 'object': <ManagedObject: sw-17-137.133.danpro.ru>}
  608. context_instance =
  609. [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
  610. ------------------------------------------------------------------------
  611. File: /opt/noc/lib/python2.7/site-packages/django/shortcuts/__init__.py (Line: 20)
  612. Function: render_to_response
  613. 13
  614. 14 def render_to_response(*args, **kwargs):
  615. 15 """
  616. 16 Returns a HttpResponse whose content is filled with the result of calling
  617. 17 django.template.loader.render_to_string() with the passed arguments.
  618. 18 """
  619. 19 httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
  620. 20 ==> return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
  621. 21
  622. 22 def render(request, *args, **kwargs):
  623. 23 """
  624. 24 Returns a HttpResponse whose content is filled with the result of calling
  625. 25 django.template.loader.render_to_string() with the passed arguments.
  626. 26 Uses a RequestContext by default.
  627. Variables:
  628. httpresponse_kwargs = {'mimetype': None}
  629. args =
  630. (['sa/apps/managedobject/templates/alarms.html',
  631. 'sa/templates/alarms.html',
  632. 'templates/alarms.html'],
  633. {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>,
  634. <AlarmSeverity: WARNING>,
  635. u'BPDU Guard Violation on 9')],
  636. 'object': <ManagedObject: sw-17-137.133.danpro.ru>})
  637. kwargs =
  638. {'context_instance': [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]}
  639. ------------------------------------------------------------------------
  640. File: /opt/noc/lib/app/application.py (Line: 245)
  641. Function: render
  642. 238 def render(self, request, template, dict={}, **kwargs):
  643. 239 """
  644. 240 Render template within context
  645. 241 """
  646. 242 return render_to_response(self.get_template_path(template),
  647. 243 dict if dict else kwargs,
  648. 244 context_instance=RequestContext(request,
  649. 245 ==> {"app": self}))
  650. 246
  651. 247 def render_template(self, template, dict={}, **kwargs):
  652. 248 """
  653. 249 Render template to string
  654. 250 """
  655. 251 tp = self.get_template_path(template)
  656. Variables:
  657. request =
  658. <WSGIRequest
  659. path:/sa/managedobject/46/alarms/,
  660. GET:<QueryDict: {}>,
  661. POST:<QueryDict: {}>,
  662. COOKIES:{'csrftoken': 'huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
  663. 'sessionid': '09c109be092b0490569a839d12ba364b'},
  664. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  665. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  666. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
  667. 'HTTP_CONNECTION': 'close',
  668. 'HTTP_COOKIE': 'sessionid=09c109be092b0490569a839d12ba364b; csrftoken=huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
  669. 'HTTP_HOST': '127.0.0.1:8000',
  670. 'HTTP_REFERER': 'http://192.168.0.251/sa/managedobject/',
  671. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0',
  672. 'PATH_INFO': u'/sa/managedobject/46/alarms/',
  673. 'QUERY_STRING': '',
  674. 'REMOTE_ADDR': '127.0.0.1',
  675. 'REQUEST_METHOD': 'GET',
  676. 'SCRIPT_NAME': u'',
  677. 'SERVER_NAME': '127.0.0.1',
  678. 'SERVER_PORT': '8000',
  679. 'SERVER_PROTOCOL': 'HTTP/1.0',
  680. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x26f0e40>,
  681. 'wsgi.input': <_io.BytesIO object at 0x594d770>,
  682. 'wsgi.multiprocess': True,
  683. 'wsgi.multithread': False,
  684. 'wsgi.run_once': False,
  685. 'wsgi.url_scheme': 'http',
  686. 'wsgi.version': (1, 0)}>
  687. self =
  688. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>
  689. dict = {}
  690. template = 'alarms.html'
  691. kwargs =
  692. {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>,
  693. <AlarmSeverity: WARNING>,
  694. u'BPDU Guard Violation on 9')],
  695. 'object': <ManagedObject: sw-17-137.133.danpro.ru>}
  696. ------------------------------------------------------------------------
  697. File: /opt/noc/sa/apps/managedobject/views.py (Line: 519)
  698. Function: view_alarms
  699. 512 def view_alarms(self, request, object_id):
  700. 513 o = self.get_object_or_404(ManagedObject, id=int(object_id))
  701. 514 u_lang = request.session["django_language"]
  702. 515 alarms = [(a, AlarmSeverity.get_severity(a.severity), a.get_translated_subject(u_lang))
  703. 516 for a in
  704. 517 ActiveAlarm.objects.filter(managed_object=o.id).order_by("-severity,timestamp")]
  705. 518 return self.render(request, "alarms.html",
  706. 519 ==> object=o, alarms=alarms)
  707. 520
  708. 521 def user_access_list(self, user):
  709. 522 return [s.selector.name for s in UserAccess.objects.filter(user=user)]
  710. 523
  711. 524 def user_access_change_url(self, user):
  712. 525 return self.site.reverse("sa:useraccess:changelist",
  713. Variables:
  714. a = <ActiveAlarm: 533509dd06e3d349a4672497>
  715. u_lang = 'en-us'
  716. self =
  717. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>
  718. request =
  719. <WSGIRequest
  720. path:/sa/managedobject/46/alarms/,
  721. GET:<QueryDict: {}>,
  722. POST:<QueryDict: {}>,
  723. COOKIES:{'csrftoken': 'huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
  724. 'sessionid': '09c109be092b0490569a839d12ba364b'},
  725. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  726. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  727. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
  728. 'HTTP_CONNECTION': 'close',
  729. 'HTTP_COOKIE': 'sessionid=09c109be092b0490569a839d12ba364b; csrftoken=huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
  730. 'HTTP_HOST': '127.0.0.1:8000',
  731. 'HTTP_REFERER': 'http://192.168.0.251/sa/managedobject/',
  732. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0',
  733. 'PATH_INFO': u'/sa/managedobject/46/alarms/',
  734. 'QUERY_STRING': '',
  735. 'REMOTE_ADDR': '127.0.0.1',
  736. 'REQUEST_METHOD': 'GET',
  737. 'SCRIPT_NAME': u'',
  738. 'SERVER_NAME': '127.0.0.1',
  739. 'SERVER_PORT': '8000',
  740. 'SERVER_PROTOCOL': 'HTTP/1.0',
  741. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x26f0e40>,
  742. 'wsgi.input': <_io.BytesIO object at 0x594d770>,
  743. 'wsgi.multiprocess': True,
  744. 'wsgi.multithread': False,
  745. 'wsgi.run_once': False,
  746. 'wsgi.url_scheme': 'http',
  747. 'wsgi.version': (1, 0)}>
  748. object_id = u'46'
  749. o = <ManagedObject: sw-17-137.133.danpro.ru>
  750. alarms =
  751. [(<ActiveAlarm: 533509dd06e3d349a4672497>,
  752. <AlarmSeverity: WARNING>,
  753. u'BPDU Guard Violation on 9')]
  754. ------------------------------------------------------------------------
  755. File: /opt/noc/lib/app/site.py (Line: 232)
  756. Function: inner
  757. 225 for k, v in request.POST.lists())
  758. 226 elif request.method == "GET":
  759. 227 a = dict((k, v[0] if len(v) == 1 else v)
  760. 228 for k, v in request.GET.lists())
  761. 229 logging.debug("API %s %s %s" % (request.method,
  762. 230 request.path, a))
  763. 231 # Call handler
  764. 232 ==> r = v(request, *args, **kwargs)
  765. 233 # Dump SQL statements
  766. 234 if self.log_sql_statements:
  767. 235 from django.db import connections
  768. 236 tsc = 0
  769. 237 sc = defaultdict(int)
  770. 238 for conn in connections.all():
  771. Variables:
  772. args = ()
  773. view_map =
  774. {'DELETE': <bound method ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>,
  775. 'GET': <bound method ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>,
  776. 'POST': <bound method ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>,
  777. 'PUT': <bound method ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>}
  778. Form = <class 'django.forms.forms.Form'>
  779. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  780. self = <noc.lib.app.site.Site object at 0x2f2d390>
  781. v =
  782. <bound method ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>
  783. request =
  784. <WSGIRequest
  785. path:/sa/managedobject/46/alarms/,
  786. GET:<QueryDict: {}>,
  787. POST:<QueryDict: {}>,
  788. COOKIES:{'csrftoken': 'huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
  789. 'sessionid': '09c109be092b0490569a839d12ba364b'},
  790. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  791. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  792. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
  793. 'HTTP_CONNECTION': 'close',
  794. 'HTTP_COOKIE': 'sessionid=09c109be092b0490569a839d12ba364b; csrftoken=huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
  795. 'HTTP_HOST': '127.0.0.1:8000',
  796. 'HTTP_REFERER': 'http://192.168.0.251/sa/managedobject/',
  797. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0',
  798. 'PATH_INFO': u'/sa/managedobject/46/alarms/',
  799. 'QUERY_STRING': '',
  800. 'REMOTE_ADDR': '127.0.0.1',
  801. 'REQUEST_METHOD': 'GET',
  802. 'SCRIPT_NAME': u'',
  803. 'SERVER_NAME': '127.0.0.1',
  804. 'SERVER_PORT': '8000',
  805. 'SERVER_PROTOCOL': 'HTTP/1.0',
  806. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x26f0e40>,
  807. 'wsgi.input': <_io.BytesIO object at 0x594d770>,
  808. 'wsgi.multiprocess': True,
  809. 'wsgi.multithread': False,
  810. 'wsgi.run_once': False,
  811. 'wsgi.url_scheme': 'http',
  812. 'wsgi.version': (1, 0)}>
  813. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  814. to_log_api_call = False
  815. kwargs = {'object_id': u'46'}
  816. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  817. app =
  818. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>
  819. ------------------------------------------------------------------------
  820. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement