Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NHANDLED EXCEPTION (2013-08-06 14:26:39.061728)
- Working directory: /usr/local/noc
- <class 'django.core.urlresolvers.NoReverseMatch'>
- Reverse for 'preview' with arguments '(ObjectId('4eeb5059bcf4b106a3000150'),)' and keyword arguments '{}' not found.
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/defaulttags.py (Line: 424)
- Function: render
- 417 args=args, kwargs=kwargs,
- 418 current_app=context.current_app)
- 419 except NoReverseMatch:
- 420 if self.asvar is None:
- 421 # Re-raise the original exception, not the one with
- 422 # the path relative to the project. This makes a
- 423 # better error message.
- 424 ==> raise e
- 425 else:
- 426 if self.asvar is None:
- 427 raise e
- 428
- 429 if self.asvar:
- 430 context[self.asvar] = url
- Variables:
- project_name = 'noc'
- e =
- NoReverseMatch(u"Reverse for 'preview' with arguments '(ObjectId('4eeb5059bcf4b106a3000150'),)' and keyword arguments '{}' not found.",)
- reverse = <function reverse at 0x803881c80>
- url = ''
- self = <django.template.defaulttags.URLNode object at 0x8096b5210>
- args = [ObjectId('4eeb5059bcf4b106a3000150')]
- view_name = u'fm:eventclass:preview'
- context =
- [{'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': {}}]
- kwargs = {}
- NoReverseMatch = <class 'django.core.urlresolvers.NoReverseMatch'>
- arg = <django.template.base.FilterExpression object at 0x809e30c90>
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
- Function: render_node
- 830 "Return a list of all nodes of the given type"
- 831 nodes = []
- 832 for node in self:
- 833 nodes.extend(node.get_nodes_by_type(nodetype))
- 834 return nodes
- 835
- 836 def render_node(self, node, context):
- 837 ==> return node.render(context)
- 838
- 839 class TextNode(Node):
- 840 def __init__(self, s):
- 841 self.s = s
- 842
- 843 def __repr__(self):
- Variables:
- node = <django.template.defaulttags.URLNode object at 0x8096b5210>
- self =
- [<Text Node: '
- <ul class="object-tools"'>,
- <django.template.defaulttags.URLNode object at 0x8096b5d90>,
- <Text Node: '')">JSON</a></li>
- <li'>,
- <django.template.defaulttags.URLNode object at 0x8096b5810>,
- <Text Node: '')">Test Event</a></li>
- '>,
- <django.template.defaulttags.URLNode object at 0x8096b5110>,
- <Text Node: '">Change Classification R'>,
- <Variable Node: o.name>,
- <Text Node: '</h1>
- <style>
- .label'>,
- <Variable Node: o.name>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.is_builtin|bool_icon>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.description>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <django.template.defaulttags.URLNode object at 0x8096b5210>,
- <Text Node: '">'>,
- <Variable Node: o.event_class.name>,
- <Text Node: '</a></td></tr>
- <t'>,
- <Variable Node: o.preference>,
- <Text Node: '</td></tr>
- </table>
- '>,
- <For Node: for p in o.patterns, tail_len: 9>,
- <Text Node: '
- </table>
- </div>
- <di'>,
- <Variable Node: o.event_class.name>,
- <Text Node: '</h2>
- <table border="'>,
- <Variable Node: o.event_class.name>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.event_class.is_builtin|bool_icon>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.event_class.description>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.event_class.action>,
- <Text Node: '</td></tr>
- '>,
- <For Node: for lang in o.event_class.text, tail_len: 5>,
- <Text Node: '
- </table>
- <h'>,
- <For Node: for v in o.event_class.vars, tail_len: 11>,
- <Text Node: '
- </table>
- </div>
- '>]
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
- Function: render
- 816 # extend_nodelist().
- 817 contains_nontext = False
- 818
- 819 def render(self, context):
- 820 bits = []
- 821 for node in self:
- 822 if isinstance(node, Node):
- 823 ==> bit = self.render_node(node, context)
- 824 else:
- 825 bit = node
- 826 bits.append(force_unicode(bit))
- 827 return mark_safe(u''.join(bits))
- 828
- 829 def get_nodes_by_type(self, nodetype):
- Variables:
- node = <django.template.defaulttags.URLNode object at 0x8096b5210>
- bit = u'</td></tr>\n <tr><td><b>Event class</b></td><td><a href="'
- bits =
- [u'\n<ul class="object-tools">\n <li><a href="#" onclick="return show_popup(\'JSON\', \'',
- u'/fm/classificationrule/4eeb505abcf4b106a300023f/to_json/',
- u'\')">JSON</a></li>\n <li><a href="#" onclick="return show_popup(\'Test Event\', \'',
- u'/fm/classificationrule/4eeb505abcf4b106a300023f/test_event/',
- u'\')">Test Event</a></li>\n <li><a href="',
- u'/fm/classificationrule/4eeb505abcf4b106a300023f/change/',
- u'">Change Classification Rule</a></li>\n</ul>\n\n<h1>Event Classification Rule: ',
- u'APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)',
- 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>',
- u'APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)',
- u'</td></tr>\n <tr><td><b>Is builtin</b></td><td>',
- u"<img src='/media/admin/img/icon-yes.gif' alt='Yes' />",
- u'</td></tr>\n <tr><td><b>Description</b></td><td>',
- u'UPS: A base module fan fault exists. 0x0120',
- u'</td></tr>\n <tr><td><b>Event class</b></td><td><a href="']
- self =
- [<Text Node: '
- <ul class="object-tools"'>,
- <django.template.defaulttags.URLNode object at 0x8096b5d90>,
- <Text Node: '')">JSON</a></li>
- <li'>,
- <django.template.defaulttags.URLNode object at 0x8096b5810>,
- <Text Node: '')">Test Event</a></li>
- '>,
- <django.template.defaulttags.URLNode object at 0x8096b5110>,
- <Text Node: '">Change Classification R'>,
- <Variable Node: o.name>,
- <Text Node: '</h1>
- <style>
- .label'>,
- <Variable Node: o.name>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.is_builtin|bool_icon>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.description>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <django.template.defaulttags.URLNode object at 0x8096b5210>,
- <Text Node: '">'>,
- <Variable Node: o.event_class.name>,
- <Text Node: '</a></td></tr>
- <t'>,
- <Variable Node: o.preference>,
- <Text Node: '</td></tr>
- </table>
- '>,
- <For Node: for p in o.patterns, tail_len: 9>,
- <Text Node: '
- </table>
- </div>
- <di'>,
- <Variable Node: o.event_class.name>,
- <Text Node: '</h2>
- <table border="'>,
- <Variable Node: o.event_class.name>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.event_class.is_builtin|bool_icon>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.event_class.description>,
- <Text Node: '</td></tr>
- <tr><t'>,
- <Variable Node: o.event_class.action>,
- <Text Node: '</td></tr>
- '>,
- <For Node: for lang in o.event_class.text, tail_len: 5>,
- <Text Node: '
- </table>
- <h'>,
- <For Node: for v in o.event_class.vars, tail_len: 11>,
- <Text Node: '
- </table>
- </div>
- '>]
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py (Line: 62)
- Function: render
- 55 push = block = block_context.pop(self.name)
- 56 if block is None:
- 57 block = self
- 58 # Create new block so we can store context without thread-safety issues.
- 59 block = BlockNode(block.name, block.nodelist)
- 60 block.context = context
- 61 context['block'] = block
- 62 ==> result = block.nodelist.render(context)
- 63 if push is not None:
- 64 block_context.push(self.name, push)
- 65 context.pop()
- 66 return result
- 67
- 68 def super(self):
- Variables:
- push =
- <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x8096b5d90>, <Text Node: '')">JSON</a></li>
- <li'>, <django.template.defaulttags.URLNode object at 0x8096b5810>, <Text Node: '')">Test Event</a></li>
- '>, <django.template.defaulttags.URLNode object at 0x8096b5110>, <Text Node: '">Change Classification R'>, <Variable Node: o.name>, <Text Node: '</h1>
- <style>
- .label'>, <Variable Node: o.name>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.is_builtin|bool_icon>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.description>, <Text Node: '</td></tr>
- <tr><t'>, <django.template.defaulttags.URLNode object at 0x8096b5210>, <Text Node: '">'>, <Variable Node: o.event_class.name>, <Text Node: '</a></td></tr>
- <t'>, <Variable Node: o.preference>, <Text Node: '</td></tr>
- </table>
- '>, <For Node: for p in o.patterns, tail_len: 9>, <Text Node: '
- </table>
- </div>
- <di'>, <Variable Node: o.event_class.name>, <Text Node: '</h2>
- <table border="'>, <Variable Node: o.event_class.name>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.event_class.is_builtin|bool_icon>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.event_class.description>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.event_class.action>, <Text Node: '</td></tr>
- '>, <For Node: for lang in o.event_class.text, tail_len: 5>, <Text Node: '
- </table>
- <h'>, <For Node: for v in o.event_class.vars, tail_len: 11>, <Text Node: '
- </table>
- </div>
- '>]>
- block_context = <django.template.loader_tags.BlockContext object at 0x8096b5490>
- context =
- [{'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': {}}]
- block =
- <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x8096b5d90>, <Text Node: '')">JSON</a></li>
- <li'>, <django.template.defaulttags.URLNode object at 0x8096b5810>, <Text Node: '')">Test Event</a></li>
- '>, <django.template.defaulttags.URLNode object at 0x8096b5110>, <Text Node: '">Change Classification R'>, <Variable Node: o.name>, <Text Node: '</h1>
- <style>
- .label'>, <Variable Node: o.name>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.is_builtin|bool_icon>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.description>, <Text Node: '</td></tr>
- <tr><t'>, <django.template.defaulttags.URLNode object at 0x8096b5210>, <Text Node: '">'>, <Variable Node: o.event_class.name>, <Text Node: '</a></td></tr>
- <t'>, <Variable Node: o.preference>, <Text Node: '</td></tr>
- </table>
- '>, <For Node: for p in o.patterns, tail_len: 9>, <Text Node: '
- </table>
- </div>
- <di'>, <Variable Node: o.event_class.name>, <Text Node: '</h2>
- <table border="'>, <Variable Node: o.event_class.name>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.event_class.is_builtin|bool_icon>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.event_class.description>, <Text Node: '</td></tr>
- <tr><t'>, <Variable Node: o.event_class.action>, <Text Node: '</td></tr>
- '>, <For Node: for lang in o.event_class.text, tail_len: 5>, <Text Node: '
- </table>
- <h'>, <For Node: for v in o.event_class.vars, tail_len: 11>, <Text Node: '
- </table>
- </div>
- '>]>
- self =
- <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
- Function: render_node
- 830 "Return a list of all nodes of the given type"
- 831 nodes = []
- 832 for node in self:
- 833 nodes.extend(node.get_nodes_by_type(nodetype))
- 834 return nodes
- 835
- 836 def render_node(self, node, context):
- 837 ==> return node.render(context)
- 838
- 839 class TextNode(Node):
- 840 def __init__(self, s):
- 841 self.s = s
- 842
- 843 def __repr__(self):
- Variables:
- node =
- <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- self =
- [<django.template.defaulttags.LoadNode object at 0x809e4ca10>,
- <django.template.defaulttags.LoadNode object at 0x809cf2c90>,
- <Text Node: '<!DOCTYPE html>
- <html lan'>,
- <Variable Node: LANGUAGE_CODE|default:"en-us">,
- <Text Node: '" '>,
- <IfNode>,
- <Text Node: '>
- <head>
- <title>'>,
- <Block Node: title. Contents: []>,
- <Text Node: ' | '>,
- <Variable Node: setup.installation_name>,
- <Text Node: '</title>
- '>,
- <IfNode>,
- <Text Node: '
- <link rel="stylesheet" t'>,
- <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x8096c9150>]>,
- <Text Node: '" /><link rel="stylesheet'>,
- <django.template.base.SimpleNode object at 0x8096c9e90>,
- <Text Node: '"></SCRIPT>
- <SCRIPT TYPE='>,
- <Block Node: extrastyle. Contents: []>,
- <Text Node: '
- <!--[if lte IE 7]><link '>,
- <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x8096c97d0>, <Text Node: '/media/admin/css/ie.css'>]>,
- <Text Node: '" /><![endif]-->
- '>,
- <IfNode>,
- <Text Node: '
- <script type="text/javas'>,
- <Block Node: extrahead. Contents: []>,
- <Text Node: '
- '>,
- <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>,
- <Text Node: '
- </head>
- '>,
- <django.template.defaulttags.LoadNode object at 0x8096c9dd0>,
- <Text Node: '
- <body class="'>,
- <IfNode>,
- <Block Node: bodyclass. Contents: []>,
- <Text Node: '"
- onmousemove="wi'>,
- <IfNode>,
- <Text Node: '
- '>,
- <IfNode>,
- <Text Node: '
- <!-- Conten'>,
- <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
- <Text Node: '">
- '>,
- <Block Node: pretitle. Contents: []>,
- <Text Node: '
- '>,
- <Block Node: content_title. Contents: [<IfNode>]>,
- <Text Node: '
- '>,
- <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>,
- <Text Node: '
- '>,
- <Block Node: sidebar. Contents: []>,
- <Text Node: '
- </div>
- <!-- END '>]
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
- Function: render
- 816 # extend_nodelist().
- 817 contains_nontext = False
- 818
- 819 def render(self, context):
- 820 bits = []
- 821 for node in self:
- 822 if isinstance(node, Node):
- 823 ==> bit = self.render_node(node, context)
- 824 else:
- 825 bit = node
- 826 bits.append(force_unicode(bit))
- 827 return mark_safe(u''.join(bits))
- 828
- 829 def get_nodes_by_type(self, nodetype):
- Variables:
- node =
- <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- bit = u'\n '
- bits =
- [u'',
- u'',
- u'<!DOCTYPE html>\n<html lang="',
- u'ru',
- u'" ',
- u'',
- u'>\n<head>\n<title>',
- u'Classification Rule',
- u' | ',
- u'Unconfigured Installation',
- u'</title>\n',
- u'\n <link rel="icon" type="image/png" href="/static/img/logo_24x24_deep_azure.png" />\n',
- u'\n<link rel="stylesheet" type="text/css" href="',
- u'/media/admin/css/base.css',
- 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="',
- u'/media/admin/js/jquery.js',
- 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',
- u'',
- u'\n<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="',
- u'/media/admin/css/ie.css',
- u'" /><![endif]-->\n',
- u'',
- u'\n<script type="text/javascript">window.__admin_media_prefix__ = "/media/admin/";</script>\n',
- u'\n\n',
- u'\n',
- u'<meta name="robots" content="NONE,NOARCHIVE" />',
- u'\n</head>\n',
- u'',
- u'\n\n<body class="',
- u'',
- u'',
- 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 ',
- 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 ',
- u'\n ',
- u'',
- u'\n \n <!-- Content -->\n <div id="content" class="',
- u'colM',
- u'">\n ',
- u'',
- u'\n ',
- u'',
- u'\n ']
- self =
- [<django.template.defaulttags.LoadNode object at 0x809e4ca10>,
- <django.template.defaulttags.LoadNode object at 0x809cf2c90>,
- <Text Node: '<!DOCTYPE html>
- <html lan'>,
- <Variable Node: LANGUAGE_CODE|default:"en-us">,
- <Text Node: '" '>,
- <IfNode>,
- <Text Node: '>
- <head>
- <title>'>,
- <Block Node: title. Contents: []>,
- <Text Node: ' | '>,
- <Variable Node: setup.installation_name>,
- <Text Node: '</title>
- '>,
- <IfNode>,
- <Text Node: '
- <link rel="stylesheet" t'>,
- <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x8096c9150>]>,
- <Text Node: '" /><link rel="stylesheet'>,
- <django.template.base.SimpleNode object at 0x8096c9e90>,
- <Text Node: '"></SCRIPT>
- <SCRIPT TYPE='>,
- <Block Node: extrastyle. Contents: []>,
- <Text Node: '
- <!--[if lte IE 7]><link '>,
- <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x8096c97d0>, <Text Node: '/media/admin/css/ie.css'>]>,
- <Text Node: '" /><![endif]-->
- '>,
- <IfNode>,
- <Text Node: '
- <script type="text/javas'>,
- <Block Node: extrahead. Contents: []>,
- <Text Node: '
- '>,
- <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>,
- <Text Node: '
- </head>
- '>,
- <django.template.defaulttags.LoadNode object at 0x8096c9dd0>,
- <Text Node: '
- <body class="'>,
- <IfNode>,
- <Block Node: bodyclass. Contents: []>,
- <Text Node: '"
- onmousemove="wi'>,
- <IfNode>,
- <Text Node: '
- '>,
- <IfNode>,
- <Text Node: '
- <!-- Conten'>,
- <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
- <Text Node: '">
- '>,
- <Block Node: pretitle. Contents: []>,
- <Text Node: '
- '>,
- <Block Node: content_title. Contents: [<IfNode>]>,
- <Text Node: '
- '>,
- <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>,
- <Text Node: '
- '>,
- <Block Node: sidebar. Contents: []>,
- <Text Node: '
- </div>
- <!-- END '>]
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 134)
- Function: _render
- 127
- 128 def __iter__(self):
- 129 for node in self.nodelist:
- 130 for subnode in node:
- 131 yield subnode
- 132
- 133 def _render(self, context):
- 134 ==> return self.nodelist.render(context)
- 135
- 136 def render(self, context):
- 137 "Display stage -- can be called many times"
- 138 context.render_context.push()
- 139 try:
- 140 return self._render(context)
- Variables:
- self = <django.template.base.Template object at 0x809e4c810>
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py (Line: 123)
- Function: render
- 116 blocks = dict([(n.name, n) for n in
- 117 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
- 118 block_context.add_blocks(blocks)
- 119 break
- 120
- 121 # Call Template._render explicitly so the parser context stays
- 122 # the same.
- 123 ==> return compiled_parent._render(context)
- 124
- 125 class BaseIncludeNode(Node):
- 126 def __init__(self, *args, **kwargs):
- 127 self.extra_context = kwargs.pop('extra_context', {})
- 128 self.isolated_context = kwargs.pop('isolated_context', False)
- 129 super(BaseIncludeNode, self).__init__(*args, **kwargs)
- Variables:
- node = <django.template.defaulttags.LoadNode object at 0x809e4ca10>
- blocks =
- {u'blockbots': <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>,
- u'bodyclass': <Block Node: bodyclass. Contents: []>,
- u'breadcrumbs': <Block Node: breadcrumbs. Contents: [<Text Node: '<li>'>, <django.templatetags.i18n.TranslateNode object at 0x8096c9f90>, <Text Node: '</li>'>]>,
- u'coltype': <Block Node: coltype. Contents: [<Text Node: 'colM'>]>,
- u'content': <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>,
- u'content_title': <Block Node: content_title. Contents: [<IfNode>]>,
- u'extrahead': <Block Node: extrahead. Contents: []>,
- u'extrastyle': <Block Node: extrastyle. Contents: []>,
- u'object-tools': <Block Node: object-tools. Contents: []>,
- u'pretitle': <Block Node: pretitle. Contents: []>,
- u'sidebar': <Block Node: sidebar. Contents: []>,
- u'stylesheet': <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x8096c9150>]>,
- u'stylesheet_ie': <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x8096c97d0>, <Text Node: '/media/admin/css/ie.css'>]>,
- u'stylesheet_rtl': <Block Node: stylesheet_rtl. Contents: [<Text Node: '/media/admin/css/rtl.css'>]>,
- u'title': <Block Node: title. Contents: []>}
- block_context = <django.template.loader_tags.BlockContext object at 0x8096b5490>
- n = <Block Node: sidebar. Contents: []>
- context =
- [{'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': {}}]
- compiled_parent = <django.template.base.Template object at 0x809e4c810>
- self = <ExtendsNode: extends "admin/base.html">
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
- Function: render_node
- 830 "Return a list of all nodes of the given type"
- 831 nodes = []
- 832 for node in self:
- 833 nodes.extend(node.get_nodes_by_type(nodetype))
- 834 return nodes
- 835
- 836 def render_node(self, node, context):
- 837 ==> return node.render(context)
- 838
- 839 class TextNode(Node):
- 840 def __init__(self, s):
- 841 self.s = s
- 842
- 843 def __repr__(self):
- Variables:
- node = <ExtendsNode: extends "admin/base.html">
- self = [<ExtendsNode: extends "admin/base.html">]
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
- Function: render
- 816 # extend_nodelist().
- 817 contains_nontext = False
- 818
- 819 def render(self, context):
- 820 bits = []
- 821 for node in self:
- 822 if isinstance(node, Node):
- 823 ==> bit = self.render_node(node, context)
- 824 else:
- 825 bit = node
- 826 bits.append(force_unicode(bit))
- 827 return mark_safe(u''.join(bits))
- 828
- 829 def get_nodes_by_type(self, nodetype):
- Variables:
- node = <ExtendsNode: extends "admin/base.html">
- self = [<ExtendsNode: extends "admin/base.html">]
- bits = []
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 134)
- Function: _render
- 127
- 128 def __iter__(self):
- 129 for node in self.nodelist:
- 130 for subnode in node:
- 131 yield subnode
- 132
- 133 def _render(self, context):
- 134 ==> return self.nodelist.render(context)
- 135
- 136 def render(self, context):
- 137 "Display stage -- can be called many times"
- 138 context.render_context.push()
- 139 try:
- 140 return self._render(context)
- Variables:
- self = <django.template.base.Template object at 0x8096b54d0>
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/loader_tags.py (Line: 123)
- Function: render
- 116 blocks = dict([(n.name, n) for n in
- 117 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
- 118 block_context.add_blocks(blocks)
- 119 break
- 120
- 121 # Call Template._render explicitly so the parser context stays
- 122 # the same.
- 123 ==> return compiled_parent._render(context)
- 124
- 125 class BaseIncludeNode(Node):
- 126 def __init__(self, *args, **kwargs):
- 127 self.extra_context = kwargs.pop('extra_context', {})
- 128 self.isolated_context = kwargs.pop('isolated_context', False)
- 129 super(BaseIncludeNode, self).__init__(*args, **kwargs)
- Variables:
- node = <ExtendsNode: extends "admin/base.html">
- block_context = <django.template.loader_tags.BlockContext object at 0x8096b5490>
- compiled_parent = <django.template.base.Template object at 0x8096b54d0>
- self = <ExtendsNode: extends "template.html">
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 837)
- Function: render_node
- 830 "Return a list of all nodes of the given type"
- 831 nodes = []
- 832 for node in self:
- 833 nodes.extend(node.get_nodes_by_type(nodetype))
- 834 return nodes
- 835
- 836 def render_node(self, node, context):
- 837 ==> return node.render(context)
- 838
- 839 class TextNode(Node):
- 840 def __init__(self, s):
- 841 self.s = s
- 842
- 843 def __repr__(self):
- Variables:
- node = <ExtendsNode: extends "template.html">
- self = [<ExtendsNode: extends "template.html">]
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 823)
- Function: render
- 816 # extend_nodelist().
- 817 contains_nontext = False
- 818
- 819 def render(self, context):
- 820 bits = []
- 821 for node in self:
- 822 if isinstance(node, Node):
- 823 ==> bit = self.render_node(node, context)
- 824 else:
- 825 bit = node
- 826 bits.append(force_unicode(bit))
- 827 return mark_safe(u''.join(bits))
- 828
- 829 def get_nodes_by_type(self, nodetype):
- Variables:
- node = <ExtendsNode: extends "template.html">
- self = [<ExtendsNode: extends "template.html">]
- bits = []
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 134)
- Function: _render
- 127
- 128 def __iter__(self):
- 129 for node in self.nodelist:
- 130 for subnode in node:
- 131 yield subnode
- 132
- 133 def _render(self, context):
- 134 ==> return self.nodelist.render(context)
- 135
- 136 def render(self, context):
- 137 "Display stage -- can be called many times"
- 138 context.render_context.push()
- 139 try:
- 140 return self._render(context)
- Variables:
- self = <django.template.base.Template object at 0x8096b5890>
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/base.py (Line: 140)
- Function: render
- 133 def _render(self, context):
- 134 return self.nodelist.render(context)
- 135
- 136 def render(self, context):
- 137 "Display stage -- can be called many times"
- 138 context.render_context.push()
- 139 try:
- 140 ==> return self._render(context)
- 141 finally:
- 142 context.render_context.pop()
- 143
- 144 def compile_string(template_string, origin):
- 145 "Compiles template_string into NodeList ready for rendering"
- 146 if settings.TEMPLATE_DEBUG:
- Variables:
- self = <django.template.base.Template object at 0x8096b5890>
- context =
- [{'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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/template/loader.py (Line: 176)
- Function: render_to_string
- 169 t = get_template(template_name)
- 170 if not context_instance:
- 171 return t.render(Context(dictionary))
- 172 # Add the dictionary to the context stack, ensuring it gets removed again
- 173 # to keep the context_instance in the same state it started in.
- 174 context_instance.update(dictionary)
- 175 try:
- 176 ==> return t.render(context_instance)
- 177 finally:
- 178 context_instance.pop()
- 179
- 180 def select_template(template_name_list):
- 181 "Given a list of template names, returns the first that can be loaded."
- 182 if not template_name_list:
- Variables:
- template_name =
- ['fm/apps/classificationrule/templates/preview.html',
- 'fm/templates/preview.html',
- 'templates/preview.html']
- t = <django.template.base.Template object at 0x8096b5890>
- dictionary =
- {'extra': {},
- 'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>}
- 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': {}}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/python2.7/site-packages/django/shortcuts/__init__.py (Line: 20)
- Function: render_to_response
- 13
- 14 def render_to_response(*args, **kwargs):
- 15 """
- 16 Returns a HttpResponse whose content is filled with the result of calling
- 17 django.template.loader.render_to_string() with the passed arguments.
- 18 """
- 19 httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
- 20 ==> return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
- 21
- 22 def render(request, *args, **kwargs):
- 23 """
- 24 Returns a HttpResponse whose content is filled with the result of calling
- 25 django.template.loader.render_to_string() with the passed arguments.
- 26 Uses a RequestContext by default.
- Variables:
- httpresponse_kwargs = {'mimetype': None}
- args =
- (['fm/apps/classificationrule/templates/preview.html',
- 'fm/templates/preview.html',
- 'templates/preview.html'],
- {'extra': {},
- 'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>})
- kwargs =
- {'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': {}}]}
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/app/application.py (Line: 242)
- Function: render
- 235 def render(self, request, template, dict={}, **kwargs):
- 236 """
- 237 Render template within context
- 238 """
- 239 return render_to_response(self.get_template_path(template),
- 240 dict if dict else kwargs,
- 241 context_instance=RequestContext(request,
- 242 ==> {"app": self}))
- 243
- 244 def render_template(self, template, dict={}, **kwargs):
- 245 """
- 246 Render template to string
- 247 """
- 248 tp = self.get_template_path(template)
- Variables:
- request =
- <WSGIRequest
- path:/fm/classificationrule/4eeb505abcf4b106a300023f/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY',
- 'sessionid': '677a0ba09b2c03a6dc3182e6d6fae64d'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- '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',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY; sessionid=677a0ba09b2c03a6dc3182e6d6fae64d',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://10.111.0.14/fm/classificationrule/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; FreeBSD amd64; rv:21.0) Gecko/20100101 Firefox/21.0',
- 'PATH_INFO': u'/fm/classificationrule/4eeb505abcf4b106a300023f/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80414ded0>,
- 'wsgi.input': <_io.BytesIO object at 0x809ee72f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- self =
- <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>
- dict = {}
- template = 'preview.html'
- kwargs =
- {'extra': {},
- 'o': <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>}
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/app/treeapplication.py (Line: 188)
- Function: view_preview
- 181 """
- 182 Render item preview
- 183 """
- 184 o = self.get_object(object_id)
- 185 if not o:
- 186 return self.response_not_found("Object not found")
- 187 return self.render(request, "preview.html",
- 188 ==> o=o, extra=self.get_preview_extra(o))
- 189
- 190 @view(url="^popup/$", url_name="popup", access=HasPerm("view"))
- 191 def view_popup(self, request):
- 192 if request.GET and "choose_id" in request.GET:
- 193 choose_id = request.GET["choose_id"]
- 194 else:
- Variables:
- self =
- <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>
- request =
- <WSGIRequest
- path:/fm/classificationrule/4eeb505abcf4b106a300023f/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY',
- 'sessionid': '677a0ba09b2c03a6dc3182e6d6fae64d'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- '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',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY; sessionid=677a0ba09b2c03a6dc3182e6d6fae64d',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://10.111.0.14/fm/classificationrule/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; FreeBSD amd64; rv:21.0) Gecko/20100101 Firefox/21.0',
- 'PATH_INFO': u'/fm/classificationrule/4eeb505abcf4b106a300023f/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80414ded0>,
- 'wsgi.input': <_io.BytesIO object at 0x809ee72f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- object_id = u'4eeb505abcf4b106a300023f'
- o =
- <EventClassificationRule: APC | AOS | Chassis | Fan | Fan Failed #1 (SYSLOG)>
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/app/site.py (Line: 232)
- Function: inner
- 225 for k, v in request.POST.lists())
- 226 elif request.method == "GET":
- 227 a = dict((k, v[0] if len(v) == 1 else v)
- 228 for k, v in request.GET.lists())
- 229 logging.debug("API %s %s %s" % (request.method,
- 230 request.path, a))
- 231 # Call handler
- 232 ==> r = v(request, *args, **kwargs)
- 233 # Dump SQL statements
- 234 if self.log_sql_statements:
- 235 from django.db import connections
- 236 tsc = 0
- 237 sc = defaultdict(int)
- 238 for conn in connections.all():
- Variables:
- args = ()
- view_map =
- {'DELETE': <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>,
- 'GET': <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>,
- 'POST': <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>,
- 'PUT': <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>}
- Form = <class 'django.forms.forms.Form'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x80617a9d0>
- v =
- <bound method ClassificationRuleApplication.view_preview of <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>>
- request =
- <WSGIRequest
- path:/fm/classificationrule/4eeb505abcf4b106a300023f/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY',
- 'sessionid': '677a0ba09b2c03a6dc3182e6d6fae64d'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- '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',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=lE7aU1X8dYl5XeCHA4ZNiPYnrhaUb3fY; sessionid=677a0ba09b2c03a6dc3182e6d6fae64d',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://10.111.0.14/fm/classificationrule/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; FreeBSD amd64; rv:21.0) Gecko/20100101 Firefox/21.0',
- 'PATH_INFO': u'/fm/classificationrule/4eeb505abcf4b106a300023f/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80414ded0>,
- 'wsgi.input': <_io.BytesIO object at 0x809ee72f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- to_log_api_call = False
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- kwargs = {'object_id': u'4eeb505abcf4b106a300023f'}
- app =
- <noc.fm.apps.classificationrule.views.ClassificationRuleApplication object at 0x808fda410>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment