Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2012-05-21 12:58:45.320402)
- Working directory: /opt/noc
- <class 'django.template.base.TemplateSyntaxError'>
- Caught OSError while rendering: [Errno 2] No such file or directory
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/lib/python2.7/subprocess.py (Line: 1249)
- Function: _execute_child
- 1242 except OSError as e:
- 1243 if e.errno != errno.ECHILD:
- 1244 raise
- 1245 child_exception = pickle.loads(data)
- 1246 for fd in (p2cwrite, c2pread, errread):
- 1247 if fd is not None:
- 1248 os.close(fd)
- 1249 ==> raise child_exception
- 1250
- 1251
- 1252 def _handle_exitstatus(self, sts, _WIFSIGNALED=os.WIFSIGNALED,
- 1253 _WTERMSIG=os.WTERMSIG, _WIFEXITED=os.WIFEXITED,
- 1254 _WEXITSTATUS=os.WEXITSTATUS):
- 1255 # This method is called (indirectly) by __del__, so it cannot
- Variables:
- errread = None
- c2pread = 22
- gc_was_enabled = True
- errwrite = None
- shell = False
- errpipe_write = 25
- executable = '/usr/local/bin/hg'
- close_fds = False
- self = <subprocess.Popen object at 0xafb0e0c>
- env = None
- cwd = '/var/repo/config'
- child_exception = OSError(2, 'No such file or directory')
- args = ['/usr/local/bin/hg', 'log', '--template', '{rev} {date}\n', u'119']
- fd = None
- c2pwrite = 23
- data = 'cexceptions\nOSError\np0\n(I2\nS\'No such file or directory\'\np1\ntp2\nRp3\n(dp4\nS\'child_traceback\'\np5\nS\'Traceback (most recent call last):\\n File "/usr/lib/python2.7/subprocess.py", line 1201, in _execute_child\\n os.execvp(executable, args)\\n File "/usr/lib/python2.7/os.py", line 344, in execvp\\n _execvpe(file, args)\\n File "/usr/lib/python2.7/os.py", line 368, in _execvpe\\n func(file, *argrest)\\nOSError: [Errno 2] No such file or directory\\n\'\np6\nsb.'
- creationflags = 0
- errpipe_read = 24
- preexec_fn = None
- p2cread = None
- startupinfo = None
- p2cwrite = None
- universal_newlines = False
- ------------------------------------------------------------------------
- File: /usr/lib/python2.7/subprocess.py (Line: 679)
- Function: __init__
- 672 errread, errwrite) = self._get_handles(stdin, stdout, stderr)
- 673
- 674 self._execute_child(args, executable, preexec_fn, close_fds,
- 675 cwd, env, universal_newlines,
- 676 startupinfo, creationflags, shell,
- 677 p2cread, p2cwrite,
- 678 c2pread, c2pwrite,
- 679 ==> errread, errwrite)
- 680
- 681 if mswindows:
- 682 if p2cwrite is not None:
- 683 p2cwrite = msvcrt.open_osfhandle(p2cwrite.Detach(), 0)
- 684 if c2pread is not None:
- 685 c2pread = msvcrt.open_osfhandle(c2pread.Detach(), 0)
- Variables:
- stderr = None
- shell = False
- errread = None
- p2cread = None
- stdout = -1
- startupinfo = None
- close_fds = False
- c2pread = 22
- stdin = None
- args = ['/usr/local/bin/hg', 'log', '--template', '{rev} {date}\n', u'119']
- executable = None
- errwrite = None
- cwd = '/var/repo/config'
- self = <subprocess.Popen object at 0xafb0e0c>
- p2cwrite = None
- env = None
- c2pwrite = 23
- bufsize = 0
- creationflags = 0
- preexec_fn = None
- universal_newlines = False
- ------------------------------------------------------------------------
- File: /opt/noc/cm/vcs/__init__.py (Line: 86)
- Function: cmd_out
- 79 if check:
- 80 self.check_repository()
- 81 subprocess.check_call([config.get("cm","vcs_path")]+cmd,cwd=self.repo)
- 82 # Returns an output of cmd
- 83 def cmd_out(self,cmd,check=True):
- 84 if check:
- 85 self.check_repository()
- 86 ==> p=subprocess.Popen([config.get("cm","vcs_path")]+cmd,stdout=subprocess.PIPE,cwd=self.repo)
- 87 d=p.stdout.read()
- 88 return d
- 89 # Returns a list of Revision
- 90 def log(self,path):
- 91 raise Exception("Not supported")
- 92 # Returns unified diff
- Variables:
- self = <noc.cm.vcs.hg.VCS object at 0xafb080c>
- cmd = ['log', '--template', '{rev} {date}\n', u'119']
- check = True
- ------------------------------------------------------------------------
- File: /opt/noc/cm/vcs/hg.py (Line: 23)
- Function: log
- 16 def check_repository(self):
- 17 super(VCS, self).check_repository()
- 18 if not os.path.exists(os.path.join(self.repo,".hg")):
- 19 self.cmd(["init"],check=False)
- 20
- 21 def log(self,path):
- 22 revs=[]
- 23 ==> for l in self.cmd_out(["log","--template","{rev} {date}\n",path]).split("\n"):
- 24 l=l.strip()
- 25 if not l:
- 26 continue
- 27 rev,date=l.split(" ")
- 28 if "-" in date:
- 29 date,r=date.split("-",1)
- Variables:
- path = u'119'
- revs = []
- self = <noc.cm.vcs.hg.VCS object at 0xafb080c>
- ------------------------------------------------------------------------
- File: /opt/noc/cm/models.py (Line: 162)
- Function: revisions
- 155
- 156 @property
- 157 def revisions(self):
- 158 """
- 159 Get list of revisions
- 160 :return:
- 161 """
- 162 ==> return self.vcs.log(self.repo_path)
- 163
- 164 # Finds revision of the object and returns Revision
- 165 def find_revision(self, rev):
- 166 assert is_int(rev)
- 167 for r in self.revisions:
- 168 if r.revision == rev:
- Variables:
- self = <Config: config/119>
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 683)
- Function: _resolve_lookup
- 676 current = context
- 677 try: # catch-all for silent variable failures
- 678 for bit in self.lookups:
- 679 try: # dictionary lookup
- 680 current = current[bit]
- 681 except (TypeError, AttributeError, KeyError):
- 682 try: # attribute lookup
- 683 ==> current = getattr(current, bit)
- 684 except (TypeError, AttributeError):
- 685 try: # list-index lookup
- 686 current = current[int(bit)]
- 687 except (IndexError, # list index out of range
- 688 ValueError, # invalid literal for int()
- 689 KeyError, # current is a dict without `int(bit)` key
- Variables:
- current = <Config: config/119>
- bit = u'revisions'
- e = OSError(2, 'No such file or directory')
- self = <Variable: u'o.revisions'>
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 653)
- Function: resolve
- 646 raise TemplateSyntaxError("Variables and attributes may not begin with underscores: '%s'" % var)
- 647 self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
- 648
- 649 def resolve(self, context):
- 650 """Resolve this variable against a given context."""
- 651 if self.lookups is not None:
- 652 # We're dealing with a variable that needs to be resolved
- 653 ==> value = self._resolve_lookup(context)
- 654 else:
- 655 # We're dealing with a literal, so it's already been "resolved"
- 656 value = self.literal
- 657 if self.translate:
- 658 return ugettext_lazy(value)
- 659 return value
- Variables:
- self = <Variable: u'o.revisions'>
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 510)
- Function: resolve
- 503
- 504 self.filters = filters
- 505 self.var = var_obj
- 506
- 507 def resolve(self, context, ignore_failures=False):
- 508 if isinstance(self.var, Variable):
- 509 try:
- 510 ==> obj = self.var.resolve(context)
- 511 except VariableDoesNotExist:
- 512 if ignore_failures:
- 513 obj = None
- 514 else:
- 515 if settings.TEMPLATE_STRING_IF_INVALID:
- 516 global invalid_var_format_string
- Variables:
- self = <django.template.base.FilterExpression object at 0xb1a6fac>
- ignore_failures = True
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/defaulttags.py (Line: 184)
- Function: render
- 177 def render(self, context):
- 178 if 'forloop' in context:
- 179 parentloop = context['forloop']
- 180 else:
- 181 parentloop = {}
- 182 context.push()
- 183 try:
- 184 ==> values = self.sequence.resolve(context, True)
- 185 except VariableDoesNotExist:
- 186 values = []
- 187 if values is None:
- 188 values = []
- 189 if not hasattr(values, '__len__'):
- 190 values = list(values)
- Variables:
- parentloop = {}
- self = <For Node: for rev in o.revisions, tail_len: 19>
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/debug.py (Line: 73)
- Function: render_node
- 66 def compile_function_error(self, token, e):
- 67 if not hasattr(e, 'source'):
- 68 e.source = token.source
- 69
- 70 class DebugNodeList(NodeList):
- 71 def render_node(self, node, context):
- 72 try:
- 73 ==> result = node.render(context)
- 74 except TemplateSyntaxError, e:
- 75 if not hasattr(e, 'source'):
- 76 e.source = node.source
- 77 raise
- 78 except Exception, e:
- 79 from sys import exc_info
- Variables:
- node = <For Node: for rev in o.revisions, tail_len: 19>
- e = OSError(2, 'No such file or directory')
- self = [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- wrapped = TemplateSyntaxError(u'Caught OSError while rendering: [Errno 2] No such file or directory',)
- exc_info = <built-in function exc_info>
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 744)
- Function: render
- 737 # extend_nodelist().
- 738 contains_nontext = False
- 739
- 740 def render(self, context):
- 741 bits = []
- 742 for node in self:
- 743 if isinstance(node, Node):
- 744 ==> bits.append(self.render_node(node, context))
- 745 else:
- 746 bits.append(node)
- 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
- 748
- 749 def get_nodes_by_type(self, nodetype):
- 750 "Return a list of all nodes of the given type"
- Variables:
- node = <For Node: for rev in o.revisions, tail_len: 19>
- self = [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]
- bits = [u'\n<ul class="object-tools">\n ', '', u'\n ', u'\n <li><a href="/cm/config/1/annotate/">Annotate</a></li>\n ', u'\n <li><a href="', u'/cm/config/1/text/', u'">Plain Text</a></li>\n</ul>\n\n<h1>', u'Config', u': ', u'119', u'</h1>\n<DIV CLASS="module">\n <TABLE SUMMARY="Object info" WIDTH="100%">\n <CAPTION>Object info</CAPTION>\n <TR><TD WIDTH="100px"><b>ID</b></TD><TD>', u'1', u'</TD></TR>\n <TR><TD><b>Repo Path</b></TD><TD>', u'119', u'</TD></TR>\n <TR><TD><b>Revision</b></TD><TD>', u'', u'</TD></TR>\n <TR><TD><b>Modified</b></TD><TD>', u'', u'</TD></TR>\n <TR><TD><b>Categories</b></TD><TD>', '', u'</TD></TR>\n </TABLE>\n</DIV>\n', '', u'\n<DIV CLASS="module">\n <TABLE SUMMARY="Content" WIDTH="100%">\n <CAPTION>Content</CAPTION>\n <TR><TD>', u'Object not ready', '', u'</TD></TR>\n </TABLE>\n</DIV>\n\n<DIV CLASS="module">\n <FORM METHOD="POST" ACTION="', '/cm/config/1/diff/', u'">', u'', u'\n <TABLE SUMMARY="Revisions" WIDTH="100%">\n <CAPTION>Revisions</CAPTION>\n <TBODY>\n ']
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/loader_tags.py (Line: 64)
- Function: render
- 57 push = block = block_context.pop(self.name)
- 58 if block is None:
- 59 block = self
- 60 # Create new block so we can store context without thread-safety issues.
- 61 block = BlockNode(block.name, block.nodelist)
- 62 block.context = context
- 63 context['block'] = block
- 64 ==> result = block.nodelist.render(context)
- 65 if push is not None:
- 66 block_context.push(self.name, push)
- 67 context.pop()
- 68 return result
- 69
- 70 def super(self):
- Variables:
- push = <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>
- block_context = <django.template.loader_tags.BlockContext object at 0xb146d0c>
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- block = <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>
- 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/debug.py (Line: 73)
- Function: render_node
- 66 def compile_function_error(self, token, e):
- 67 if not hasattr(e, 'source'):
- 68 e.source = token.source
- 69
- 70 class DebugNodeList(NodeList):
- 71 def render_node(self, node, context):
- 72 try:
- 73 ==> result = node.render(context)
- 74 except TemplateSyntaxError, e:
- 75 if not hasattr(e, 'source'):
- 76 e.source = node.source
- 77 raise
- 78 except Exception, e:
- 79 from sys import exc_info
- Variables:
- node = <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- self = [<Text Node: '<!DOCTYPE html PUBLIC "-/'>, <Variable Node: LANGUAGE_CODE|default:"en-us">, <Text Node: '" xml:lang="'>, <Variable Node: LANGUAGE_CODE|default:"en-us">, <Text Node: '" '>, <If node>, <Text Node: '>
- <head>
- <title>'>, <Block Node: title. Contents: []>, <Text Node: ' | '>, <Variable Node: setup.installation_name>, <Text Node: '</title>
- '>, <If node>, <Text Node: '
- <link rel="stylesheet" t'>, <Block Node: stylesheet. Contents: [<django.template.defaulttags.LoadNode object at 0xb11e38c>, <django.template.base.SimpleNode object at 0xb11ee0c>, <Text Node: 'css/base.css'>]>, <Text Node: '" />
- <link rel="styleshee'>, <django.template.base.SimpleNode object at 0xb11e08c>, <Text Node: 'js/jquery.js"></SCRIPT>
- <'>, <Block Node: extrastyle. Contents: []>, <Text Node: '
- <!--[if lte IE 7]><link '>, <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0xb11e02c>, <django.template.base.SimpleNode object at 0xb11ef8c>, <Text Node: 'css/ie.css'>]>, <Text Node: '" /><![endif]-->
- '>, <If node>, <Text Node: '
- <script type="text/javas'>, <django.template.defaulttags.FilterNode object at 0xb11e3ec>, <Text Node: '";</script>
- '>, <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 0xb11e80c>, <Text Node: '
- <body class="'>, <If node>, <Block Node: bodyclass. Contents: []>, <Text Node: '"
- onmousemove="wi'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <!-- Conten'>, <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, <Text Node: '">
- '>, <Block Node: pretitle. Contents: []>, <Text Node: '
- '>, <Block Node: content_title. Contents: [<If node>]>, <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 '>, <django.template.base.SimpleNode object at 0xb1b0aac>, <Text Node: 'img/admin/icon_deletelink'>]
- e = TemplateSyntaxError(u'Caught OSError while rendering: [Errno 2] No such file or directory',)
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 744)
- Function: render
- 737 # extend_nodelist().
- 738 contains_nontext = False
- 739
- 740 def render(self, context):
- 741 bits = []
- 742 for node in self:
- 743 if isinstance(node, Node):
- 744 ==> bits.append(self.render_node(node, context))
- 745 else:
- 746 bits.append(node)
- 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
- 748
- 749 def get_nodes_by_type(self, nodetype):
- 750 "Return a list of all nodes of the given type"
- Variables:
- node = <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- self = [<Text Node: '<!DOCTYPE html PUBLIC "-/'>, <Variable Node: LANGUAGE_CODE|default:"en-us">, <Text Node: '" xml:lang="'>, <Variable Node: LANGUAGE_CODE|default:"en-us">, <Text Node: '" '>, <If node>, <Text Node: '>
- <head>
- <title>'>, <Block Node: title. Contents: []>, <Text Node: ' | '>, <Variable Node: setup.installation_name>, <Text Node: '</title>
- '>, <If node>, <Text Node: '
- <link rel="stylesheet" t'>, <Block Node: stylesheet. Contents: [<django.template.defaulttags.LoadNode object at 0xb11e38c>, <django.template.base.SimpleNode object at 0xb11ee0c>, <Text Node: 'css/base.css'>]>, <Text Node: '" />
- <link rel="styleshee'>, <django.template.base.SimpleNode object at 0xb11e08c>, <Text Node: 'js/jquery.js"></SCRIPT>
- <'>, <Block Node: extrastyle. Contents: []>, <Text Node: '
- <!--[if lte IE 7]><link '>, <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0xb11e02c>, <django.template.base.SimpleNode object at 0xb11ef8c>, <Text Node: 'css/ie.css'>]>, <Text Node: '" /><![endif]-->
- '>, <If node>, <Text Node: '
- <script type="text/javas'>, <django.template.defaulttags.FilterNode object at 0xb11e3ec>, <Text Node: '";</script>
- '>, <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 0xb11e80c>, <Text Node: '
- <body class="'>, <If node>, <Block Node: bodyclass. Contents: []>, <Text Node: '"
- onmousemove="wi'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <!-- Conten'>, <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, <Text Node: '">
- '>, <Block Node: pretitle. Contents: []>, <Text Node: '
- '>, <Block Node: content_title. Contents: [<If node>]>, <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 '>, <django.template.base.SimpleNode object at 0xb1b0aac>, <Text Node: 'img/admin/icon_deletelink'>]
- bits = [u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" lang="', u'ru', u'" xml:lang="', u'ru', u'" ', '', u'>\n<head>\n<title>', u'Configs', u' | ', u'Test 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/css/base.css', u'" />\n<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="', '/media/', u'js/jquery.js"></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'\n<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="', u'/media/css/ie.css', u'" /><![endif]-->\n', '', u'\n<script type="text/javascript">window.__admin_media_prefix__ = "', u'/media/', u'";</script>\n', u'\n<link rel="stylesheet" type="text/css" href="/media/css/changelists.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', u'\n', u'<meta name="robots" content="NONE,NOARCHIVE" />', u'\n</head>\n', '', u'\n\n<body class="', '', '', 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>Configuration Management</li>\n\n <li><a href="/cm/config/">Configs</a></li>\n\n<li>119</li></ul></div>\n <!-- END Breadcrumbs -->\n ', u'\n ', '', u'\n \n <!-- Content -->\n <div id="content" class="', u'colM', u'">\n ', '', u'\n ', u'', u'\n ']
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 117)
- Function: _render
- 110
- 111 def __iter__(self):
- 112 for node in self.nodelist:
- 113 for subnode in node:
- 114 yield subnode
- 115
- 116 def _render(self, context):
- 117 ==> return self.nodelist.render(context)
- 118
- 119 def render(self, context):
- 120 "Display stage -- can be called many times"
- 121 context.render_context.push()
- 122 try:
- 123 return self._render(context)
- Variables:
- self = <django.template.base.Template object at 0xb0c028c>
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/loader_tags.py (Line: 127)
- Function: render
- 120 blocks = dict([(n.name, n) for n in
- 121 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
- 122 block_context.add_blocks(blocks)
- 123 break
- 124
- 125 # Call Template._render explicitly so the parser context stays
- 126 # the same.
- 127 ==> return compiled_parent._render(context)
- 128
- 129 class BaseIncludeNode(Node):
- 130 def __init__(self, *args, **kwargs):
- 131 self.extra_context = kwargs.pop('extra_context', {})
- 132 self.isolated_context = kwargs.pop('isolated_context', False)
- 133 super(BaseIncludeNode, self).__init__(*args, **kwargs)
- Variables:
- node = <Variable Node: LANGUAGE_CODE|default:"en-us">
- blocks = {u'content_title': <Block Node: content_title. Contents: [<If node>]>, 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 0xb11e02c>, <django.template.base.SimpleNode object at 0xb11ef8c>, <Text Node: '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: [<django.template.base.SimpleNode object at 0xb08b3cc>, <Text Node: 'css/rtl.css'>]>, u'stylesheet': <Block Node: stylesheet. Contents: [<django.template.defaulttags.LoadNode object at 0xb11e38c>, <django.template.base.SimpleNode object at 0xb11ee0c>, <Text Node: 'css/base.css'>]>, u'breadcrumbs': <Block Node: breadcrumbs. Contents: [<Text Node: '<li>'>, <django.templatetags.i18n.TranslateNode object at 0xb11eeec>, <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 0xb146d0c>
- n = <Block Node: sidebar. Contents: []>
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- compiled_parent = <django.template.base.Template object at 0xb0c028c>
- self = <ExtendsNode: extends "admin/base.html">
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/debug.py (Line: 73)
- Function: render_node
- 66 def compile_function_error(self, token, e):
- 67 if not hasattr(e, 'source'):
- 68 e.source = token.source
- 69
- 70 class DebugNodeList(NodeList):
- 71 def render_node(self, node, context):
- 72 try:
- 73 ==> result = node.render(context)
- 74 except TemplateSyntaxError, e:
- 75 if not hasattr(e, 'source'):
- 76 e.source = node.source
- 77 raise
- 78 except Exception, e:
- 79 from sys import exc_info
- Variables:
- node = <ExtendsNode: extends "admin/base.html">
- self = [<ExtendsNode: extends "admin/base.html">]
- e = TemplateSyntaxError(u'Caught OSError while rendering: [Errno 2] No such file or directory',)
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 744)
- Function: render
- 737 # extend_nodelist().
- 738 contains_nontext = False
- 739
- 740 def render(self, context):
- 741 bits = []
- 742 for node in self:
- 743 if isinstance(node, Node):
- 744 ==> bits.append(self.render_node(node, context))
- 745 else:
- 746 bits.append(node)
- 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
- 748
- 749 def get_nodes_by_type(self, nodetype):
- 750 "Return a list of all nodes of the given type"
- Variables:
- node = <ExtendsNode: extends "admin/base.html">
- self = [<ExtendsNode: extends "admin/base.html">]
- bits = []
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 117)
- Function: _render
- 110
- 111 def __iter__(self):
- 112 for node in self.nodelist:
- 113 for subnode in node:
- 114 yield subnode
- 115
- 116 def _render(self, context):
- 117 ==> return self.nodelist.render(context)
- 118
- 119 def render(self, context):
- 120 "Display stage -- can be called many times"
- 121 context.render_context.push()
- 122 try:
- 123 return self._render(context)
- Variables:
- self = <django.template.base.Template object at 0xb146cac>
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/loader_tags.py (Line: 127)
- Function: render
- 120 blocks = dict([(n.name, n) for n in
- 121 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
- 122 block_context.add_blocks(blocks)
- 123 break
- 124
- 125 # Call Template._render explicitly so the parser context stays
- 126 # the same.
- 127 ==> return compiled_parent._render(context)
- 128
- 129 class BaseIncludeNode(Node):
- 130 def __init__(self, *args, **kwargs):
- 131 self.extra_context = kwargs.pop('extra_context', {})
- 132 self.isolated_context = kwargs.pop('isolated_context', False)
- 133 super(BaseIncludeNode, self).__init__(*args, **kwargs)
- Variables:
- node = <ExtendsNode: extends "admin/base.html">
- block_context = <django.template.loader_tags.BlockContext object at 0xb146d0c>
- compiled_parent = <django.template.base.Template object at 0xb146cac>
- self = <ExtendsNode: extends "template.html">
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/debug.py (Line: 73)
- Function: render_node
- 66 def compile_function_error(self, token, e):
- 67 if not hasattr(e, 'source'):
- 68 e.source = token.source
- 69
- 70 class DebugNodeList(NodeList):
- 71 def render_node(self, node, context):
- 72 try:
- 73 ==> result = node.render(context)
- 74 except TemplateSyntaxError, e:
- 75 if not hasattr(e, 'source'):
- 76 e.source = node.source
- 77 raise
- 78 except Exception, e:
- 79 from sys import exc_info
- Variables:
- node = <ExtendsNode: extends "template.html">
- self = [<ExtendsNode: extends "template.html">]
- e = TemplateSyntaxError(u'Caught OSError while rendering: [Errno 2] No such file or directory',)
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 744)
- Function: render
- 737 # extend_nodelist().
- 738 contains_nontext = False
- 739
- 740 def render(self, context):
- 741 bits = []
- 742 for node in self:
- 743 if isinstance(node, Node):
- 744 ==> bits.append(self.render_node(node, context))
- 745 else:
- 746 bits.append(node)
- 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
- 748
- 749 def get_nodes_by_type(self, nodetype):
- 750 "Return a list of all nodes of the given type"
- Variables:
- node = <ExtendsNode: extends "template.html">
- self = [<ExtendsNode: extends "template.html">]
- bits = []
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 117)
- Function: _render
- 110
- 111 def __iter__(self):
- 112 for node in self.nodelist:
- 113 for subnode in node:
- 114 yield subnode
- 115
- 116 def _render(self, context):
- 117 ==> return self.nodelist.render(context)
- 118
- 119 def render(self, context):
- 120 "Display stage -- can be called many times"
- 121 context.render_context.push()
- 122 try:
- 123 return self._render(context)
- Variables:
- self = <django.template.base.Template object at 0xb1460ac>
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/base.py (Line: 123)
- Function: render
- 116 def _render(self, context):
- 117 return self.nodelist.render(context)
- 118
- 119 def render(self, context):
- 120 "Display stage -- can be called many times"
- 121 context.render_context.push()
- 122 try:
- 123 ==> return self._render(context)
- 124 finally:
- 125 context.render_context.pop()
- 126
- 127 def compile_string(template_string, origin):
- 128 "Compiles template_string into NodeList ready for rendering"
- 129 if settings.TEMPLATE_DEBUG:
- Variables:
- self = <django.template.base.Template object at 0xb1460ac>
- context = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/template/loader.py (Line: 188)
- Function: render_to_string
- 181 t = get_template(template_name)
- 182 if not context_instance:
- 183 return t.render(Context(dictionary))
- 184 # Add the dictionary to the context stack, ensuring it gets removed again
- 185 # to keep the context_instance in the same state it started in.
- 186 context_instance.update(dictionary)
- 187 try:
- 188 ==> return t.render(context_instance)
- 189 finally:
- 190 context_instance.pop()
- 191
- 192 def select_template(template_name_list):
- 193 "Given a list of template names, returns the first that can be loaded."
- 194 not_found = []
- Variables:
- template_name = ['cm/apps/config/templates/view.html', 'cm/templates/view.html', 'templates/view.html']
- t = <django.template.base.Template object at 0xb1460ac>
- dictionary = {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}
- context_instance = [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]
- ------------------------------------------------------------------------
- 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 = (['cm/apps/config/templates/view.html', 'cm/templates/view.html', 'templates/view.html'], {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>})
- kwargs = {'context_instance': [{'app': <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0xb14608c>}, {'perms': <django.utils.functional.__proxy__ object at 0xb1467ac>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>, 'user': <django.utils.functional.SimpleLazyObject object at 0xb146f2c>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0xb130e4c>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Test Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}, {'block': <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
- </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
- <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
- <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
- <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <If node>, <Text Node: '
- <DIV CLASS="module">
- '>, <If node>, <If node>, <Text Node: '</TD></TR>
- </TABLE>
- <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
- <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
- </TBODY>
- </T'>]>}]}
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/application.py (Line: 192)
- Function: render
- 185 """
- 186 Render template within context
- 187 """
- 188 return render_to_response(self.get_template_path(template),
- 189 dict if dict else kwargs,
- 190 context_instance=RequestContext(request,
- 191 dict={
- 192 ==> "app": self}))
- 193
- 194 def render_template(self, template, dict={}, **kwargs):
- 195 """
- 196 Render template to string
- 197 """
- 198 tp = self.get_template_path(template)
- Variables:
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '57a21f7ff3936c8489fe44836475d304',
- 'sessionid': '26c2c19931568a4337f000caa5444169'},
- META:{'CSRF_COOKIE_USED': True,
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
- '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': 'keep-alive',
- 'HTTP_COOKIE': 'sessionid=26c2c19931568a4337f000caa5444169; csrftoken=57a21f7ff3936c8489fe44836475d304',
- 'HTTP_HOST': '10.0.200.100:8000',
- 'HTTP_REFERER': 'http://10.0.200.100:8000/sa/managedobject/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5',
- 'PATH_INFO': u'/cm/config/1/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '10.0.100.2',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.0.200.100',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x976cf40>,
- 'wsgi.input': <_io.BytesIO object at 0xaf5badc>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- self = <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>
- dict = {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}
- template = 'view.html'
- kwargs = {}
- ------------------------------------------------------------------------
- File: /opt/noc/cm/repoapp.py (Line: 42)
- Function: view_change
- 35 # Get object
- 36 o=get_object_or_404(Object.get_object_class(self.repo),id=int(object_id))
- 37 # Check permissions
- 38 if not o.has_access(request.user):
- 39 return self.response_forbidden("Access Denied")
- 40 # Check object in repo
- 41 if not o.in_repo:
- 42 ==> return self.render(request,"view.html",{"o":o,"r":[],"content":"Object not ready"})
- 43 # Find revision
- 44 if revision is not None:
- 45 try:
- 46 r=o.find_revision(revision)
- 47 except:
- 48 return self.response_not_found("Revision %s is not found"%revision)
- Variables:
- format = 'html'
- self = <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '57a21f7ff3936c8489fe44836475d304',
- 'sessionid': '26c2c19931568a4337f000caa5444169'},
- META:{'CSRF_COOKIE_USED': True,
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
- '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': 'keep-alive',
- 'HTTP_COOKIE': 'sessionid=26c2c19931568a4337f000caa5444169; csrftoken=57a21f7ff3936c8489fe44836475d304',
- 'HTTP_HOST': '10.0.200.100:8000',
- 'HTTP_REFERER': 'http://10.0.200.100:8000/sa/managedobject/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5',
- 'PATH_INFO': u'/cm/config/1/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '10.0.100.2',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.0.200.100',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x976cf40>,
- 'wsgi.input': <_io.BytesIO object at 0xaf5badc>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- object_id = u'1'
- o = <Config: config/119>
- revision = None
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/site.py (Line: 225)
- Function: inner
- 218 for k, v in request.POST.lists())
- 219 elif request.method == "GET":
- 220 a = dict((k, v[0] if len(v) == 1 else v)
- 221 for k, v in request.GET.lists())
- 222 logging.debug("API %s %s %s" % (request.method,
- 223 request.path, a))
- 224 # Call handler
- 225 ==> r = v(request, *args, **kwargs)
- 226 # Dump SQL statements
- 227 if self.log_sql_statements:
- 228 from django.db import connections
- 229 tsc = 0
- 230 sc = defaultdict(int)
- 231 for conn in connections.all():
- Variables:
- args = ()
- view_map = {'PUT': <bound method ConfigApplication.view_change of <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>>, 'POST': <bound method ConfigApplication.view_change of <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>>, 'GET': <bound method ConfigApplication.view_change of <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>>, 'DELETE': <bound method ConfigApplication.view_change of <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>>}
- Form = <class 'django.forms.forms.Form'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x9dab92c>
- v = <bound method ConfigApplication.view_change of <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>>
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '57a21f7ff3936c8489fe44836475d304',
- 'sessionid': '26c2c19931568a4337f000caa5444169'},
- META:{'CSRF_COOKIE_USED': True,
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
- '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': 'keep-alive',
- 'HTTP_COOKIE': 'sessionid=26c2c19931568a4337f000caa5444169; csrftoken=57a21f7ff3936c8489fe44836475d304',
- 'HTTP_HOST': '10.0.200.100:8000',
- 'HTTP_REFERER': 'http://10.0.200.100:8000/sa/managedobject/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5',
- 'PATH_INFO': u'/cm/config/1/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '10.0.100.2',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.0.200.100',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x976cf40>,
- 'wsgi.input': <_io.BytesIO object at 0xaf5badc>,
- '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'1'}
- app = <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment