Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2015-10-21 13:01:07.205038)
- BRANCH: default TIP: f585036220e0
- PROCESS: ./scripts/noc-web.py
- ERROR FINGERPRINT: d4d38cb5-7f45-5995-8915-0962226abecb
- WORKING DIRECTORY: /opt/noc
- EXCEPTION: <type 'exceptions.ImportError'> No module named mwlib.uparser
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: kb/parsers/mediawiki_parser.py (Line: 34)
- Function: to_html
- 27
- 28 def get_siteinfo(self):
- 29 from mwlib import siteinfo
- 30 return siteinfo.get_siteinfo("en")
- 31
- 32 @classmethod
- 33 def to_html(cls,kb_entry):
- 34 ==> from mwlib.uparser import parseString
- 35 from mwlib.xhtmlwriter import MWXHTMLWriter, preprocess
- 36 try:
- 37 import xml.etree.ElementTree as ET
- 38 except:
- 39 from elementtree import ElementTree as ET
- 40 r=kb_entry.body.replace("\r", "")
- Variables:
- kb_entry = <KBEntry: KB1: Test>
- cls = <class 'noc.kb.parsers.mediawiki_parser.Parser'>
- ------------------------------------------------------------------------
- File: kb/models.py (Line: 67)
- Function: html
- 60 return parser_registry[self.markup_language]
- 61
- 62 @property
- 63 def html(self):
- 64 """
- 65 Returns parsed HTML
- 66 """
- 67 ==> return self.parser.to_html(self)
- 68
- 69 @property
- 70 def last_history(self):
- 71 """
- 72 Returns latest KBEntryHistory record
- 73 """
- Variables:
- self = <KBEntry: KB1: Test>
- ------------------------------------------------------------------------
- File: lib/python2.6/site-packages/django/template/base.py (Line: 754)
- Function: _resolve_lookup
- 747 current = context
- 748 try: # catch-all for silent variable failures
- 749 for bit in self.lookups:
- 750 try: # dictionary lookup
- 751 current = current[bit]
- 752 except (TypeError, AttributeError, KeyError):
- 753 try: # attribute lookup
- 754 ==> current = getattr(current, bit)
- 755 except (TypeError, AttributeError):
- 756 try: # list-index lookup
- 757 current = current[int(bit)]
- 758 except (IndexError, # list index out of range
- 759 ValueError, # invalid literal for int()
- 760 KeyError, # current is a dict without `int(bit)` key
- Variables:
- current = <KBEntry: KB1: Test>
- bit = u'html'
- e = ImportError('No module named mwlib.uparser',)
- self = <Variable: u'e.html'>
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/site-packages/django/template/base.py (Line: 721)
- Function: resolve
- 714 var)
- 715 self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
- 716
- 717 def resolve(self, context):
- 718 """Resolve this variable against a given context."""
- 719 if self.lookups is not None:
- 720 # We're dealing with a variable that needs to be resolved
- 721 ==> value = self._resolve_lookup(context)
- 722 else:
- 723 # We're dealing with a literal, so it's already been "resolved"
- 724 value = self.literal
- 725 if self.translate:
- 726 if self.message_context:
- 727 return pgettext_lazy(self.message_context, value)
- Variables:
- self = <Variable: u'e.html'>
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/site-packages/django/template/base.py (Line: 571)
- Function: resolve
- 564
- 565 self.filters = filters
- 566 self.var = var_obj
- 567
- 568 def resolve(self, context, ignore_failures=False):
- 569 if isinstance(self.var, Variable):
- 570 try:
- 571 ==> obj = self.var.resolve(context)
- 572 except VariableDoesNotExist:
- 573 if ignore_failures:
- 574 obj = None
- 575 else:
- 576 if settings.TEMPLATE_STRING_IF_INVALID:
- 577 global invalid_var_format_string
- Variables:
- self = <django.template.base.FilterExpression object at 0x631aed0>
- ignore_failures = False
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/site-packages/django/template/base.py (Line: 874)
- Function: render
- 867 self.filter_expression = filter_expression
- 868
- 869 def __repr__(self):
- 870 return "<Variable Node: %s>" % self.filter_expression
- 871
- 872 def render(self, context):
- 873 try:
- 874 ==> output = self.filter_expression.resolve(context)
- 875 except UnicodeDecodeError:
- 876 # Unicode conversion can fail sometimes for reasons out of our
- 877 # control (e.g. exception rendering). In that case, we fail
- 878 # quietly.
- 879 return ''
- 880 return _render_value_in_context(output, context)
- Variables:
- self = <Variable Node: e.html|safe>
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 = <Variable Node: e.html|safe>
- self =
- [<Text Node: '
- <ul class="object-tools"'>,
- <IfNode>,
- <Text Node: '
- <LI><A HREF="'>,
- <django.template.defaulttags.URLNode object at 0x646c610>,
- <Text Node: '" class="addlink">Add KB '>,
- <django.template.defaulttags.URLNode object at 0x61a1150>,
- <Text Node: '" class="addlink">Edit</A'>,
- <Variable Node: e.id>,
- <Text Node: ': '>,
- <Variable Node: e.subject>,
- <Text Node: '</h1>
- '>,
- <Variable Node: e.html|safe>,
- <Text Node: '
- '>,
- <IfNode>,
- <Text Node: '
- '>,
- <noc.main.templatetags.tags.TagsNode object at 0x627cb10>,
- <Text Node: '
- <hr/>
- Posted at '>,
- <Variable Node: e.last_history.timestamp|date>,
- <Text Node: ' '>,
- <Variable Node: e.last_history.timestamp|time>,
- <Text Node: ' by '>,
- <Variable Node: e.last_history.user>,
- <Text Node: '
- '>]
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 = <Variable Node: e.html|safe>
- bit = u'</h1>\n'
- bits =
- [u'\n<ul class="object-tools">\n ',
- u'\n <LI><A HREF="/kb/view/1/bookmark/set/" class="addlink">Set Bookmark</A></LI>\n ',
- u'\n <LI><A HREF="',
- u'/kb/kbentry/add/',
- u'" class="addlink">Add KB Entry</A></LI>\n <LI><A HREF="',
- u'/kb/kbentry/1/',
- u'" class="addlink">Edit</A></LI>\n</ul>\n<h1>KB',
- u'1',
- u': ',
- u'Test',
- u'</h1>\n']
- self =
- [<Text Node: '
- <ul class="object-tools"'>,
- <IfNode>,
- <Text Node: '
- <LI><A HREF="'>,
- <django.template.defaulttags.URLNode object at 0x646c610>,
- <Text Node: '" class="addlink">Add KB '>,
- <django.template.defaulttags.URLNode object at 0x61a1150>,
- <Text Node: '" class="addlink">Edit</A'>,
- <Variable Node: e.id>,
- <Text Node: ': '>,
- <Variable Node: e.subject>,
- <Text Node: '</h1>
- '>,
- <Variable Node: e.html|safe>,
- <Text Node: '
- '>,
- <IfNode>,
- <Text Node: '
- '>,
- <noc.main.templatetags.tags.TagsNode object at 0x627cb10>,
- <Text Node: '
- <hr/>
- Posted at '>,
- <Variable Node: e.last_history.timestamp|date>,
- <Text Node: ' '>,
- <Variable Node: e.last_history.timestamp|time>,
- <Text Node: ' by '>,
- <Variable Node: e.last_history.user>,
- <Text Node: '
- '>]
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/site-packages/django/template/loader_tags.py (Line: 62)
- Function: render
- 55 push = block = block_context.pop(self.name)
- 56 if block is None:
- 57 block = self
- 58 # Create new block so we can store context without thread-safety issues.
- 59 block = BlockNode(block.name, block.nodelist)
- 60 block.context = context
- 61 context['block'] = block
- 62 ==> result = block.nodelist.render(context)
- 63 if push is not None:
- 64 block_context.push(self.name, push)
- 65 context.pop()
- 66 return result
- 67
- 68 def super(self):
- Variables:
- push =
- <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <IfNode>, <Text Node: '
- <LI><A HREF="'>, <django.template.defaulttags.URLNode object at 0x646c610>, <Text Node: '" class="addlink">Add KB '>, <django.template.defaulttags.URLNode object at 0x61a1150>, <Text Node: '" class="addlink">Edit</A'>, <Variable Node: e.id>, <Text Node: ': '>, <Variable Node: e.subject>, <Text Node: '</h1>
- '>, <Variable Node: e.html|safe>, <Text Node: '
- '>, <IfNode>, <Text Node: '
- '>, <noc.main.templatetags.tags.TagsNode object at 0x627cb10>, <Text Node: '
- <hr/>
- Posted at '>, <Variable Node: e.last_history.timestamp|date>, <Text Node: ' '>, <Variable Node: e.last_history.timestamp|time>, <Text Node: ' by '>, <Variable Node: e.last_history.user>, <Text Node: '
- '>]>
- block_context = <django.template.loader_tags.BlockContext object at 0x6309750>
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- block =
- <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <IfNode>, <Text Node: '
- <LI><A HREF="'>, <django.template.defaulttags.URLNode object at 0x646c610>, <Text Node: '" class="addlink">Add KB '>, <django.template.defaulttags.URLNode object at 0x61a1150>, <Text Node: '" class="addlink">Edit</A'>, <Variable Node: e.id>, <Text Node: ': '>, <Variable Node: e.subject>, <Text Node: '</h1>
- '>, <Variable Node: e.html|safe>, <Text Node: '
- '>, <IfNode>, <Text Node: '
- '>, <noc.main.templatetags.tags.TagsNode object at 0x627cb10>, <Text Node: '
- <hr/>
- Posted at '>, <Variable Node: e.last_history.timestamp|date>, <Text Node: ' '>, <Variable Node: e.last_history.timestamp|time>, <Text Node: ' by '>, <Variable Node: e.last_history.user>, <Text Node: '
- '>]>
- self =
- <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- ------------------------------------------------------------------------
- File: lib/python2.6/site-packages/django/template/base.py (Line: 837)
- Function: render_node
- 830 "Return a list of all nodes of the given type"
- 831 nodes = []
- 832 for node in self:
- 833 nodes.extend(node.get_nodes_by_type(nodetype))
- 834 return nodes
- 835
- 836 def render_node(self, node, context):
- 837 ==> return node.render(context)
- 838
- 839 class TextNode(Node):
- 840 def __init__(self, s):
- 841 self.s = s
- 842
- 843 def __repr__(self):
- Variables:
- node =
- <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- self =
- [<django.template.defaulttags.LoadNode object at 0x61952d0>,
- <django.template.defaulttags.LoadNode object at 0x61957d0>,
- <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 0x637ba50>]>,
- <Text Node: '" />
- <link rel="styleshee'>,
- <django.template.base.SimpleNode object at 0x637b7d0>,
- <Text Node: '"></SCRIPT>
- '>,
- <Block Node: extrastyle. Contents: []>,
- <Text Node: '
- <!--[if lte IE 7]><link '>,
- <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x637ba10>, <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 0x637bc90>,
- <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.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/site-packages/django/template/base.py (Line: 823)
- Function: render
- 816 # extend_nodelist().
- 817 contains_nontext = False
- 818
- 819 def render(self, context):
- 820 bits = []
- 821 for node in self:
- 822 if isinstance(node, Node):
- 823 ==> bit = self.render_node(node, context)
- 824 else:
- 825 bit = node
- 826 bits.append(force_unicode(bit))
- 827 return mark_safe(u''.join(bits))
- 828
- 829 def get_nodes_by_type(self, nodetype):
- Variables:
- node =
- <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- bit = u'\n '
- bits =
- [u'',
- u'',
- u'<!DOCTYPE html>\n<html lang="',
- u'ru',
- u'" ',
- u'',
- u'>\n<head>\n<title>',
- u'Knowledge Base: KB1',
- u' | ',
- u'Unconfigured Installation',
- u'</title>\n',
- u'\n <link rel="icon" type="image/png" href="/static/img/logo_24x24_deep_azure.png" />\n',
- u'\n<link rel="stylesheet" type="text/css" href="',
- u'/media/admin/css/base.css',
- u'" />\n<link rel="stylesheet" type="text/css" href="/static/css/main.css" />\n<link rel="stylesheet" type="text/css" href="/static/pkg/font-awesome/css/font-awesome.css" />\n<link rel="stylesheet" type="text/css" href="/static/css/noc/colors.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',
- 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 <link type="text/css" rel="stylesheet" href="/static/css/rack.css" />\n <link rel="stylesheet" type="text/css" href="/static/css/pygments.css" />\n <link rel="stylesheet" type="text/css" href="/static/css/highlight.css" />\n <link rel="stylesheet" type="text/css" href="/static/css/tablesorter.css" />\n <script type="text/javascript" src="/static/js/jquery.tablesorter.js"></SCRIPT>\n \n <link rel="stylesheet" type="text/css" href="/static/apps/kb/view/mediawiki/shared.css" />\n \n <link rel="stylesheet" type="text/css" href="/static/apps/kb/view/mediawiki/main.css" />\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>Knowledge Base</li>\n\n <li><a href="/kb/view/">View</a></li>\n\n<li>KB1</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 0x61952d0>,
- <django.template.defaulttags.LoadNode object at 0x61957d0>,
- <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 0x637ba50>]>,
- <Text Node: '" />
- <link rel="styleshee'>,
- <django.template.base.SimpleNode object at 0x637b7d0>,
- <Text Node: '"></SCRIPT>
- '>,
- <Block Node: extrastyle. Contents: []>,
- <Text Node: '
- <!--[if lte IE 7]><link '>,
- <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x637ba10>, <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 0x637bc90>,
- <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.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 0x647cc50>
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 0x61952d0>
- 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 0x637b450>, <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 0x637ba50>]>,
- u'stylesheet_ie': <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x637ba10>, <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 0x6309750>
- n = <Block Node: sidebar. Contents: []>
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- compiled_parent = <django.template.base.Template object at 0x647cc50>
- self = <ExtendsNode: extends "admin/base.html">
- ------------------------------------------------------------------------
- File: lib/python2.6/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.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 0x627c410>
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 0x6309750>
- compiled_parent = <django.template.base.Template object at 0x627c410>
- self = <ExtendsNode: extends "template.html">
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 0x6309610>
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 0x6309610>
- context =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 =
- ['kb/apps/view/templates/view.html',
- 'kb/templates/view.html',
- 'templates/view.html']
- t = <django.template.base.Template object at 0x6309610>
- dictionary = {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}
- context_instance =
- [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]
- ------------------------------------------------------------------------
- File: lib/python2.6/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 =
- (['kb/apps/view/templates/view.html',
- 'kb/templates/view.html',
- 'templates/view.html'],
- {'e': <KBEntry: KB1: Test>, 'has_bookmark': False})
- kwargs =
- {'context_instance': [{'app': <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x6309710>}, {'perms': <django.contrib.auth.context_processors.PermWrapper object at 0x63097d0>, 'user': <django.utils.functional.SimpleLazyObject object at 0x6309e50>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x6309e10>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_black.svg'}}, {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}]}
- ------------------------------------------------------------------------
- File: lib/app/application.py (Line: 264)
- Function: render
- 257 def render(self, request, template, dict={}, **kwargs):
- 258 """
- 259 Render template within context
- 260 """
- 261 return render_to_response(self.get_template_path(template),
- 262 dict if dict else kwargs,
- 263 context_instance=RequestContext(request,
- 264 ==> {"app": self}))
- 265
- 266 def render_template(self, template, dict={}, **kwargs):
- 267 """
- 268 Render template to string
- 269 """
- 270 tp = self.get_template_path(template)
- Variables:
- request =
- <WSGIRequest
- path:/kb/view/1/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'Eaqz3vysg6MlAKHfCbZitOe3PZnjtNre',
- 'sessionid': 'ccef9a12d09c15fe0230b47e5b72690a'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=ccef9a12d09c15fe0230b47e5b72690a; csrftoken=Eaqz3vysg6MlAKHfCbZitOe3PZnjtNre',
- 'HTTP_HOST': '172.22.102.120',
- 'HTTP_REFERER': 'http://172.22.102.120/kb/index/latest/',
- 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/kb/view/1/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '172.22.102.120',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x25cb810>,
- 'wsgi.input': <io.BytesIO object at 0x62f87d0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- self = <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>
- dict = {'e': <KBEntry: KB1: Test>, 'has_bookmark': False}
- template = 'view.html'
- kwargs = {}
- ------------------------------------------------------------------------
- File: kb/apps/view/views.py (Line: 31)
- Function: view_view
- 24 view_index.access=HasPerm("view")
- 25 ##
- 26 ## KB Entry Preview
- 27 ##
- 28 def view_view(self,request,kb_id):
- 29 e=get_object_or_404(KBEntry,id=int(kb_id))
- 30 e.log_preview(request.user)
- 31 ==> return self.render(request,"view.html",{"e":e,"has_bookmark":e.is_bookmarked(request.user)})
- 32 view_view.url=r"^(?P<kb_id>\d+)/$"
- 33 view_view.url_name="view"
- 34 view_view.access=HasPerm("view")
- 35 ##
- 36 ## Download attachment
- 37 ##
- Variables:
- kb_id = u'1'
- request =
- <WSGIRequest
- path:/kb/view/1/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'Eaqz3vysg6MlAKHfCbZitOe3PZnjtNre',
- 'sessionid': 'ccef9a12d09c15fe0230b47e5b72690a'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=ccef9a12d09c15fe0230b47e5b72690a; csrftoken=Eaqz3vysg6MlAKHfCbZitOe3PZnjtNre',
- 'HTTP_HOST': '172.22.102.120',
- 'HTTP_REFERER': 'http://172.22.102.120/kb/index/latest/',
- 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/kb/view/1/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '172.22.102.120',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x25cb810>,
- 'wsgi.input': <io.BytesIO object at 0x62f87d0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- self = <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>
- e = <KBEntry: KB1: Test>
- ------------------------------------------------------------------------
- File: lib/app/site.py (Line: 248)
- Function: inner
- 241 a = dict((k, v[0] if len(v) == 1 else v)
- 242 for k, v in request.GET.lists())
- 243 app_logger.debug("API %s %s %s",
- 244 request.method, request.path, a)
- 245 # Call handler
- 246 v.__dict__["hits_metric"] += 1
- 247 with v.__dict__["time_metric"].timer():
- 248 ==> r = v(request, *args, **kwargs)
- 249 # Dump SQL statements
- 250 if self.log_sql_statements:
- 251 from django.db import connections
- 252 tsc = 0
- 253 sc = defaultdict(int)
- 254 for conn in connections.all():
- Variables:
- args = ()
- view_map =
- {'DELETE': <bound method ViewAppplication.view_view of <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>>,
- 'GET': <bound method ViewAppplication.view_view of <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>>,
- 'POST': <bound method ViewAppplication.view_view of <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>>,
- 'PUT': <bound method ViewAppplication.view_view of <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>>}
- Form = <class 'django.forms.forms.Form'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x2bb34d0>
- v =
- <bound method ViewAppplication.view_view of <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>>
- request =
- <WSGIRequest
- path:/kb/view/1/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'Eaqz3vysg6MlAKHfCbZitOe3PZnjtNre',
- 'sessionid': 'ccef9a12d09c15fe0230b47e5b72690a'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=ccef9a12d09c15fe0230b47e5b72690a; csrftoken=Eaqz3vysg6MlAKHfCbZitOe3PZnjtNre',
- 'HTTP_HOST': '172.22.102.120',
- 'HTTP_REFERER': 'http://172.22.102.120/kb/index/latest/',
- 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/kb/view/1/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '172.22.102.120',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x25cb810>,
- 'wsgi.input': <io.BytesIO object at 0x62f87d0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- app_logger = <logging.Logger instance at 0x5f413b0>
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- to_log_api_call = False
- kwargs = {'kb_id': u'1'}
- nq = <function nq at 0x65aa848>
- app = <noc.kb.apps.view.views.ViewAppplication object at 0x60394d0>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement