Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2012-11-21 14:37:16.832730)
- Working directory: /opt/noc
- <class 'django.core.urlresolvers.NoReverseMatch'>
- Reverse for 'preview' with arguments '(ObjectId('50a0bd977e85c96a24c8b3d2'),)' and keyword arguments '{}' not found.
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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('50a0bd977e85c96a24c8b3d2'),)' and keyword arguments '{}' not found.",)
- reverse = <function reverse at 0x2264aa0>
- url = ''
- self = <django.template.defaulttags.URLNode object at 0x55f3690>
- args = [ObjectId('50a0bd977e85c96a24c8b3d2')]
- view_name = u'inv:vendor:preview'
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- kwargs = {}
- NoReverseMatch = <class 'django.core.urlresolvers.NoReverseMatch'>
- arg = <django.template.base.FilterExpression object at 0x55f3290>
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x55f3690>
- self = [<Text Node: '
- <style>
- .sockets_tab'>, <django.template.defaulttags.URLNode object at 0x55f3690>, <Text Node: '">'>, <Variable Node: o.vendor.name>, <Text Node: '</a></td>
- </tr>
- <'>, <Variable Node: o.short_name>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.is_builtin|bool_icon>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.description>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.part_number>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.part_number_aliases|join:", ">, <Text Node: '</td></tr>
- </table>
- '>, <WithNode>, <Text Node: '
- '>, <WithNode>, <Text Node: '
- '>, <WithNode>, <Text Node: '
- '>]
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x55f3690>
- bit = u'\n<style>\n .sockets_table {\n margin-left: 20px;\n }\n .h_name {\n width: 70px;\n }\n .h_type {\n width: 200px;\n }\n .h_kind {\n width: 50px;\n }\n .h_range {\n width: 100px;\n }\n .h_x_range {\n border-left: 7px solid #c0c0c0;\n }\n .help_text {\n font-size: 8pt;\n padding: 4px;\n font-style: italic;\n }\n</style>\n<h2>Description</h2>\n<table border="0">\n <tr class="row1">\n <td><b>Vendor:</b></td>\n <td><a href="'
- bits = [u'\n<style>\n .sockets_table {\n margin-left: 20px;\n }\n .h_name {\n width: 70px;\n }\n .h_type {\n width: 200px;\n }\n .h_kind {\n width: 50px;\n }\n .h_range {\n width: 100px;\n }\n .h_x_range {\n border-left: 7px solid #c0c0c0;\n }\n .help_text {\n font-size: 8pt;\n padding: 4px;\n font-style: italic;\n }\n</style>\n<h2>Description</h2>\n<table border="0">\n <tr class="row1">\n <td><b>Vendor:</b></td>\n <td><a href="']
- self = [<Text Node: '
- <style>
- .sockets_tab'>, <django.template.defaulttags.URLNode object at 0x55f3690>, <Text Node: '">'>, <Variable Node: o.vendor.name>, <Text Node: '</a></td>
- </tr>
- <'>, <Variable Node: o.short_name>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.is_builtin|bool_icon>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.description>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.part_number>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.part_number_aliases|join:", ">, <Text Node: '</td></tr>
- </table>
- '>, <WithNode>, <Text Node: '
- '>, <WithNode>, <Text Node: '
- '>, <WithNode>, <Text Node: '
- '>]
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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: preview. Contents: [<Text Node: '
- <style>
- .sockets_tab'>, <django.template.defaulttags.URLNode object at 0x55f3690>, <Text Node: '">'>, <Variable Node: o.vendor.name>, <Text Node: '</a></td>
- </tr>
- <'>, <Variable Node: o.short_name>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.is_builtin|bool_icon>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.description>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.part_number>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.part_number_aliases|join:", ">, <Text Node: '</td></tr>
- </table>
- '>, <WithNode>, <Text Node: '
- '>, <WithNode>, <Text Node: '
- '>, <WithNode>, <Text Node: '
- '>]>
- block_context = <django.template.loader_tags.BlockContext object at 0x55f32d0>
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- block = <Block Node: preview. Contents: [<Text Node: '
- <style>
- .sockets_tab'>, <django.template.defaulttags.URLNode object at 0x55f3690>, <Text Node: '">'>, <Variable Node: o.vendor.name>, <Text Node: '</a></td>
- </tr>
- <'>, <Variable Node: o.short_name>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.is_builtin|bool_icon>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.description>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.part_number>, <Text Node: '</td></tr>
- <tr class='>, <Variable Node: o.part_number_aliases|join:", ">, <Text Node: '</td></tr>
- </table>
- '>, <WithNode>, <Text Node: '
- '>, <WithNode>, <Text Node: '
- '>, <WithNode>, <Text Node: '
- '>]>
- self = <Block Node: preview. Contents: []>
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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: preview. Contents: []>
- self = [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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: preview. Contents: []>
- bit = u'</h1>\n<div class="module">\n'
- bits = [u'\n<h1>', u'Models', u': ', u'Container | Inventory', u'</h1>\n<div class="module">\n']
- self = [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>
- block_context = <django.template.loader_tags.BlockContext object at 0x55f32d0>
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- block = <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>
- self = <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x52f9e50>, <django.template.defaulttags.LoadNode object at 0x539acd0>, <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 0x5163050>]>, <Text Node: '" /><link rel="stylesheet'>, <django.template.base.SimpleNode object at 0x52e3150>, <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 0x52e3b10>, <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 0x545b7d0>, <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.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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'Models', u' | ', u'Mari El', 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>Inventory</li>\n\n <li><a href="/inv/model/">Models</a></li>\n\n<li>Container | Inventory</li></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 0x52f9e50>, <django.template.defaulttags.LoadNode object at 0x539acd0>, <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 0x5163050>]>, <Text Node: '" /><link rel="stylesheet'>, <django.template.base.SimpleNode object at 0x52e3150>, <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 0x52e3b10>, <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 0x545b7d0>, <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.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x544d550>
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x52f9e50>
- blocks = {u'content_title': <Block Node: content_title. Contents: [<IfNode>]>, u'extrastyle': <Block Node: extrastyle. Contents: []>, u'bodyclass': <Block Node: bodyclass. Contents: []>, u'title': <Block Node: title. Contents: []>, u'extrahead': <Block Node: extrahead. Contents: []>, u'object-tools': <Block Node: object-tools. Contents: []>, u'stylesheet_ie': <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x52e3b10>, <Text Node: '/media/admin/css/ie.css'>]>, u'content': <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>, u'stylesheet_rtl': <Block Node: stylesheet_rtl. Contents: [<Text Node: '/media/admin/css/rtl.css'>]>, u'stylesheet': <Block Node: stylesheet. Contents: [<django.template.base.SimpleNode object at 0x5163050>]>, u'breadcrumbs': <Block Node: breadcrumbs. Contents: [<Text Node: '<li>'>, <django.templatetags.i18n.TranslateNode object at 0x544a710>, <Text Node: '</li>'>]>, u'blockbots': <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>, u'coltype': <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, u'sidebar': <Block Node: sidebar. Contents: []>, u'pretitle': <Block Node: pretitle. Contents: []>}
- block_context = <django.template.loader_tags.BlockContext object at 0x55f32d0>
- n = <Block Node: sidebar. Contents: []>
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- compiled_parent = <django.template.base.Template object at 0x544d550>
- self = <ExtendsNode: extends "admin/base.html">
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x54765d0>
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x55f32d0>
- compiled_parent = <django.template.base.Template object at 0x54765d0>
- self = <ExtendsNode: extends "template.html">
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x552d890>
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 "template.html">
- block_context = <django.template.loader_tags.BlockContext object at 0x55f32d0>
- compiled_parent = <django.template.base.Template object at 0x552d890>
- self = <ExtendsNode: extends "app/tree/preview.html">
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 "app/tree/preview.html">
- self = [<ExtendsNode: extends "app/tree/preview.html">]
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 "app/tree/preview.html">
- self = [<ExtendsNode: extends "app/tree/preview.html">]
- bits = []
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x552d490>
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 0x552d490>
- context = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 = ['inv/apps/model/templates/preview.html', 'inv/templates/preview.html', 'templates/preview.html']
- t = <django.template.base.Template object at 0x552d490>
- dictionary = {'o': <Model: Container | Inventory>, 'extra': {}}
- context_instance = [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/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 = (['inv/apps/model/templates/preview.html', 'inv/templates/preview.html', 'templates/preview.html'], {'o': <Model: Container | Inventory>, 'extra': {}})
- kwargs = {'context_instance': [{'app': <noc.inv.apps.model.views.ModelApplication object at 0x4530810>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x55e6e90>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x552d750>, 'user': <django.utils.functional.SimpleLazyObject object at 0x552ded0>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x55df7d0>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Mari El', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'o': <Model: Container | Inventory>, 'extra': {}}, {'block': <Block Node: content. Contents: [<Text Node: '
- <h1>'>, <Variable Node: app.verbose_name_plural>, <Text Node: ': '>, <Variable Node: o.name>, <Text Node: '</h1>
- <div class="module"'>, <Block Node: preview. Contents: []>, <Text Node: '
- </div>
- '>]>}]}
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/application.py (Line: 233)
- Function: render
- 226 def render(self, request, template, dict={}, **kwargs):
- 227 """
- 228 Render template within context
- 229 """
- 230 return render_to_response(self.get_template_path(template),
- 231 dict if dict else kwargs,
- 232 context_instance=RequestContext(request,
- 233 ==> {"app": self}))
- 234
- 235 def render_template(self, template, dict={}, **kwargs):
- 236 """
- 237 Render template to string
- 238 """
- 239 tp = self.get_template_path(template)
- Variables:
- request = <WSGIRequest
- path:/inv/model/50a0bd977e85c96a24c8b3d7/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'SelectedMonitor': 'serviceMonitor',
- 'csrftoken': 'IYZ6pdYLnAC5QOXnjGHU5gZCMS7bGKzp',
- 'defaultSnapshotDetailsTab': 'DeviceDetails',
- 'passwordForAutomaticSignin': 'admin',
- 'sessionid': 'f4934ada7c1d02998624769d9c309993',
- 'signInAutomatically': 'true',
- 'userNameForAutomaticSignin': 'admin'},
- 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': 'userNameForAutomaticSignin=admin; passwordForAutomaticSignin=admin; signInAutomatically=true; defaultSnapshotDetailsTab=DeviceDetails; SelectedMonitor=serviceMonitor; sessionid=f4934ada7c1d02998624769d9c309993; csrftoken=IYZ6pdYLnAC5QOXnjGHU5gZCMS7bGKzp',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'https://77.40.0.12/inv/model/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Firefox/16.0 SeaMonkey/2.13.2',
- 'PATH_INFO': u'/inv/model/50a0bd977e85c96a24c8b3d7/',
- '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 0x250a8a0>,
- 'wsgi.input': <io.BytesIO object at 0x5477470>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- self = <noc.inv.apps.model.views.ModelApplication object at 0x4530810>
- dict = {}
- template = 'preview.html'
- kwargs = {'o': <Model: Container | Inventory>, 'extra': {}}
- ------------------------------------------------------------------------
- File: /opt/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.inv.apps.model.views.ModelApplication object at 0x4530810>
- request = <WSGIRequest
- path:/inv/model/50a0bd977e85c96a24c8b3d7/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'SelectedMonitor': 'serviceMonitor',
- 'csrftoken': 'IYZ6pdYLnAC5QOXnjGHU5gZCMS7bGKzp',
- 'defaultSnapshotDetailsTab': 'DeviceDetails',
- 'passwordForAutomaticSignin': 'admin',
- 'sessionid': 'f4934ada7c1d02998624769d9c309993',
- 'signInAutomatically': 'true',
- 'userNameForAutomaticSignin': 'admin'},
- 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': 'userNameForAutomaticSignin=admin; passwordForAutomaticSignin=admin; signInAutomatically=true; defaultSnapshotDetailsTab=DeviceDetails; SelectedMonitor=serviceMonitor; sessionid=f4934ada7c1d02998624769d9c309993; csrftoken=IYZ6pdYLnAC5QOXnjGHU5gZCMS7bGKzp',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'https://77.40.0.12/inv/model/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Firefox/16.0 SeaMonkey/2.13.2',
- 'PATH_INFO': u'/inv/model/50a0bd977e85c96a24c8b3d7/',
- '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 0x250a8a0>,
- 'wsgi.input': <io.BytesIO object at 0x5477470>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- object_id = u'50a0bd977e85c96a24c8b3d7'
- o = <Model: Container | Inventory>
- ------------------------------------------------------------------------
- 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 = {'PUT': <bound method ModelApplication.view_preview of <noc.inv.apps.model.views.ModelApplication object at 0x4530810>>, 'POST': <bound method ModelApplication.view_preview of <noc.inv.apps.model.views.ModelApplication object at 0x4530810>>, 'GET': <bound method ModelApplication.view_preview of <noc.inv.apps.model.views.ModelApplication object at 0x4530810>>, 'DELETE': <bound method ModelApplication.view_preview of <noc.inv.apps.model.views.ModelApplication object at 0x4530810>>}
- Form = <class 'django.forms.forms.Form'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x2b0ed50>
- v = <bound method ModelApplication.view_preview of <noc.inv.apps.model.views.ModelApplication object at 0x4530810>>
- request = <WSGIRequest
- path:/inv/model/50a0bd977e85c96a24c8b3d7/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'SelectedMonitor': 'serviceMonitor',
- 'csrftoken': 'IYZ6pdYLnAC5QOXnjGHU5gZCMS7bGKzp',
- 'defaultSnapshotDetailsTab': 'DeviceDetails',
- 'passwordForAutomaticSignin': 'admin',
- 'sessionid': 'f4934ada7c1d02998624769d9c309993',
- 'signInAutomatically': 'true',
- 'userNameForAutomaticSignin': 'admin'},
- 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': 'userNameForAutomaticSignin=admin; passwordForAutomaticSignin=admin; signInAutomatically=true; defaultSnapshotDetailsTab=DeviceDetails; SelectedMonitor=serviceMonitor; sessionid=f4934ada7c1d02998624769d9c309993; csrftoken=IYZ6pdYLnAC5QOXnjGHU5gZCMS7bGKzp',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'https://77.40.0.12/inv/model/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20121026 Firefox/16.0 SeaMonkey/2.13.2',
- 'PATH_INFO': u'/inv/model/50a0bd977e85c96a24c8b3d7/',
- '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 0x250a8a0>,
- 'wsgi.input': <io.BytesIO object at 0x5477470>,
- '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'50a0bd977e85c96a24c8b3d7'}
- app = <noc.inv.apps.model.views.ModelApplication object at 0x4530810>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement