Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2014-03-28 11:35:19.410100)
- Working directory: /opt/noc
- <class 'django.core.urlresolvers.NoReverseMatch'>
- Reverse for 'css' with arguments '()' and keyword arguments '{}' not found.
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/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 'css' with arguments '()' and keyword arguments '{}' not found.",)
- reverse = <function reverse at 0x2454050>
- url = ''
- self = <django.template.defaulttags.URLNode object at 0x61669d0>
- args = []
- view_name = u'fm:alarm:css'
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- kwargs = {}
- NoReverseMatch = <class 'django.core.urlresolvers.NoReverseMatch'>
- ------------------------------------------------------------------------
- File: /opt/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 0x61669d0>
- self =
- [<Text Node: '
- <link type="text/css" re'>,
- <django.template.defaulttags.URLNode object at 0x61669d0>,
- <Text Node: '">
- '>]
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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 0x61669d0>
- bit = u'\n<link type="text/css" rel="stylesheet" href="'
- bits = [u'\n<link type="text/css" rel="stylesheet" href="']
- self =
- [<Text Node: '
- <link type="text/css" re'>,
- <django.template.defaulttags.URLNode object at 0x61669d0>,
- <Text Node: '">
- '>]
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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: extrahead. Contents: [<Text Node: '
- <link type="text/css" re'>, <django.template.defaulttags.URLNode object at 0x61669d0>, <Text Node: '">
- '>]>
- block_context = <django.template.loader_tags.BlockContext object at 0x6166450>
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- block =
- <Block Node: extrahead. Contents: [<Text Node: '
- <link type="text/css" re'>, <django.template.defaulttags.URLNode object at 0x61669d0>, <Text Node: '">
- '>]>
- self = <Block Node: extrahead. Contents: []>
- ------------------------------------------------------------------------
- File: /opt/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: extrahead. Contents: []>
- self =
- [<django.template.defaulttags.LoadNode object at 0x53bea10>,
- <django.template.defaulttags.LoadNode object at 0x47a3d90>,
- <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 0x47c7c10>]>,
- <Text Node: '" /><link rel="stylesheet'>,
- <django.template.base.SimpleNode object at 0x47c7bd0>,
- <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 0x47c7610>, <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 0x555a5d0>,
- <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.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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: extrahead. Contents: []>
- bit =
- u'\n<script type="text/javascript">window.__admin_media_prefix__ = "/media/admin/";</script>\n'
- bits =
- [u'',
- u'',
- u'<!DOCTYPE html>\n<html lang="',
- u'ru',
- u'" ',
- u'',
- u'>\n<head>\n<title>',
- u'Managed Objects',
- u' | ',
- u'DanCer',
- 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']
- self =
- [<django.template.defaulttags.LoadNode object at 0x53bea10>,
- <django.template.defaulttags.LoadNode object at 0x47a3d90>,
- <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 0x47c7c10>]>,
- <Text Node: '" /><link rel="stylesheet'>,
- <django.template.base.SimpleNode object at 0x47c7bd0>,
- <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 0x47c7610>, <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 0x555a5d0>,
- <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.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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 0x5328a90>
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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 0x53bea10>
- 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 0x47c7f50>, <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 0x47c7c10>]>,
- u'stylesheet_ie': <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x47c7610>, <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 0x6166450>
- n = <Block Node: sidebar. Contents: []>
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- compiled_parent = <django.template.base.Template object at 0x5328a90>
- self = <ExtendsNode: extends "admin/base.html">
- ------------------------------------------------------------------------
- File: /opt/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.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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 0x61662d0>
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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 0x6166450>
- compiled_parent = <django.template.base.Template object at 0x61662d0>
- self = <ExtendsNode: extends "template.html">
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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 0x6166610>
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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 0x6166610>
- context =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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 =
- ['sa/apps/managedobject/templates/alarms.html',
- 'sa/templates/alarms.html',
- 'templates/alarms.html']
- t = <django.template.base.Template object at 0x6166610>
- dictionary =
- {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>,
- <AlarmSeverity: WARNING>,
- u'BPDU Guard Violation on 9')],
- 'object': <ManagedObject: sw-17-137.133.danpro.ru>}
- context_instance =
- [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]
- ------------------------------------------------------------------------
- File: /opt/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 =
- (['sa/apps/managedobject/templates/alarms.html',
- 'sa/templates/alarms.html',
- 'templates/alarms.html'],
- {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>,
- <AlarmSeverity: WARNING>,
- u'BPDU Guard Violation on 9')],
- 'object': <ManagedObject: sw-17-137.133.danpro.ru>})
- kwargs =
- {'context_instance': [{'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x5946410>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x6166c10>, 'user': <django.utils.functional.SimpleLazyObject object at 0x5946150>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x5328910>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'DanCer', 'logo_url': '/static/img/logo_black.svg'}}, {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>, <AlarmSeverity: WARNING>, u'BPDU Guard Violation on 9')], 'object': <ManagedObject: sw-17-137.133.danpro.ru>}]}
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/application.py (Line: 245)
- Function: render
- 238 def render(self, request, template, dict={}, **kwargs):
- 239 """
- 240 Render template within context
- 241 """
- 242 return render_to_response(self.get_template_path(template),
- 243 dict if dict else kwargs,
- 244 context_instance=RequestContext(request,
- 245 ==> {"app": self}))
- 246
- 247 def render_template(self, template, dict={}, **kwargs):
- 248 """
- 249 Render template to string
- 250 """
- 251 tp = self.get_template_path(template)
- Variables:
- request =
- <WSGIRequest
- path:/sa/managedobject/46/alarms/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
- 'sessionid': '09c109be092b0490569a839d12ba364b'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=09c109be092b0490569a839d12ba364b; csrftoken=huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://192.168.0.251/sa/managedobject/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0',
- 'PATH_INFO': u'/sa/managedobject/46/alarms/',
- '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 0x26f0e40>,
- 'wsgi.input': <_io.BytesIO object at 0x594d770>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- self =
- <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>
- dict = {}
- template = 'alarms.html'
- kwargs =
- {'alarms': [(<ActiveAlarm: 533509dd06e3d349a4672497>,
- <AlarmSeverity: WARNING>,
- u'BPDU Guard Violation on 9')],
- 'object': <ManagedObject: sw-17-137.133.danpro.ru>}
- ------------------------------------------------------------------------
- File: /opt/noc/sa/apps/managedobject/views.py (Line: 519)
- Function: view_alarms
- 512 def view_alarms(self, request, object_id):
- 513 o = self.get_object_or_404(ManagedObject, id=int(object_id))
- 514 u_lang = request.session["django_language"]
- 515 alarms = [(a, AlarmSeverity.get_severity(a.severity), a.get_translated_subject(u_lang))
- 516 for a in
- 517 ActiveAlarm.objects.filter(managed_object=o.id).order_by("-severity,timestamp")]
- 518 return self.render(request, "alarms.html",
- 519 ==> object=o, alarms=alarms)
- 520
- 521 def user_access_list(self, user):
- 522 return [s.selector.name for s in UserAccess.objects.filter(user=user)]
- 523
- 524 def user_access_change_url(self, user):
- 525 return self.site.reverse("sa:useraccess:changelist",
- Variables:
- a = <ActiveAlarm: 533509dd06e3d349a4672497>
- u_lang = 'en-us'
- self =
- <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>
- request =
- <WSGIRequest
- path:/sa/managedobject/46/alarms/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
- 'sessionid': '09c109be092b0490569a839d12ba364b'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=09c109be092b0490569a839d12ba364b; csrftoken=huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://192.168.0.251/sa/managedobject/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0',
- 'PATH_INFO': u'/sa/managedobject/46/alarms/',
- '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 0x26f0e40>,
- 'wsgi.input': <_io.BytesIO object at 0x594d770>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- object_id = u'46'
- o = <ManagedObject: sw-17-137.133.danpro.ru>
- alarms =
- [(<ActiveAlarm: 533509dd06e3d349a4672497>,
- <AlarmSeverity: WARNING>,
- u'BPDU Guard Violation on 9')]
- ------------------------------------------------------------------------
- File: /opt/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 ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>,
- 'GET': <bound method ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>,
- 'POST': <bound method ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>,
- 'PUT': <bound method ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>}
- Form = <class 'django.forms.forms.Form'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x2f2d390>
- v =
- <bound method ManagedObjectApplication.view_alarms of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>>
- request =
- <WSGIRequest
- path:/sa/managedobject/46/alarms/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
- 'sessionid': '09c109be092b0490569a839d12ba364b'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=09c109be092b0490569a839d12ba364b; csrftoken=huiJqhGemg9GoCVJTOgxLj1MzmMEMIvG',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://192.168.0.251/sa/managedobject/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0',
- 'PATH_INFO': u'/sa/managedobject/46/alarms/',
- '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 0x26f0e40>,
- 'wsgi.input': <_io.BytesIO object at 0x594d770>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- to_log_api_call = False
- kwargs = {'object_id': u'46'}
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- app =
- <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4e22110>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement