Guest User

Untitled

a guest
Aug 6th, 2013
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.33 KB | None | 0 0
  1. NHANDLED EXCEPTION (2013-08-06 14:26:39.061728)
  2. Working directory: /usr/local/noc
  3. <class 'django.core.urlresolvers.NoReverseMatch'>
  4. Reverse for 'preview' with arguments '(ObjectId('4eeb5059bcf4b106a3000150'),)' and keyword arguments '{}' not found.
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /usr/local/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 'preview' with arguments '(ObjectId('4eeb5059bcf4b106a3000150'),)' and keyword arguments '{}' not found.",)
  27. reverse = <function reverse at 0x803881c80>
  28. url = ''
  29. self = <django.template.defaulttags.URLNode object at 0x8096b5210>
  30. args = [ObjectId('4eeb5059bcf4b106a3000150')]
  31. view_name = u'fm:eventclass:preview'
  32. context =
  33. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  34. kwargs = {}
  35. NoReverseMatch = <class 'django.core.urlresolvers.NoReverseMatch'>
  36. arg = <django.template.base.FilterExpression object at 0x809e30c90>
  37. ------------------------------------------------------------------------
  38. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
  39. Function: render_node
  40. 830 "Return a list of all nodes of the given type"
  41. 831 nodes = []
  42. 832 for node in self:
  43. 833 nodes.extend(node.get_nodes_by_type(nodetype))
  44. 834 return nodes
  45. 835
  46. 836 def render_node(self, node, context):
  47. 837 ==> return node.render(context)
  48. 838
  49. 839 class TextNode(Node):
  50. 840 def __init__(self, s):
  51. 841 self.s = s
  52. 842
  53. 843 def __repr__(self):
  54. Variables:
  55. node = <django.template.defaulttags.URLNode object at 0x8096b5210>
  56. self =
  57. [<Text Node: '
  58. <ul class="object-tools"'>,
  59. <django.template.defaulttags.URLNode object at 0x8096b5d90>,
  60. <Text Node: '')">JSON</a></li>
  61. <li'>,
  62. <django.template.defaulttags.URLNode object at 0x8096b5810>,
  63. <Text Node: '')">Test Event</a></li>
  64. '>,
  65. <django.template.defaulttags.URLNode object at 0x8096b5110>,
  66. <Text Node: '">Change Classification R'>,
  67. <Variable Node: o.name>,
  68. <Text Node: '</h1>
  69.  
  70. <style>
  71. .label'>,
  72. <Variable Node: o.name>,
  73. <Text Node: '</td></tr>
  74. <tr><t'>,
  75. <Variable Node: o.is_builtin|bool_icon>,
  76. <Text Node: '</td></tr>
  77. <tr><t'>,
  78. <Variable Node: o.description>,
  79. <Text Node: '</td></tr>
  80. <tr><t'>,
  81. <django.template.defaulttags.URLNode object at 0x8096b5210>,
  82. <Text Node: '">'>,
  83. <Variable Node: o.event_class.name>,
  84. <Text Node: '</a></td></tr>
  85. <t'>,
  86. <Variable Node: o.preference>,
  87. <Text Node: '</td></tr>
  88. </table>
  89.  
  90. '>,
  91. <For Node: for p in o.patterns, tail_len: 9>,
  92. <Text Node: '
  93. </table>
  94. </div>
  95.  
  96. <di'>,
  97. <Variable Node: o.event_class.name>,
  98. <Text Node: '</h2>
  99. <table border="'>,
  100. <Variable Node: o.event_class.name>,
  101. <Text Node: '</td></tr>
  102. <tr><t'>,
  103. <Variable Node: o.event_class.is_builtin|bool_icon>,
  104. <Text Node: '</td></tr>
  105. <tr><t'>,
  106. <Variable Node: o.event_class.description>,
  107. <Text Node: '</td></tr>
  108. <tr><t'>,
  109. <Variable Node: o.event_class.action>,
  110. <Text Node: '</td></tr>
  111. '>,
  112. <For Node: for lang in o.event_class.text, tail_len: 5>,
  113. <Text Node: '
  114. </table>
  115.  
  116. <h'>,
  117. <For Node: for v in o.event_class.vars, tail_len: 11>,
  118. <Text Node: '
  119. </table>
  120. </div>
  121. '>]
  122. context =
  123. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  124. ------------------------------------------------------------------------
  125. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
  126. Function: render
  127. 816 # extend_nodelist().
  128. 817 contains_nontext = False
  129. 818
  130. 819 def render(self, context):
  131. 820 bits = []
  132. 821 for node in self:
  133. 822 if isinstance(node, Node):
  134. 823 ==> bit = self.render_node(node, context)
  135. 824 else:
  136. 825 bit = node
  137. 826 bits.append(force_unicode(bit))
  138. 827 return mark_safe(u''.join(bits))
  139. 828
  140. 829 def get_nodes_by_type(self, nodetype):
  141. Variables:
  142. node = <django.template.defaulttags.URLNode object at 0x8096b5210>
  143. bit = u'</td></tr>\n <tr><td><b>Event class</b></td><td><a href="'
  144. bits =
  145. [u'\n<ul class="object-tools">\n <li><a href="#" onclick="return show_popup(\'JSON\', \'',
  146. u'/fm/classificationrule/4eeb505abcf4b106a300023f/to_json/',
  147. u'\')">JSON</a></li>\n <li><a href="#" onclick="return show_popup(\'Test Event\', \'',
  148. u'/fm/classificationrule/4eeb505abcf4b106a300023f/test_event/',
  149. u'\')">Test Event</a></li>\n <li><a href="',
  150. u'/fm/classificationrule/4eeb505abcf4b106a300023f/change/',
  151. u'">Change Classification Rule</a></li>\n</ul>\n\n<h1>Event Classification Rule: ',
  152. u'APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)',
  153. u'</h1>\n\n<style>\n .labels {\n width: 100px;\n }\n \n .types {\n width: 50px;\n }\n \n .required {\n width: 30px;\n }\n \n .optional {\n font-style: italic;\n }\n \n .testre {\n float: right;\n }\n</style>\n<div class="module">\n <h2>Summary</h2>\n <table border="0" width="100%">\n <tr><td class="labels"><b>Name</b></td><td>',
  154. u'APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)',
  155. u'</td></tr>\n <tr><td><b>Is builtin</b></td><td>',
  156. u"<img src='/media/admin/img/icon-yes.gif' alt='Yes' />",
  157. u'</td></tr>\n <tr><td><b>Description</b></td><td>',
  158. u'UPS: A base module fan fault exists. 0x0120',
  159. u'</td></tr>\n <tr><td><b>Event class</b></td><td><a href="']
  160. self =
  161. [<Text Node: '
  162. <ul class="object-tools"'>,
  163. <django.template.defaulttags.URLNode object at 0x8096b5d90>,
  164. <Text Node: '')">JSON</a></li>
  165. <li'>,
  166. <django.template.defaulttags.URLNode object at 0x8096b5810>,
  167. <Text Node: '')">Test Event</a></li>
  168. '>,
  169. <django.template.defaulttags.URLNode object at 0x8096b5110>,
  170. <Text Node: '">Change Classification R'>,
  171. <Variable Node: o.name>,
  172. <Text Node: '</h1>
  173.  
  174. <style>
  175. .label'>,
  176. <Variable Node: o.name>,
  177. <Text Node: '</td></tr>
  178. <tr><t'>,
  179. <Variable Node: o.is_builtin|bool_icon>,
  180. <Text Node: '</td></tr>
  181. <tr><t'>,
  182. <Variable Node: o.description>,
  183. <Text Node: '</td></tr>
  184. <tr><t'>,
  185. <django.template.defaulttags.URLNode object at 0x8096b5210>,
  186. <Text Node: '">'>,
  187. <Variable Node: o.event_class.name>,
  188. <Text Node: '</a></td></tr>
  189. <t'>,
  190. <Variable Node: o.preference>,
  191. <Text Node: '</td></tr>
  192. </table>
  193.  
  194. '>,
  195. <For Node: for p in o.patterns, tail_len: 9>,
  196. <Text Node: '
  197. </table>
  198. </div>
  199.  
  200. <di'>,
  201. <Variable Node: o.event_class.name>,
  202. <Text Node: '</h2>
  203. <table border="'>,
  204. <Variable Node: o.event_class.name>,
  205. <Text Node: '</td></tr>
  206. <tr><t'>,
  207. <Variable Node: o.event_class.is_builtin|bool_icon>,
  208. <Text Node: '</td></tr>
  209. <tr><t'>,
  210. <Variable Node: o.event_class.description>,
  211. <Text Node: '</td></tr>
  212. <tr><t'>,
  213. <Variable Node: o.event_class.action>,
  214. <Text Node: '</td></tr>
  215. '>,
  216. <For Node: for lang in o.event_class.text, tail_len: 5>,
  217. <Text Node: '
  218. </table>
  219.  
  220. <h'>,
  221. <For Node: for v in o.event_class.vars, tail_len: 11>,
  222. <Text Node: '
  223. </table>
  224. </div>
  225. '>]
  226. context =
  227. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  228. ------------------------------------------------------------------------
  229. File: /usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py (Line: 62)
  230. Function: render
  231. 55 push = block = block_context.pop(self.name)
  232. 56 if block is None:
  233. 57 block = self
  234. 58 # Create new block so we can store context without thread-safety issues.
  235. 59 block = BlockNode(block.name, block.nodelist)
  236. 60 block.context = context
  237. 61 context['block'] = block
  238. 62 ==> result = block.nodelist.render(context)
  239. 63 if push is not None:
  240. 64 block_context.push(self.name, push)
  241. 65 context.pop()
  242. 66 return result
  243. 67
  244. 68 def super(self):
  245. Variables:
  246. push =
  247. <Block Node: content. Contents: [<Text Node: '
  248. <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x8096b5d90>, <Text Node: '')">JSON</a></li>
  249. <li'>, <django.template.defaulttags.URLNode object at 0x8096b5810>, <Text Node: '')">Test Event</a></li>
  250. '>, <django.template.defaulttags.URLNode object at 0x8096b5110>, <Text Node: '">Change Classification R'>, <Variable Node: o.name>, <Text Node: '</h1>
  251.  
  252. <style>
  253. .label'>, <Variable Node: o.name>, <Text Node: '</td></tr>
  254. <tr><t'>, <Variable Node: o.is_builtin|bool_icon>, <Text Node: '</td></tr>
  255. <tr><t'>, <Variable Node: o.description>, <Text Node: '</td></tr>
  256. <tr><t'>, <django.template.defaulttags.URLNode object at 0x8096b5210>, <Text Node: '">'>, <Variable Node: o.event_class.name>, <Text Node: '</a></td></tr>
  257. <t'>, <Variable Node: o.preference>, <Text Node: '</td></tr>
  258. </table>
  259.  
  260. '>, <For Node: for p in o.patterns, tail_len: 9>, <Text Node: '
  261. </table>
  262. </div>
  263.  
  264. <di'>, <Variable Node: o.event_class.name>, <Text Node: '</h2>
  265. <table border="'>, <Variable Node: o.event_class.name>, <Text Node: '</td></tr>
  266. <tr><t'>, <Variable Node: o.event_class.is_builtin|bool_icon>, <Text Node: '</td></tr>
  267. <tr><t'>, <Variable Node: o.event_class.description>, <Text Node: '</td></tr>
  268. <tr><t'>, <Variable Node: o.event_class.action>, <Text Node: '</td></tr>
  269. '>, <For Node: for lang in o.event_class.text, tail_len: 5>, <Text Node: '
  270. </table>
  271.  
  272. <h'>, <For Node: for v in o.event_class.vars, tail_len: 11>, <Text Node: '
  273. </table>
  274. </div>
  275. '>]>
  276. block_context = <django.template.loader_tags.BlockContext object at 0x8096b5490>
  277. context =
  278. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  279. block =
  280. <Block Node: content. Contents: [<Text Node: '
  281. <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x8096b5d90>, <Text Node: '')">JSON</a></li>
  282. <li'>, <django.template.defaulttags.URLNode object at 0x8096b5810>, <Text Node: '')">Test Event</a></li>
  283. '>, <django.template.defaulttags.URLNode object at 0x8096b5110>, <Text Node: '">Change Classification R'>, <Variable Node: o.name>, <Text Node: '</h1>
  284.  
  285. <style>
  286. .label'>, <Variable Node: o.name>, <Text Node: '</td></tr>
  287. <tr><t'>, <Variable Node: o.is_builtin|bool_icon>, <Text Node: '</td></tr>
  288. <tr><t'>, <Variable Node: o.description>, <Text Node: '</td></tr>
  289. <tr><t'>, <django.template.defaulttags.URLNode object at 0x8096b5210>, <Text Node: '">'>, <Variable Node: o.event_class.name>, <Text Node: '</a></td></tr>
  290. <t'>, <Variable Node: o.preference>, <Text Node: '</td></tr>
  291. </table>
  292.  
  293. '>, <For Node: for p in o.patterns, tail_len: 9>, <Text Node: '
  294. </table>
  295. </div>
  296.  
  297. <di'>, <Variable Node: o.event_class.name>, <Text Node: '</h2>
  298. <table border="'>, <Variable Node: o.event_class.name>, <Text Node: '</td></tr>
  299. <tr><t'>, <Variable Node: o.event_class.is_builtin|bool_icon>, <Text Node: '</td></tr>
  300. <tr><t'>, <Variable Node: o.event_class.description>, <Text Node: '</td></tr>
  301. <tr><t'>, <Variable Node: o.event_class.action>, <Text Node: '</td></tr>
  302. '>, <For Node: for lang in o.event_class.text, tail_len: 5>, <Text Node: '
  303. </table>
  304.  
  305. <h'>, <For Node: for v in o.event_class.vars, tail_len: 11>, <Text Node: '
  306. </table>
  307. </div>
  308. '>]>
  309. self =
  310. <Block Node: content. Contents: [<Text Node: '
  311. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  312. '>, <Variable Node: content>, <Text Node: '
  313. '>]>
  314. ------------------------------------------------------------------------
  315. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
  316. Function: render_node
  317. 830 "Return a list of all nodes of the given type"
  318. 831 nodes = []
  319. 832 for node in self:
  320. 833 nodes.extend(node.get_nodes_by_type(nodetype))
  321. 834 return nodes
  322. 835
  323. 836 def render_node(self, node, context):
  324. 837 ==> return node.render(context)
  325. 838
  326. 839 class TextNode(Node):
  327. 840 def __init__(self, s):
  328. 841 self.s = s
  329. 842
  330. 843 def __repr__(self):
  331. Variables:
  332. node =
  333. <Block Node: content. Contents: [<Text Node: '
  334. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  335. '>, <Variable Node: content>, <Text Node: '
  336. '>]>
  337. self =
  338. [<django.template.defaulttags.LoadNode object at 0x809e4ca10>,
  339. <django.template.defaulttags.LoadNode object at 0x809cf2c90>,
  340. <Text Node: '<!DOCTYPE html>
  341. <html lan'>,
  342. <Variable Node: LANGUAGE_CODE|default:"en-us">,
  343. <Text Node: '" '>,
  344. <IfNode>,
  345. <Text Node: '>
  346. <head>
  347. <title>'>,
  348. <Block Node: title. Contents: []>,
  349. <Text Node: ' | '>,
  350. <Variable Node: setup.installation_name>,
  351. <Text Node: '</title>
  352. '>,
  353. <IfNode>,
  354. <Text Node: '
  355. <link rel="stylesheet" t'>,
  356. <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x8096c9150>]>,
  357. <Text Node: '" /><link rel="stylesheet'>,
  358. <django.template.base.SimpleNode object at 0x8096c9e90>,
  359. <Text Node: '"></SCRIPT>
  360. <SCRIPT TYPE='>,
  361. <Block Node: extrastyle. Contents: []>,
  362. <Text Node: '
  363. <!--[if lte IE 7]><link '>,
  364. <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x8096c97d0>, <Text Node: '/media/admin/css/ie.css'>]>,
  365. <Text Node: '" /><![endif]-->
  366. '>,
  367. <IfNode>,
  368. <Text Node: '
  369. <script type="text/javas'>,
  370. <Block Node: extrahead. Contents: []>,
  371. <Text Node: '
  372. '>,
  373. <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>,
  374. <Text Node: '
  375. </head>
  376. '>,
  377. <django.template.defaulttags.LoadNode object at 0x8096c9dd0>,
  378. <Text Node: '
  379.  
  380. <body class="'>,
  381. <IfNode>,
  382. <Block Node: bodyclass. Contents: []>,
  383. <Text Node: '"
  384. onmousemove="wi'>,
  385. <IfNode>,
  386. <Text Node: '
  387. '>,
  388. <IfNode>,
  389. <Text Node: '
  390.  
  391. <!-- Conten'>,
  392. <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
  393. <Text Node: '">
  394. '>,
  395. <Block Node: pretitle. Contents: []>,
  396. <Text Node: '
  397. '>,
  398. <Block Node: content_title. Contents: [<IfNode>]>,
  399. <Text Node: '
  400. '>,
  401. <Block Node: content. Contents: [<Text Node: '
  402. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  403. '>, <Variable Node: content>, <Text Node: '
  404. '>]>,
  405. <Text Node: '
  406. '>,
  407. <Block Node: sidebar. Contents: []>,
  408. <Text Node: '
  409. </div>
  410. <!-- END '>]
  411. context =
  412. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  413. ------------------------------------------------------------------------
  414. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
  415. Function: render
  416. 816 # extend_nodelist().
  417. 817 contains_nontext = False
  418. 818
  419. 819 def render(self, context):
  420. 820 bits = []
  421. 821 for node in self:
  422. 822 if isinstance(node, Node):
  423. 823 ==> bit = self.render_node(node, context)
  424. 824 else:
  425. 825 bit = node
  426. 826 bits.append(force_unicode(bit))
  427. 827 return mark_safe(u''.join(bits))
  428. 828
  429. 829 def get_nodes_by_type(self, nodetype):
  430. Variables:
  431. node =
  432. <Block Node: content. Contents: [<Text Node: '
  433. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  434. '>, <Variable Node: content>, <Text Node: '
  435. '>]>
  436. bit = u'\n '
  437. bits =
  438. [u'',
  439. u'',
  440. u'<!DOCTYPE html>\n<html lang="',
  441. u'ru',
  442. u'" ',
  443. u'',
  444. u'>\n<head>\n<title>',
  445. u'Classification Rule',
  446. u' | ',
  447. u'Unconfigured Installation',
  448. u'</title>\n',
  449. u'\n <link rel="icon" type="image/png" href="/static/img/logo_24x24_deep_azure.png" />\n',
  450. u'\n<link rel="stylesheet" type="text/css" href="',
  451. u'/media/admin/css/base.css',
  452. 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="',
  453. u'/media/admin/js/jquery.js',
  454. 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',
  455. u'',
  456. u'\n<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="',
  457. u'/media/admin/css/ie.css',
  458. u'" /><![endif]-->\n',
  459. u'',
  460. u'\n<script type="text/javascript">window.__admin_media_prefix__ = "/media/admin/";</script>\n',
  461. u'\n\n',
  462. u'\n',
  463. u'<meta name="robots" content="NONE,NOARCHIVE" />',
  464. u'\n</head>\n',
  465. u'',
  466. u'\n\n<body class="',
  467. u'',
  468. u'',
  469. u'"\n onmousemove="window.top && window.top.NOCIdleHandler && window.top.NOCIdleHandler();"\n onkeydown="window.top && window.top.NOCIdleHandler && window.top.NOCIdleHandler();">\n<!-- Container -->\n<div id="container">\n ',
  470. u'\n <!-- Breadcrumbs -->\n <div class="breadcrumbs"><ul><li>\u041d\u0430\u0447\u0430\u043b\u043e</li><li>Fault Management</li>\n\n <li><a href="/fm/classificationrule/">Classification Rule</a></li>\n\n</ul></div>\n <!-- END Breadcrumbs -->\n ',
  471. u'\n ',
  472. u'',
  473. u'\n \n <!-- Content -->\n <div id="content" class="',
  474. u'colM',
  475. u'">\n ',
  476. u'',
  477. u'\n ',
  478. u'',
  479. u'\n ']
  480. self =
  481. [<django.template.defaulttags.LoadNode object at 0x809e4ca10>,
  482. <django.template.defaulttags.LoadNode object at 0x809cf2c90>,
  483. <Text Node: '<!DOCTYPE html>
  484. <html lan'>,
  485. <Variable Node: LANGUAGE_CODE|default:"en-us">,
  486. <Text Node: '" '>,
  487. <IfNode>,
  488. <Text Node: '>
  489. <head>
  490. <title>'>,
  491. <Block Node: title. Contents: []>,
  492. <Text Node: ' | '>,
  493. <Variable Node: setup.installation_name>,
  494. <Text Node: '</title>
  495. '>,
  496. <IfNode>,
  497. <Text Node: '
  498. <link rel="stylesheet" t'>,
  499. <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x8096c9150>]>,
  500. <Text Node: '" /><link rel="stylesheet'>,
  501. <django.template.base.SimpleNode object at 0x8096c9e90>,
  502. <Text Node: '"></SCRIPT>
  503. <SCRIPT TYPE='>,
  504. <Block Node: extrastyle. Contents: []>,
  505. <Text Node: '
  506. <!--[if lte IE 7]><link '>,
  507. <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x8096c97d0>, <Text Node: '/media/admin/css/ie.css'>]>,
  508. <Text Node: '" /><![endif]-->
  509. '>,
  510. <IfNode>,
  511. <Text Node: '
  512. <script type="text/javas'>,
  513. <Block Node: extrahead. Contents: []>,
  514. <Text Node: '
  515. '>,
  516. <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>,
  517. <Text Node: '
  518. </head>
  519. '>,
  520. <django.template.defaulttags.LoadNode object at 0x8096c9dd0>,
  521. <Text Node: '
  522.  
  523. <body class="'>,
  524. <IfNode>,
  525. <Block Node: bodyclass. Contents: []>,
  526. <Text Node: '"
  527. onmousemove="wi'>,
  528. <IfNode>,
  529. <Text Node: '
  530. '>,
  531. <IfNode>,
  532. <Text Node: '
  533.  
  534. <!-- Conten'>,
  535. <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
  536. <Text Node: '">
  537. '>,
  538. <Block Node: pretitle. Contents: []>,
  539. <Text Node: '
  540. '>,
  541. <Block Node: content_title. Contents: [<IfNode>]>,
  542. <Text Node: '
  543. '>,
  544. <Block Node: content. Contents: [<Text Node: '
  545. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  546. '>, <Variable Node: content>, <Text Node: '
  547. '>]>,
  548. <Text Node: '
  549. '>,
  550. <Block Node: sidebar. Contents: []>,
  551. <Text Node: '
  552. </div>
  553. <!-- END '>]
  554. context =
  555. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  556. ------------------------------------------------------------------------
  557. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 134)
  558. Function: _render
  559. 127
  560. 128 def __iter__(self):
  561. 129 for node in self.nodelist:
  562. 130 for subnode in node:
  563. 131 yield subnode
  564. 132
  565. 133 def _render(self, context):
  566. 134 ==> return self.nodelist.render(context)
  567. 135
  568. 136 def render(self, context):
  569. 137 "Display stage -- can be called many times"
  570. 138 context.render_context.push()
  571. 139 try:
  572. 140 return self._render(context)
  573. Variables:
  574. self = <django.template.base.Template object at 0x809e4c810>
  575. context =
  576. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  577. ------------------------------------------------------------------------
  578. File: /usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py (Line: 123)
  579. Function: render
  580. 116 blocks = dict([(n.name, n) for n in
  581. 117 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  582. 118 block_context.add_blocks(blocks)
  583. 119 break
  584. 120
  585. 121 # Call Template._render explicitly so the parser context stays
  586. 122 # the same.
  587. 123 ==> return compiled_parent._render(context)
  588. 124
  589. 125 class BaseIncludeNode(Node):
  590. 126 def __init__(self, *args, **kwargs):
  591. 127 self.extra_context = kwargs.pop('extra_context', {})
  592. 128 self.isolated_context = kwargs.pop('isolated_context', False)
  593. 129 super(BaseIncludeNode, self).__init__(*args, **kwargs)
  594. Variables:
  595. node = <django.template.defaulttags.LoadNode object at 0x809e4ca10>
  596. blocks =
  597. {u'blockbots': <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>,
  598. u'bodyclass': <Block Node: bodyclass. Contents: []>,
  599. u'breadcrumbs': <Block Node: breadcrumbs. Contents: [<Text Node: '<li>'>, <django.templatetags.i18n.TranslateNode object at 0x8096c9f90>, <Text Node: '</li>'>]>,
  600. u'coltype': <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
  601. u'content': <Block Node: content. Contents: [<Text Node: '
  602. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  603. '>, <Variable Node: content>, <Text Node: '
  604. '>]>,
  605. u'content_title': <Block Node: content_title. Contents: [<IfNode>]>,
  606. u'extrahead': <Block Node: extrahead. Contents: []>,
  607. u'extrastyle': <Block Node: extrastyle. Contents: []>,
  608. u'object-tools': <Block Node: object-tools. Contents: []>,
  609. u'pretitle': <Block Node: pretitle. Contents: []>,
  610. u'sidebar': <Block Node: sidebar. Contents: []>,
  611. u'stylesheet': <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x8096c9150>]>,
  612. u'stylesheet_ie': <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x8096c97d0>, <Text Node: '/media/admin/css/ie.css'>]>,
  613. u'stylesheet_rtl': <Block Node: stylesheet_rtl. Contents: [<Text Node: '/media/admin/css/rtl.css'>]>,
  614. u'title': <Block Node: title. Contents: []>}
  615. block_context = <django.template.loader_tags.BlockContext object at 0x8096b5490>
  616. n = <Block Node: sidebar. Contents: []>
  617. context =
  618. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  619. compiled_parent = <django.template.base.Template object at 0x809e4c810>
  620. self = <ExtendsNode: extends "admin/base.html">
  621. ------------------------------------------------------------------------
  622. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
  623. Function: render_node
  624. 830 "Return a list of all nodes of the given type"
  625. 831 nodes = []
  626. 832 for node in self:
  627. 833 nodes.extend(node.get_nodes_by_type(nodetype))
  628. 834 return nodes
  629. 835
  630. 836 def render_node(self, node, context):
  631. 837 ==> return node.render(context)
  632. 838
  633. 839 class TextNode(Node):
  634. 840 def __init__(self, s):
  635. 841 self.s = s
  636. 842
  637. 843 def __repr__(self):
  638. Variables:
  639. node = <ExtendsNode: extends "admin/base.html">
  640. self = [<ExtendsNode: extends "admin/base.html">]
  641. context =
  642. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  643. ------------------------------------------------------------------------
  644. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
  645. Function: render
  646. 816 # extend_nodelist().
  647. 817 contains_nontext = False
  648. 818
  649. 819 def render(self, context):
  650. 820 bits = []
  651. 821 for node in self:
  652. 822 if isinstance(node, Node):
  653. 823 ==> bit = self.render_node(node, context)
  654. 824 else:
  655. 825 bit = node
  656. 826 bits.append(force_unicode(bit))
  657. 827 return mark_safe(u''.join(bits))
  658. 828
  659. 829 def get_nodes_by_type(self, nodetype):
  660. Variables:
  661. node = <ExtendsNode: extends "admin/base.html">
  662. self = [<ExtendsNode: extends "admin/base.html">]
  663. bits = []
  664. context =
  665. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  666. ------------------------------------------------------------------------
  667. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 134)
  668. Function: _render
  669. 127
  670. 128 def __iter__(self):
  671. 129 for node in self.nodelist:
  672. 130 for subnode in node:
  673. 131 yield subnode
  674. 132
  675. 133 def _render(self, context):
  676. 134 ==> return self.nodelist.render(context)
  677. 135
  678. 136 def render(self, context):
  679. 137 "Display stage -- can be called many times"
  680. 138 context.render_context.push()
  681. 139 try:
  682. 140 return self._render(context)
  683. Variables:
  684. self = <django.template.base.Template object at 0x8096b54d0>
  685. context =
  686. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  687. ------------------------------------------------------------------------
  688. File: /usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py (Line: 123)
  689. Function: render
  690. 116 blocks = dict([(n.name, n) for n in
  691. 117 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  692. 118 block_context.add_blocks(blocks)
  693. 119 break
  694. 120
  695. 121 # Call Template._render explicitly so the parser context stays
  696. 122 # the same.
  697. 123 ==> return compiled_parent._render(context)
  698. 124
  699. 125 class BaseIncludeNode(Node):
  700. 126 def __init__(self, *args, **kwargs):
  701. 127 self.extra_context = kwargs.pop('extra_context', {})
  702. 128 self.isolated_context = kwargs.pop('isolated_context', False)
  703. 129 super(BaseIncludeNode, self).__init__(*args, **kwargs)
  704. Variables:
  705. node = <ExtendsNode: extends "admin/base.html">
  706. block_context = <django.template.loader_tags.BlockContext object at 0x8096b5490>
  707. compiled_parent = <django.template.base.Template object at 0x8096b54d0>
  708. self = <ExtendsNode: extends "template.html">
  709. context =
  710. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  711. ------------------------------------------------------------------------
  712. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
  713. Function: render_node
  714. 830 "Return a list of all nodes of the given type"
  715. 831 nodes = []
  716. 832 for node in self:
  717. 833 nodes.extend(node.get_nodes_by_type(nodetype))
  718. 834 return nodes
  719. 835
  720. 836 def render_node(self, node, context):
  721. 837 ==> return node.render(context)
  722. 838
  723. 839 class TextNode(Node):
  724. 840 def __init__(self, s):
  725. 841 self.s = s
  726. 842
  727. 843 def __repr__(self):
  728. Variables:
  729. node = <ExtendsNode: extends "template.html">
  730. self = [<ExtendsNode: extends "template.html">]
  731. context =
  732. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  733. ------------------------------------------------------------------------
  734. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
  735. Function: render
  736. 816 # extend_nodelist().
  737. 817 contains_nontext = False
  738. 818
  739. 819 def render(self, context):
  740. 820 bits = []
  741. 821 for node in self:
  742. 822 if isinstance(node, Node):
  743. 823 ==> bit = self.render_node(node, context)
  744. 824 else:
  745. 825 bit = node
  746. 826 bits.append(force_unicode(bit))
  747. 827 return mark_safe(u''.join(bits))
  748. 828
  749. 829 def get_nodes_by_type(self, nodetype):
  750. Variables:
  751. node = <ExtendsNode: extends "template.html">
  752. self = [<ExtendsNode: extends "template.html">]
  753. bits = []
  754. context =
  755. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  756. ------------------------------------------------------------------------
  757. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 134)
  758. Function: _render
  759. 127
  760. 128 def __iter__(self):
  761. 129 for node in self.nodelist:
  762. 130 for subnode in node:
  763. 131 yield subnode
  764. 132
  765. 133 def _render(self, context):
  766. 134 ==> return self.nodelist.render(context)
  767. 135
  768. 136 def render(self, context):
  769. 137 "Display stage -- can be called many times"
  770. 138 context.render_context.push()
  771. 139 try:
  772. 140 return self._render(context)
  773. Variables:
  774. self = <django.template.base.Template object at 0x8096b5890>
  775. context =
  776. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  777. ------------------------------------------------------------------------
  778. File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 140)
  779. Function: render
  780. 133 def _render(self, context):
  781. 134 return self.nodelist.render(context)
  782. 135
  783. 136 def render(self, context):
  784. 137 "Display stage -- can be called many times"
  785. 138 context.render_context.push()
  786. 139 try:
  787. 140 ==> return self._render(context)
  788. 141 finally:
  789. 142 context.render_context.pop()
  790. 143
  791. 144 def compile_string(template_string, origin):
  792. 145 "Compiles template_string into NodeList ready for rendering"
  793. 146 if settings.TEMPLATE_DEBUG:
  794. Variables:
  795. self = <django.template.base.Template object at 0x8096b5890>
  796. context =
  797. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  798. ------------------------------------------------------------------------
  799. File: /usr/local/noc/lib/python2.7/site-packages/django/template/loader.py (Line: 176)
  800. Function: render_to_string
  801. 169 t = get_template(template_name)
  802. 170 if not context_instance:
  803. 171 return t.render(Context(dictionary))
  804. 172 # Add the dictionary to the context stack, ensuring it gets removed again
  805. 173 # to keep the context_instance in the same state it started in.
  806. 174 context_instance.update(dictionary)
  807. 175 try:
  808. 176 ==> return t.render(context_instance)
  809. 177 finally:
  810. 178 context_instance.pop()
  811. 179
  812. 180 def select_template(template_name_list):
  813. 181 "Given a list of template names, returns the first that can be loaded."
  814. 182 if not template_name_list:
  815. Variables:
  816. template_name =
  817. ['fm/apps/classificationrule/templates/preview.html',
  818. 'fm/templates/preview.html',
  819. 'templates/preview.html']
  820. t = <django.template.base.Template object at 0x8096b5890>
  821. dictionary =
  822. {'extra': {},
  823. 'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>}
  824. context_instance =
  825. [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]
  826. ------------------------------------------------------------------------
  827. File: /usr/local/noc/lib/python2.7/site-packages/django/shortcuts/__init__.py (Line: 20)
  828. Function: render_to_response
  829. 13
  830. 14 def render_to_response(*args, **kwargs):
  831. 15 """
  832. 16 Returns a HttpResponse whose content is filled with the result of calling
  833. 17 django.template.loader.render_to_string() with the passed arguments.
  834. 18 """
  835. 19 httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
  836. 20 ==> return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
  837. 21
  838. 22 def render(request, *args, **kwargs):
  839. 23 """
  840. 24 Returns a HttpResponse whose content is filled with the result of calling
  841. 25 django.template.loader.render_to_string() with the passed arguments.
  842. 26 Uses a RequestContext by default.
  843. Variables:
  844. httpresponse_kwargs = {'mimetype': None}
  845. args =
  846. (['fm/apps/classificationrule/templates/preview.html',
  847. 'fm/templates/preview.html',
  848. 'templates/preview.html'],
  849. {'extra': {},
  850. 'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>})
  851. kwargs =
  852. {'context_instance': [{'app': <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x8096b5e50>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x8096b5e10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x8096b5610>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': u'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x809e309d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>, 'extra': {}}]}
  853. ------------------------------------------------------------------------
  854. File: /usr/local/noc/lib/app/application.py (Line: 242)
  855. Function: render
  856. 235 def render(self, request, template, dict={}, **kwargs):
  857. 236 """
  858. 237 Render template within context
  859. 238 """
  860. 239 return render_to_response(self.get_template_path(template),
  861. 240 dict if dict else kwargs,
  862. 241 context_instance=RequestContext(request,
  863. 242 ==> {"app": self}))
  864. 243
  865. 244 def render_template(self, template, dict={}, **kwargs):
  866. 245 """
  867. 246 Render template to string
  868. 247 """
  869. 248 tp = self.get_template_path(template)
  870. Variables:
  871. request =
  872. <WSGIRequest
  873. path:/fm/classificationrule/4eeb505abcf4b106a300023f/,
  874. GET:<QueryDict: {}>,
  875. POST:<QueryDict: {}>,
  876. COOKIES:{'csrftoken': 'lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY',
  877. 'sessionid': '677a0ba09b2c03a6dc3182e6d6fae64d'},
  878. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  879. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  880. 'HTTP_ACCEPT_LANGUAGE': 'uk-UA,uk;q=0.98,ru-RU;q=0.95,ru;q=0.93,en-US;q=0.9,en;q=0.87,en-gb;q=0.85,de-DE;q=0.82,de;q=0.8,es-EC;q=0.77,es;q=0.75,en-US-x-Hixie;q=0.72,ru-ru;q=0.7,en-gb;q=0.67,en-us;q=0.65,uk-ua;q=0.62,fr-FR;q=0.6,fr;q=0.57,pl-PL;q=0.55,pl;q=0.52,lv-LV;q=0.5,lv;q=0.47,se-SE;q=0.45,se;q=0.42,ja-JP;q=0.4,ja;q=0.37,de-LI;q=0.35,de-CH;q=0.32,hu-HU;q=0.3,hu;q=0.27,nl-NL;q=0.25,nl;q=0.22,ru-RU.UTF-8;q=0.2,en-AU;q=0.17,it-IT;q=0.15,it;q=0.12,br-FR;q=0.1,br;q=0.07,ro-RO;q=0.05,ro;q=0.02',
  881. 'HTTP_CONNECTION': 'close',
  882. 'HTTP_COOKIE': 'csrftoken=lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY; sessionid=677a0ba09b2c03a6dc3182e6d6fae64d',
  883. 'HTTP_HOST': '127.0.0.1:8000',
  884. 'HTTP_REFERER': 'http://10.111.0.14/fm/classificationrule/',
  885. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; FreeBSD amd64; rv:21.0) Gecko/20100101 Firefox/21.0',
  886. 'PATH_INFO': u'/fm/classificationrule/4eeb505abcf4b106a300023f/',
  887. 'QUERY_STRING': '',
  888. 'REMOTE_ADDR': '127.0.0.1',
  889. 'REQUEST_METHOD': 'GET',
  890. 'SCRIPT_NAME': u'',
  891. 'SERVER_NAME': '127.0.0.1',
  892. 'SERVER_PORT': '8000',
  893. 'SERVER_PROTOCOL': 'HTTP/1.0',
  894. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80414ded0>,
  895. 'wsgi.input': <_io.BytesIO object at 0x809ee72f0>,
  896. 'wsgi.multiprocess': True,
  897. 'wsgi.multithread': False,
  898. 'wsgi.run_once': False,
  899. 'wsgi.url_scheme': 'http',
  900. 'wsgi.version': (1, 0)}>
  901. self =
  902. <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>
  903. dict = {}
  904. template = 'preview.html'
  905. kwargs =
  906. {'extra': {},
  907. 'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>}
  908. ------------------------------------------------------------------------
  909. File: /usr/local/noc/lib/app/treeapplication.py (Line: 188)
  910. Function: view_preview
  911. 181 """
  912. 182 Render item preview
  913. 183 """
  914. 184 o = self.get_object(object_id)
  915. 185 if not o:
  916. 186 return self.response_not_found("Object not found")
  917. 187 return self.render(request, "preview.html",
  918. 188 ==> o=o, extra=self.get_preview_extra(o))
  919. 189
  920. 190 @view(url="^popup/$", url_name="popup", access=HasPerm("view"))
  921. 191 def view_popup(self, request):
  922. 192 if request.GET and "choose_id" in request.GET:
  923. 193 choose_id = request.GET["choose_id"]
  924. 194 else:
  925. Variables:
  926. self =
  927. <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>
  928. request =
  929. <WSGIRequest
  930. path:/fm/classificationrule/4eeb505abcf4b106a300023f/,
  931. GET:<QueryDict: {}>,
  932. POST:<QueryDict: {}>,
  933. COOKIES:{'csrftoken': 'lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY',
  934. 'sessionid': '677a0ba09b2c03a6dc3182e6d6fae64d'},
  935. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  936. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  937. 'HTTP_ACCEPT_LANGUAGE': 'uk-UA,uk;q=0.98,ru-RU;q=0.95,ru;q=0.93,en-US;q=0.9,en;q=0.87,en-gb;q=0.85,de-DE;q=0.82,de;q=0.8,es-EC;q=0.77,es;q=0.75,en-US-x-Hixie;q=0.72,ru-ru;q=0.7,en-gb;q=0.67,en-us;q=0.65,uk-ua;q=0.62,fr-FR;q=0.6,fr;q=0.57,pl-PL;q=0.55,pl;q=0.52,lv-LV;q=0.5,lv;q=0.47,se-SE;q=0.45,se;q=0.42,ja-JP;q=0.4,ja;q=0.37,de-LI;q=0.35,de-CH;q=0.32,hu-HU;q=0.3,hu;q=0.27,nl-NL;q=0.25,nl;q=0.22,ru-RU.UTF-8;q=0.2,en-AU;q=0.17,it-IT;q=0.15,it;q=0.12,br-FR;q=0.1,br;q=0.07,ro-RO;q=0.05,ro;q=0.02',
  938. 'HTTP_CONNECTION': 'close',
  939. 'HTTP_COOKIE': 'csrftoken=lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY; sessionid=677a0ba09b2c03a6dc3182e6d6fae64d',
  940. 'HTTP_HOST': '127.0.0.1:8000',
  941. 'HTTP_REFERER': 'http://10.111.0.14/fm/classificationrule/',
  942. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; FreeBSD amd64; rv:21.0) Gecko/20100101 Firefox/21.0',
  943. 'PATH_INFO': u'/fm/classificationrule/4eeb505abcf4b106a300023f/',
  944. 'QUERY_STRING': '',
  945. 'REMOTE_ADDR': '127.0.0.1',
  946. 'REQUEST_METHOD': 'GET',
  947. 'SCRIPT_NAME': u'',
  948. 'SERVER_NAME': '127.0.0.1',
  949. 'SERVER_PORT': '8000',
  950. 'SERVER_PROTOCOL': 'HTTP/1.0',
  951. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80414ded0>,
  952. 'wsgi.input': <_io.BytesIO object at 0x809ee72f0>,
  953. 'wsgi.multiprocess': True,
  954. 'wsgi.multithread': False,
  955. 'wsgi.run_once': False,
  956. 'wsgi.url_scheme': 'http',
  957. 'wsgi.version': (1, 0)}>
  958. object_id = u'4eeb505abcf4b106a300023f'
  959. o =
  960. <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>
  961. ------------------------------------------------------------------------
  962. File: /usr/local/noc/lib/app/site.py (Line: 232)
  963. Function: inner
  964. 225 for k, v in request.POST.lists())
  965. 226 elif request.method == "GET":
  966. 227 a = dict((k, v[0] if len(v) == 1 else v)
  967. 228 for k, v in request.GET.lists())
  968. 229 logging.debug("API %s %s %s" % (request.method,
  969. 230 request.path, a))
  970. 231 # Call handler
  971. 232 ==> r = v(request, *args, **kwargs)
  972. 233 # Dump SQL statements
  973. 234 if self.log_sql_statements:
  974. 235 from django.db import connections
  975. 236 tsc = 0
  976. 237 sc = defaultdict(int)
  977. 238 for conn in connections.all():
  978. Variables:
  979. args = ()
  980. view_map =
  981. {'DELETE': <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>,
  982. 'GET': <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>,
  983. 'POST': <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>,
  984. 'PUT': <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>}
  985. Form = <class 'django.forms.forms.Form'>
  986. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  987. self = <noc.lib.app.site.Site object at 0x80617a9d0>
  988. v =
  989. <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>
  990. request =
  991. <WSGIRequest
  992. path:/fm/classificationrule/4eeb505abcf4b106a300023f/,
  993. GET:<QueryDict: {}>,
  994. POST:<QueryDict: {}>,
  995. COOKIES:{'csrftoken': 'lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY',
  996. 'sessionid': '677a0ba09b2c03a6dc3182e6d6fae64d'},
  997. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  998. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  999. 'HTTP_ACCEPT_LANGUAGE': 'uk-UA,uk;q=0.98,ru-RU;q=0.95,ru;q=0.93,en-US;q=0.9,en;q=0.87,en-gb;q=0.85,de-DE;q=0.82,de;q=0.8,es-EC;q=0.77,es;q=0.75,en-US-x-Hixie;q=0.72,ru-ru;q=0.7,en-gb;q=0.67,en-us;q=0.65,uk-ua;q=0.62,fr-FR;q=0.6,fr;q=0.57,pl-PL;q=0.55,pl;q=0.52,lv-LV;q=0.5,lv;q=0.47,se-SE;q=0.45,se;q=0.42,ja-JP;q=0.4,ja;q=0.37,de-LI;q=0.35,de-CH;q=0.32,hu-HU;q=0.3,hu;q=0.27,nl-NL;q=0.25,nl;q=0.22,ru-RU.UTF-8;q=0.2,en-AU;q=0.17,it-IT;q=0.15,it;q=0.12,br-FR;q=0.1,br;q=0.07,ro-RO;q=0.05,ro;q=0.02',
  1000. 'HTTP_CONNECTION': 'close',
  1001. 'HTTP_COOKIE': 'csrftoken=lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY; sessionid=677a0ba09b2c03a6dc3182e6d6fae64d',
  1002. 'HTTP_HOST': '127.0.0.1:8000',
  1003. 'HTTP_REFERER': 'http://10.111.0.14/fm/classificationrule/',
  1004. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; FreeBSD amd64; rv:21.0) Gecko/20100101 Firefox/21.0',
  1005. 'PATH_INFO': u'/fm/classificationrule/4eeb505abcf4b106a300023f/',
  1006. 'QUERY_STRING': '',
  1007. 'REMOTE_ADDR': '127.0.0.1',
  1008. 'REQUEST_METHOD': 'GET',
  1009. 'SCRIPT_NAME': u'',
  1010. 'SERVER_NAME': '127.0.0.1',
  1011. 'SERVER_PORT': '8000',
  1012. 'SERVER_PROTOCOL': 'HTTP/1.0',
  1013. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80414ded0>,
  1014. 'wsgi.input': <_io.BytesIO object at 0x809ee72f0>,
  1015. 'wsgi.multiprocess': True,
  1016. 'wsgi.multithread': False,
  1017. 'wsgi.run_once': False,
  1018. 'wsgi.url_scheme': 'http',
  1019. 'wsgi.version': (1, 0)}>
  1020. to_log_api_call = False
  1021. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  1022. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  1023. kwargs = {'object_id': u'4eeb505abcf4b106a300023f'}
  1024. app =
  1025. <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>
  1026. ------------------------------------------------------------------------
  1027. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment