Guest User

Untitled

a guest
May 21st, 2012
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 91.11 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2012-05-21 12:58:45.320402)
  2. Working directory: /opt/noc
  3. <class 'django.template.base.TemplateSyntaxError'>
  4. Caught OSError while rendering: [Errno 2] No such file or directory
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /usr/lib/python2.7/subprocess.py (Line: 1249)
  8. Function: _execute_child
  9.  1242                     except OSError as e:
  10.  1243                         if e.errno != errno.ECHILD:
  11.  1244                             raise
  12.  1245                     child_exception = pickle.loads(data)
  13.  1246                     for fd in (p2cwrite, c2pread, errread):
  14.  1247                         if fd is not None:
  15.  1248                             os.close(fd)
  16.  1249 ==>                 raise child_exception
  17.  1250    
  18.  1251    
  19.  1252             def _handle_exitstatus(self, sts, _WIFSIGNALED=os.WIFSIGNALED,
  20.  1253                     _WTERMSIG=os.WTERMSIG, _WIFEXITED=os.WIFEXITED,
  21.  1254                     _WEXITSTATUS=os.WEXITSTATUS):
  22.  1255                 # This method is called (indirectly) by __del__, so it cannot
  23. Variables:
  24.              errread = None
  25.              c2pread = 22
  26.       gc_was_enabled = True
  27.             errwrite = None
  28.                shell = False
  29.        errpipe_write = 25
  30.           executable = '/usr/local/bin/hg'
  31.            close_fds = False
  32.                 self = <subprocess.Popen object at 0xafb0e0c>
  33.                  env = None
  34.                  cwd = '/var/repo/config'
  35.      child_exception = OSError(2, 'No such file or directory')
  36.                 args = ['/usr/local/bin/hg', 'log', '--template', '{rev} {date}\n', u'119']
  37.                   fd = None
  38.             c2pwrite = 23
  39.                 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.'
  40.       creationflags = 0
  41.        errpipe_read = 24
  42.          preexec_fn = None
  43.             p2cread = None
  44.         startupinfo = None
  45.            p2cwrite = None
  46.  universal_newlines = False
  47. ------------------------------------------------------------------------
  48. File: /usr/lib/python2.7/subprocess.py (Line: 679)
  49. Function: __init__
  50.  672              errread, errwrite) = self._get_handles(stdin, stdout, stderr)
  51.  673    
  52.  674             self._execute_child(args, executable, preexec_fn, close_fds,
  53.  675                                 cwd, env, universal_newlines,
  54.  676                                 startupinfo, creationflags, shell,
  55.  677                                 p2cread, p2cwrite,
  56.  678                                 c2pread, c2pwrite,
  57.  679 ==>                             errread, errwrite)
  58.  680    
  59.  681             if mswindows:
  60.  682                 if p2cwrite is not None:
  61.  683                     p2cwrite = msvcrt.open_osfhandle(p2cwrite.Detach(), 0)
  62.  684                 if c2pread is not None:
  63.  685                     c2pread = msvcrt.open_osfhandle(c2pread.Detach(), 0)
  64. Variables:
  65.              stderr = None
  66.               shell = False
  67.             errread = None
  68.             p2cread = None
  69.              stdout = -1
  70.         startupinfo = None
  71.           close_fds = False
  72.             c2pread = 22
  73.               stdin = None
  74.                args = ['/usr/local/bin/hg', 'log', '--template', '{rev} {date}\n', u'119']
  75.          executable = None
  76.            errwrite = None
  77.                 cwd = '/var/repo/config'
  78.                self = <subprocess.Popen object at 0xafb0e0c>
  79.            p2cwrite = None
  80.                 env = None
  81.            c2pwrite = 23
  82.             bufsize = 0
  83.       creationflags = 0
  84.          preexec_fn = None
  85.  universal_newlines = False
  86. ------------------------------------------------------------------------
  87. File: /opt/noc/cm/vcs/__init__.py (Line: 86)
  88. Function: cmd_out
  89.   79             if check:
  90.   80                 self.check_repository()
  91.   81             subprocess.check_call([config.get("cm","vcs_path")]+cmd,cwd=self.repo)
  92.   82         # Returns an output of cmd
  93.   83         def cmd_out(self,cmd,check=True):
  94.   84             if check:
  95.   85                 self.check_repository()
  96.   86 ==>         p=subprocess.Popen([config.get("cm","vcs_path")]+cmd,stdout=subprocess.PIPE,cwd=self.repo)
  97.   87             d=p.stdout.read()
  98.   88             return d
  99.   89         # Returns a list of Revision
  100.   90         def log(self,path):
  101.   91             raise Exception("Not supported")
  102.   92         # Returns unified diff
  103. Variables:
  104.                self = <noc.cm.vcs.hg.VCS object at 0xafb080c>
  105.                 cmd = ['log', '--template', '{rev} {date}\n', u'119']
  106.               check = True
  107. ------------------------------------------------------------------------
  108. File: /opt/noc/cm/vcs/hg.py (Line: 23)
  109. Function: log
  110.   16         def check_repository(self):
  111.   17             super(VCS, self).check_repository()
  112.   18             if not os.path.exists(os.path.join(self.repo,".hg")):
  113.   19                 self.cmd(["init"],check=False)
  114.   20    
  115.   21         def log(self,path):
  116.   22             revs=[]
  117.   23 ==>         for l in self.cmd_out(["log","--template","{rev} {date}\n",path]).split("\n"):
  118.   24                 l=l.strip()
  119.   25                 if not l:
  120.   26                     continue
  121.   27                 rev,date=l.split(" ")
  122.   28                 if "-" in date:
  123.   29                     date,r=date.split("-",1)
  124. Variables:
  125.                path = u'119'
  126.                revs = []
  127.                self = <noc.cm.vcs.hg.VCS object at 0xafb080c>
  128. ------------------------------------------------------------------------
  129. File: /opt/noc/cm/models.py (Line: 162)
  130. Function: revisions
  131.  155    
  132.  156         @property
  133.  157         def revisions(self):
  134.  158             """
  135.  159             Get list of revisions
  136.  160             :return:
  137.  161             """
  138.  162 ==>         return self.vcs.log(self.repo_path)
  139.  163    
  140.  164         # Finds revision of the object and returns Revision
  141.  165         def find_revision(self, rev):
  142.  166             assert is_int(rev)
  143.  167             for r in self.revisions:
  144.  168                 if r.revision == rev:
  145. Variables:
  146.                self = <Config: config/119>
  147. ------------------------------------------------------------------------
  148. File: /opt/noc/contrib/lib/django/template/base.py (Line: 683)
  149. Function: _resolve_lookup
  150.  676             current = context
  151.  677             try: # catch-all for silent variable failures
  152.  678                 for bit in self.lookups:
  153.  679                     try: # dictionary lookup
  154.  680                         current = current[bit]
  155.  681                     except (TypeError, AttributeError, KeyError):
  156.  682                         try: # attribute lookup
  157.  683 ==>                         current = getattr(current, bit)
  158.  684                         except (TypeError, AttributeError):
  159.  685                             try: # list-index lookup
  160.  686                                 current = current[int(bit)]
  161.  687                             except (IndexError, # list index out of range
  162.  688                                     ValueError, # invalid literal for int()
  163.  689                                     KeyError,   # current is a dict without `int(bit)` key
  164. Variables:
  165.             current = <Config: config/119>
  166.                 bit = u'revisions'
  167.                   e = OSError(2, 'No such file or directory')
  168.                self = <Variable: u'o.revisions'>
  169.             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: '
  170. <ul class="object-tools"'>, <If node>, <Text Node: '
  171.     '>, <If node>, <Text Node: '
  172.     <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  173. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  174. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  175.         <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  176.         <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  177.         <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  178.         <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  179.     </TABLE>
  180. <'>, <If node>, <Text Node: '
  181. <DIV CLASS="module">
  182.    '>, <If node>, <If node>, <Text Node: '</TD></TR>
  183.     </TABLE>
  184. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  185.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  186.         </TBODY>
  187.     </T'>]>}]
  188. ------------------------------------------------------------------------
  189. File: /opt/noc/contrib/lib/django/template/base.py (Line: 653)
  190. Function: resolve
  191.  646                         raise TemplateSyntaxError("Variables and attributes may not begin with underscores: '%s'" % var)
  192.  647                     self.lookups = tuple(var.split(VARIABLE_ATTRIBUTE_SEPARATOR))
  193.  648    
  194.  649         def resolve(self, context):
  195.  650             """Resolve this variable against a given context."""
  196.  651             if self.lookups is not None:
  197.  652                 # We're dealing with a variable that needs to be resolved
  198.   653 ==>             value = self._resolve_lookup(context)
  199.   654             else:
  200.   655                 # We're dealing with a literal, so it's already been "resolved"
  201.   656                 value = self.literal
  202.   657             if self.translate:
  203.   658                 return ugettext_lazy(value)
  204.   659             return value
  205. Variables:
  206.                 self = <Variable: u'o.revisions'>
  207.              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: '
  208. <ul class="object-tools"'>, <If node>, <Text Node: '
  209.    '>, <If node>, <Text Node: '
  210.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  211. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  212. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  213.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  214.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  215.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  216.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  217.    </TABLE>
  218. <'>, <If node>, <Text Node: '
  219. <DIV CLASS="module">
  220.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  221.    </TABLE>
  222. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  223.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  224.        </TBODY>
  225.    </T'>]>}]
  226. ------------------------------------------------------------------------
  227. File: /opt/noc/contrib/lib/django/template/base.py (Line: 510)
  228. Function: resolve
  229.   503    
  230.   504             self.filters = filters
  231.   505             self.var = var_obj
  232.   506    
  233.   507         def resolve(self, context, ignore_failures=False):
  234.   508             if isinstance(self.var, Variable):
  235.   509                 try:
  236.   510 ==>                 obj = self.var.resolve(context)
  237.   511                 except VariableDoesNotExist:
  238.   512                     if ignore_failures:
  239.   513                         obj = None
  240.   514                     else:
  241.   515                         if settings.TEMPLATE_STRING_IF_INVALID:
  242.   516                             global invalid_var_format_string
  243. Variables:
  244.                 self = <django.template.base.FilterExpression object at 0xb1a6fac>
  245.      ignore_failures = True
  246.              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: '
  247. <ul class="object-tools"'>, <If node>, <Text Node: '
  248.    '>, <If node>, <Text Node: '
  249.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  250. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  251. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  252.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  253.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  254.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  255.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  256.    </TABLE>
  257. <'>, <If node>, <Text Node: '
  258. <DIV CLASS="module">
  259.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  260.    </TABLE>
  261. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  262.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  263.        </TBODY>
  264.    </T'>]>}]
  265. ------------------------------------------------------------------------
  266. File: /opt/noc/contrib/lib/django/template/defaulttags.py (Line: 184)
  267. Function: render
  268.   177         def render(self, context):
  269.   178             if 'forloop' in context:
  270.   179                 parentloop = context['forloop']
  271.   180             else:
  272.   181                 parentloop = {}
  273.   182             context.push()
  274.   183             try:
  275.   184 ==>             values = self.sequence.resolve(context, True)
  276.   185             except VariableDoesNotExist:
  277.   186                 values = []
  278.   187             if values is None:
  279.   188                 values = []
  280.   189             if not hasattr(values, '__len__'):
  281.   190                 values = list(values)
  282. Variables:
  283.           parentloop = {}
  284.                 self = <For Node: for rev in o.revisions, tail_len: 19>
  285.              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: '
  286. <ul class="object-tools"'>, <If node>, <Text Node: '
  287.    '>, <If node>, <Text Node: '
  288.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  289. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  290. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  291.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  292.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  293.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  294.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  295.    </TABLE>
  296. <'>, <If node>, <Text Node: '
  297. <DIV CLASS="module">
  298.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  299.    </TABLE>
  300. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  301.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  302.        </TBODY>
  303.    </T'>]>}]
  304. ------------------------------------------------------------------------
  305. File: /opt/noc/contrib/lib/django/template/debug.py (Line: 73)
  306. Function: render_node
  307.    66         def compile_function_error(self, token, e):
  308.    67             if not hasattr(e, 'source'):
  309.    68                 e.source = token.source
  310.    69    
  311.    70     class DebugNodeList(NodeList):
  312.    71         def render_node(self, node, context):
  313.    72             try:
  314.    73 ==>             result = node.render(context)
  315.    74             except TemplateSyntaxError, e:
  316.    75                 if not hasattr(e, 'source'):
  317.    76                     e.source = node.source
  318.    77                 raise
  319.    78             except Exception, e:
  320.    79                 from sys import exc_info
  321. Variables:
  322.                 node = <For Node: for rev in o.revisions, tail_len: 19>
  323.                    e = OSError(2, 'No such file or directory')
  324.                 self = [<Text Node: '
  325. <ul class="object-tools"'>, <If node>, <Text Node: '
  326.    '>, <If node>, <Text Node: '
  327.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  328. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  329. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  330.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  331.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  332.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  333.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  334.    </TABLE>
  335. <'>, <If node>, <Text Node: '
  336. <DIV CLASS="module">
  337.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  338.    </TABLE>
  339. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  340.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  341.        </TBODY>
  342.    </T'>]
  343.              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: '
  344. <ul class="object-tools"'>, <If node>, <Text Node: '
  345.    '>, <If node>, <Text Node: '
  346.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  347. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  348. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  349.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  350.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  351.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  352.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  353.    </TABLE>
  354. <'>, <If node>, <Text Node: '
  355. <DIV CLASS="module">
  356.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  357.    </TABLE>
  358. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  359.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  360.        </TBODY>
  361.    </T'>]>}]
  362.              wrapped = TemplateSyntaxError(u'Caught OSError while rendering: [Errno 2] No such file or directory',)
  363.             exc_info = <built-in function exc_info>
  364. ------------------------------------------------------------------------
  365. File: /opt/noc/contrib/lib/django/template/base.py (Line: 744)
  366. Function: render
  367.   737         # extend_nodelist().
  368.   738         contains_nontext = False
  369.   739    
  370.   740         def render(self, context):
  371.   741             bits = []
  372.   742             for node in self:
  373.   743                 if isinstance(node, Node):
  374.   744 ==>                 bits.append(self.render_node(node, context))
  375.   745                 else:
  376.   746                     bits.append(node)
  377.   747             return mark_safe(''.join([force_unicode(b) for b in bits]))
  378.   748    
  379.   749         def get_nodes_by_type(self, nodetype):
  380.   750             "Return a list of all nodes of the given type"
  381. Variables:
  382.                 node = <For Node: for rev in o.revisions, tail_len: 19>
  383.                 self = [<Text Node: '
  384. <ul class="object-tools"'>, <If node>, <Text Node: '
  385.    '>, <If node>, <Text Node: '
  386.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  387. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  388. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  389.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  390.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  391.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  392.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  393.    </TABLE>
  394. <'>, <If node>, <Text Node: '
  395. <DIV CLASS="module">
  396.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  397.    </TABLE>
  398. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  399.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  400.        </TBODY>
  401.    </T'>]
  402.                 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        ']
  403.              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: '
  404. <ul class="object-tools"'>, <If node>, <Text Node: '
  405.    '>, <If node>, <Text Node: '
  406.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  407. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  408. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  409.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  410.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  411.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  412.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  413.    </TABLE>
  414. <'>, <If node>, <Text Node: '
  415. <DIV CLASS="module">
  416.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  417.    </TABLE>
  418. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  419.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  420.        </TBODY>
  421.    </T'>]>}]
  422. ------------------------------------------------------------------------
  423. File: /opt/noc/contrib/lib/django/template/loader_tags.py (Line: 64)
  424. Function: render
  425.    57                 push = block = block_context.pop(self.name)
  426.    58                 if block is None:
  427.    59                     block = self
  428.    60                 # Create new block so we can store context without thread-safety issues.
  429.    61                 block = BlockNode(block.name, block.nodelist)
  430.    62                 block.context = context
  431.    63                 context['block'] = block
  432.    64 ==>             result = block.nodelist.render(context)
  433.    65                 if push is not None:
  434.    66                     block_context.push(self.name, push)
  435.    67             context.pop()
  436.    68             return result
  437.    69    
  438.    70         def super(self):
  439. Variables:
  440.                 push = <Block Node: content. Contents: [<Text Node: '
  441. <ul class="object-tools"'>, <If node>, <Text Node: '
  442.    '>, <If node>, <Text Node: '
  443.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  444. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  445. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  446.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  447.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  448.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  449.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  450.    </TABLE>
  451. <'>, <If node>, <Text Node: '
  452. <DIV CLASS="module">
  453.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  454.    </TABLE>
  455. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  456.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  457.        </TBODY>
  458.    </T'>]>
  459.        block_context = <django.template.loader_tags.BlockContext object at 0xb146d0c>
  460.              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: '
  461. <ul class="object-tools"'>, <If node>, <Text Node: '
  462.    '>, <If node>, <Text Node: '
  463.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  464. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  465. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  466.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  467.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  468.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  469.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  470.    </TABLE>
  471. <'>, <If node>, <Text Node: '
  472. <DIV CLASS="module">
  473.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  474.    </TABLE>
  475. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  476.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  477.        </TBODY>
  478.    </T'>]>}]
  479.                block = <Block Node: content. Contents: [<Text Node: '
  480. <ul class="object-tools"'>, <If node>, <Text Node: '
  481.    '>, <If node>, <Text Node: '
  482.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  483. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  484. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  485.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  486.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  487.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  488.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  489.    </TABLE>
  490. <'>, <If node>, <Text Node: '
  491. <DIV CLASS="module">
  492.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  493.    </TABLE>
  494. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  495.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  496.        </TBODY>
  497.    </T'>]>
  498.                 self = <Block Node: content. Contents: [<Text Node: '
  499.        '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  500.        '>, <Variable Node: content>, <Text Node: '
  501.        '>]>
  502. ------------------------------------------------------------------------
  503. File: /opt/noc/contrib/lib/django/template/debug.py (Line: 73)
  504. Function: render_node
  505.    66         def compile_function_error(self, token, e):
  506.    67             if not hasattr(e, 'source'):
  507.    68                 e.source = token.source
  508.    69    
  509.    70     class DebugNodeList(NodeList):
  510.    71         def render_node(self, node, context):
  511.    72             try:
  512.    73 ==>             result = node.render(context)
  513.    74             except TemplateSyntaxError, e:
  514.    75                 if not hasattr(e, 'source'):
  515.    76                     e.source = node.source
  516.    77                 raise
  517.    78             except Exception, e:
  518.    79                 from sys import exc_info
  519. Variables:
  520.                 node = <Block Node: content. Contents: [<Text Node: '
  521.        '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  522.        '>, <Variable Node: content>, <Text Node: '
  523.        '>]>
  524.                 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: '>
  525. <head>
  526. <title>'>, <Block Node: title. Contents: []>, <Text Node: ' | '>, <Variable Node: setup.installation_name>, <Text Node: '</title>
  527. '>, <If node>, <Text Node: '
  528. <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: '" />
  529. <link rel="styleshee'>, <django.template.base.SimpleNode object at 0xb11e08c>, <Text Node: 'js/jquery.js"></SCRIPT>
  530. <'>, <Block Node: extrastyle. Contents: []>, <Text Node: '
  531. <!--[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]-->
  532. '>, <If node>, <Text Node: '
  533. <script type="text/javas'>, <django.template.defaulttags.FilterNode object at 0xb11e3ec>, <Text Node: '";</script>
  534. '>, <Block Node: extrahead. Contents: []>, <Text Node: '
  535. '>, <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>, <Text Node: '
  536. </head>
  537. '>, <django.template.defaulttags.LoadNode object at 0xb11e80c>, <Text Node: '
  538.  
  539. <body class="'>, <If node>, <Block Node: bodyclass. Contents: []>, <Text Node: '"
  540.        onmousemove="wi'>, <If node>, <Text Node: '
  541.    '>, <If node>, <Text Node: '
  542.        
  543.    <!-- Conten'>, <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, <Text Node: '">
  544.        '>, <Block Node: pretitle. Contents: []>, <Text Node: '
  545.        '>, <Block Node: content_title. Contents: [<If node>]>, <Text Node: '
  546.        '>, <Block Node: content. Contents: [<Text Node: '
  547.        '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  548.        '>, <Variable Node: content>, <Text Node: '
  549.        '>]>, <Text Node: '
  550.        '>, <Block Node: sidebar. Contents: []>, <Text Node: '
  551.    </div>
  552.    <!-- END '>, <django.template.base.SimpleNode object at 0xb1b0aac>, <Text Node: 'img/admin/icon_deletelink'>]
  553.                    e = TemplateSyntaxError(u'Caught OSError while rendering: [Errno 2] No such file or directory',)
  554.              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: '
  555. <ul class="object-tools"'>, <If node>, <Text Node: '
  556.    '>, <If node>, <Text Node: '
  557.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  558. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  559. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  560.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  561.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  562.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  563.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  564.    </TABLE>
  565. <'>, <If node>, <Text Node: '
  566. <DIV CLASS="module">
  567.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  568.    </TABLE>
  569. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  570.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  571.        </TBODY>
  572.    </T'>]>}]
  573. ------------------------------------------------------------------------
  574. File: /opt/noc/contrib/lib/django/template/base.py (Line: 744)
  575. Function: render
  576.   737         # extend_nodelist().
  577.   738         contains_nontext = False
  578.   739    
  579.   740         def render(self, context):
  580.   741             bits = []
  581.   742             for node in self:
  582.   743                 if isinstance(node, Node):
  583.   744 ==>                 bits.append(self.render_node(node, context))
  584.   745                 else:
  585.   746                     bits.append(node)
  586.   747             return mark_safe(''.join([force_unicode(b) for b in bits]))
  587.   748    
  588.   749         def get_nodes_by_type(self, nodetype):
  589.   750             "Return a list of all nodes of the given type"
  590. Variables:
  591.                 node = <Block Node: content. Contents: [<Text Node: '
  592.        '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  593.        '>, <Variable Node: content>, <Text Node: '
  594.        '>]>
  595.                 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: '>
  596. <head>
  597. <title>'>, <Block Node: title. Contents: []>, <Text Node: ' | '>, <Variable Node: setup.installation_name>, <Text Node: '</title>
  598. '>, <If node>, <Text Node: '
  599. <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: '" />
  600. <link rel="styleshee'>, <django.template.base.SimpleNode object at 0xb11e08c>, <Text Node: 'js/jquery.js"></SCRIPT>
  601. <'>, <Block Node: extrastyle. Contents: []>, <Text Node: '
  602. <!--[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]-->
  603. '>, <If node>, <Text Node: '
  604. <script type="text/javas'>, <django.template.defaulttags.FilterNode object at 0xb11e3ec>, <Text Node: '";</script>
  605. '>, <Block Node: extrahead. Contents: []>, <Text Node: '
  606. '>, <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>, <Text Node: '
  607. </head>
  608. '>, <django.template.defaulttags.LoadNode object at 0xb11e80c>, <Text Node: '
  609.  
  610. <body class="'>, <If node>, <Block Node: bodyclass. Contents: []>, <Text Node: '"
  611.        onmousemove="wi'>, <If node>, <Text Node: '
  612.    '>, <If node>, <Text Node: '
  613.        
  614.    <!-- Conten'>, <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, <Text Node: '">
  615.        '>, <Block Node: pretitle. Contents: []>, <Text Node: '
  616.        '>, <Block Node: content_title. Contents: [<If node>]>, <Text Node: '
  617.        '>, <Block Node: content. Contents: [<Text Node: '
  618.        '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  619.        '>, <Variable Node: content>, <Text Node: '
  620.        '>]>, <Text Node: '
  621.        '>, <Block Node: sidebar. Contents: []>, <Text Node: '
  622.    </div>
  623.    <!-- END '>, <django.template.base.SimpleNode object at 0xb1b0aac>, <Text Node: 'img/admin/icon_deletelink'>]
  624.                 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        ']
  625.              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: '
  626. <ul class="object-tools"'>, <If node>, <Text Node: '
  627.    '>, <If node>, <Text Node: '
  628.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  629. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  630. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  631.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  632.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  633.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  634.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  635.    </TABLE>
  636. <'>, <If node>, <Text Node: '
  637. <DIV CLASS="module">
  638.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  639.    </TABLE>
  640. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  641.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  642.        </TBODY>
  643.    </T'>]>}]
  644. ------------------------------------------------------------------------
  645. File: /opt/noc/contrib/lib/django/template/base.py (Line: 117)
  646. Function: _render
  647.   110    
  648.   111         def __iter__(self):
  649.   112             for node in self.nodelist:
  650.   113                 for subnode in node:
  651.   114                     yield subnode
  652.   115    
  653.   116         def _render(self, context):
  654.   117 ==>         return self.nodelist.render(context)
  655.   118    
  656.   119         def render(self, context):
  657.   120             "Display stage -- can be called many times"
  658.   121             context.render_context.push()
  659.   122             try:
  660.   123                 return self._render(context)
  661. Variables:
  662.                 self = <django.template.base.Template object at 0xb0c028c>
  663.              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: '
  664. <ul class="object-tools"'>, <If node>, <Text Node: '
  665.    '>, <If node>, <Text Node: '
  666.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  667. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  668. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  669.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  670.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  671.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  672.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  673.    </TABLE>
  674. <'>, <If node>, <Text Node: '
  675. <DIV CLASS="module">
  676.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  677.    </TABLE>
  678. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  679.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  680.        </TBODY>
  681.    </T'>]>}]
  682. ------------------------------------------------------------------------
  683. File: /opt/noc/contrib/lib/django/template/loader_tags.py (Line: 127)
  684. Function: render
  685.   120                         blocks = dict([(n.name, n) for n in
  686.   121                                        compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  687.   122                         block_context.add_blocks(blocks)
  688.   123                     break
  689.   124    
  690.   125             # Call Template._render explicitly so the parser context stays
  691.   126             # the same.
  692.   127 ==>         return compiled_parent._render(context)
  693.   128    
  694.   129     class BaseIncludeNode(Node):
  695.   130         def __init__(self, *args, **kwargs):
  696.   131             self.extra_context = kwargs.pop('extra_context', {})
  697.   132             self.isolated_context = kwargs.pop('isolated_context', False)
  698.   133             super(BaseIncludeNode, self).__init__(*args, **kwargs)
  699. Variables:
  700.                 node = <Variable Node: LANGUAGE_CODE|default:"en-us">
  701.               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: '
  702.        '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  703.        '>, <Variable Node: content>, <Text Node: '
  704.        '>]>, 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: []>}
  705.        block_context = <django.template.loader_tags.BlockContext object at 0xb146d0c>
  706.                    n = <Block Node: sidebar. Contents: []>
  707.              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: '
  708. <ul class="object-tools"'>, <If node>, <Text Node: '
  709.    '>, <If node>, <Text Node: '
  710.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  711. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  712. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  713.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  714.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  715.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  716.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  717.    </TABLE>
  718. <'>, <If node>, <Text Node: '
  719. <DIV CLASS="module">
  720.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  721.    </TABLE>
  722. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  723.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  724.        </TBODY>
  725.    </T'>]>}]
  726.      compiled_parent = <django.template.base.Template object at 0xb0c028c>
  727.                 self = <ExtendsNode: extends "admin/base.html">
  728. ------------------------------------------------------------------------
  729. File: /opt/noc/contrib/lib/django/template/debug.py (Line: 73)
  730. Function: render_node
  731.    66         def compile_function_error(self, token, e):
  732.    67             if not hasattr(e, 'source'):
  733.    68                 e.source = token.source
  734.    69    
  735.    70     class DebugNodeList(NodeList):
  736.    71         def render_node(self, node, context):
  737.    72             try:
  738.    73 ==>             result = node.render(context)
  739.    74             except TemplateSyntaxError, e:
  740.    75                 if not hasattr(e, 'source'):
  741.    76                     e.source = node.source
  742.    77                 raise
  743.    78             except Exception, e:
  744.    79                 from sys import exc_info
  745. Variables:
  746.                 node = <ExtendsNode: extends "admin/base.html">
  747.                 self = [<ExtendsNode: extends "admin/base.html">]
  748.                    e = TemplateSyntaxError(u'Caught OSError while rendering: [Errno 2] No such file or directory',)
  749.              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: '
  750. <ul class="object-tools"'>, <If node>, <Text Node: '
  751.    '>, <If node>, <Text Node: '
  752.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  753. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  754. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  755.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  756.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  757.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  758.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  759.    </TABLE>
  760. <'>, <If node>, <Text Node: '
  761. <DIV CLASS="module">
  762.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  763.    </TABLE>
  764. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  765.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  766.        </TBODY>
  767.    </T'>]>}]
  768. ------------------------------------------------------------------------
  769. File: /opt/noc/contrib/lib/django/template/base.py (Line: 744)
  770. Function: render
  771.   737         # extend_nodelist().
  772.   738         contains_nontext = False
  773.   739    
  774.   740         def render(self, context):
  775.   741             bits = []
  776.   742             for node in self:
  777.   743                 if isinstance(node, Node):
  778.   744 ==>                 bits.append(self.render_node(node, context))
  779.   745                 else:
  780.   746                     bits.append(node)
  781.   747             return mark_safe(''.join([force_unicode(b) for b in bits]))
  782.   748    
  783.   749         def get_nodes_by_type(self, nodetype):
  784.   750             "Return a list of all nodes of the given type"
  785. Variables:
  786.                 node = <ExtendsNode: extends "admin/base.html">
  787.                 self = [<ExtendsNode: extends "admin/base.html">]
  788.                 bits = []
  789.              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: '
  790. <ul class="object-tools"'>, <If node>, <Text Node: '
  791.    '>, <If node>, <Text Node: '
  792.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  793. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  794. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  795.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  796.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  797.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  798.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  799.    </TABLE>
  800. <'>, <If node>, <Text Node: '
  801. <DIV CLASS="module">
  802.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  803.    </TABLE>
  804. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  805.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  806.        </TBODY>
  807.    </T'>]>}]
  808. ------------------------------------------------------------------------
  809. File: /opt/noc/contrib/lib/django/template/base.py (Line: 117)
  810. Function: _render
  811.   110    
  812.   111         def __iter__(self):
  813.   112             for node in self.nodelist:
  814.   113                 for subnode in node:
  815.   114                     yield subnode
  816.   115    
  817.   116         def _render(self, context):
  818.   117 ==>         return self.nodelist.render(context)
  819.   118    
  820.   119         def render(self, context):
  821.   120             "Display stage -- can be called many times"
  822.   121             context.render_context.push()
  823.   122             try:
  824.   123                 return self._render(context)
  825. Variables:
  826.                 self = <django.template.base.Template object at 0xb146cac>
  827.              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: '
  828. <ul class="object-tools"'>, <If node>, <Text Node: '
  829.    '>, <If node>, <Text Node: '
  830.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  831. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  832. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  833.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  834.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  835.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  836.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  837.    </TABLE>
  838. <'>, <If node>, <Text Node: '
  839. <DIV CLASS="module">
  840.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  841.    </TABLE>
  842. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  843.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  844.        </TBODY>
  845.    </T'>]>}]
  846. ------------------------------------------------------------------------
  847. File: /opt/noc/contrib/lib/django/template/loader_tags.py (Line: 127)
  848. Function: render
  849.   120                         blocks = dict([(n.name, n) for n in
  850.   121                                        compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  851.   122                         block_context.add_blocks(blocks)
  852.   123                     break
  853.   124    
  854.   125             # Call Template._render explicitly so the parser context stays
  855.   126             # the same.
  856.   127 ==>         return compiled_parent._render(context)
  857.   128    
  858.   129     class BaseIncludeNode(Node):
  859.   130         def __init__(self, *args, **kwargs):
  860.   131             self.extra_context = kwargs.pop('extra_context', {})
  861.   132             self.isolated_context = kwargs.pop('isolated_context', False)
  862.   133             super(BaseIncludeNode, self).__init__(*args, **kwargs)
  863. Variables:
  864.                 node = <ExtendsNode: extends "admin/base.html">
  865.        block_context = <django.template.loader_tags.BlockContext object at 0xb146d0c>
  866.      compiled_parent = <django.template.base.Template object at 0xb146cac>
  867.                 self = <ExtendsNode: extends "template.html">
  868.              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: '
  869. <ul class="object-tools"'>, <If node>, <Text Node: '
  870.    '>, <If node>, <Text Node: '
  871.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  872. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  873. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  874.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  875.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  876.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  877.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  878.    </TABLE>
  879. <'>, <If node>, <Text Node: '
  880. <DIV CLASS="module">
  881.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  882.    </TABLE>
  883. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  884.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  885.        </TBODY>
  886.    </T'>]>}]
  887. ------------------------------------------------------------------------
  888. File: /opt/noc/contrib/lib/django/template/debug.py (Line: 73)
  889. Function: render_node
  890.    66         def compile_function_error(self, token, e):
  891.    67             if not hasattr(e, 'source'):
  892.    68                 e.source = token.source
  893.    69    
  894.    70     class DebugNodeList(NodeList):
  895.    71         def render_node(self, node, context):
  896.    72             try:
  897.    73 ==>             result = node.render(context)
  898.    74             except TemplateSyntaxError, e:
  899.    75                 if not hasattr(e, 'source'):
  900.    76                     e.source = node.source
  901.    77                 raise
  902.    78             except Exception, e:
  903.    79                 from sys import exc_info
  904. Variables:
  905.                 node = <ExtendsNode: extends "template.html">
  906.                 self = [<ExtendsNode: extends "template.html">]
  907.                    e = TemplateSyntaxError(u'Caught OSError while rendering: [Errno 2] No such file or directory',)
  908.              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: '
  909. <ul class="object-tools"'>, <If node>, <Text Node: '
  910.    '>, <If node>, <Text Node: '
  911.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  912. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  913. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  914.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  915.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  916.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  917.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  918.    </TABLE>
  919. <'>, <If node>, <Text Node: '
  920. <DIV CLASS="module">
  921.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  922.    </TABLE>
  923. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  924.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  925.        </TBODY>
  926.    </T'>]>}]
  927. ------------------------------------------------------------------------
  928. File: /opt/noc/contrib/lib/django/template/base.py (Line: 744)
  929. Function: render
  930.   737         # extend_nodelist().
  931.   738         contains_nontext = False
  932.   739    
  933.   740         def render(self, context):
  934.   741             bits = []
  935.   742             for node in self:
  936.   743                 if isinstance(node, Node):
  937.   744 ==>                 bits.append(self.render_node(node, context))
  938.   745                 else:
  939.   746                     bits.append(node)
  940.   747             return mark_safe(''.join([force_unicode(b) for b in bits]))
  941.   748    
  942.   749         def get_nodes_by_type(self, nodetype):
  943.   750             "Return a list of all nodes of the given type"
  944. Variables:
  945.                 node = <ExtendsNode: extends "template.html">
  946.                 self = [<ExtendsNode: extends "template.html">]
  947.                 bits = []
  948.              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: '
  949. <ul class="object-tools"'>, <If node>, <Text Node: '
  950.    '>, <If node>, <Text Node: '
  951.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  952. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  953. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  954.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  955.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  956.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  957.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  958.    </TABLE>
  959. <'>, <If node>, <Text Node: '
  960. <DIV CLASS="module">
  961.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  962.    </TABLE>
  963. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  964.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  965.        </TBODY>
  966.    </T'>]>}]
  967. ------------------------------------------------------------------------
  968. File: /opt/noc/contrib/lib/django/template/base.py (Line: 117)
  969. Function: _render
  970.   110    
  971.   111         def __iter__(self):
  972.   112             for node in self.nodelist:
  973.   113                 for subnode in node:
  974.   114                     yield subnode
  975.   115    
  976.   116         def _render(self, context):
  977.   117 ==>         return self.nodelist.render(context)
  978.   118    
  979.   119         def render(self, context):
  980.   120             "Display stage -- can be called many times"
  981.   121             context.render_context.push()
  982.   122             try:
  983.   123                 return self._render(context)
  984. Variables:
  985.                 self = <django.template.base.Template object at 0xb1460ac>
  986.              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: '
  987. <ul class="object-tools"'>, <If node>, <Text Node: '
  988.    '>, <If node>, <Text Node: '
  989.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  990. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  991. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  992.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  993.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  994.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  995.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  996.    </TABLE>
  997. <'>, <If node>, <Text Node: '
  998. <DIV CLASS="module">
  999.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  1000.    </TABLE>
  1001. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  1002.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  1003.        </TBODY>
  1004.    </T'>]>}]
  1005. ------------------------------------------------------------------------
  1006. File: /opt/noc/contrib/lib/django/template/base.py (Line: 123)
  1007. Function: render
  1008.   116         def _render(self, context):
  1009.   117             return self.nodelist.render(context)
  1010.   118    
  1011.   119         def render(self, context):
  1012.   120             "Display stage -- can be called many times"
  1013.   121             context.render_context.push()
  1014.   122             try:
  1015.   123 ==>             return self._render(context)
  1016.   124             finally:
  1017.   125                 context.render_context.pop()
  1018.   126    
  1019.   127     def compile_string(template_string, origin):
  1020.   128         "Compiles template_string into NodeList ready for rendering"
  1021.   129         if settings.TEMPLATE_DEBUG:
  1022. Variables:
  1023.                 self = <django.template.base.Template object at 0xb1460ac>
  1024.              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: '
  1025. <ul class="object-tools"'>, <If node>, <Text Node: '
  1026.    '>, <If node>, <Text Node: '
  1027.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  1028. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  1029. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  1030.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  1031.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  1032.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  1033.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  1034.    </TABLE>
  1035. <'>, <If node>, <Text Node: '
  1036. <DIV CLASS="module">
  1037.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  1038.    </TABLE>
  1039. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  1040.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  1041.        </TBODY>
  1042.    </T'>]>}]
  1043. ------------------------------------------------------------------------
  1044. File: /opt/noc/contrib/lib/django/template/loader.py (Line: 188)
  1045. Function: render_to_string
  1046.   181             t = get_template(template_name)
  1047.   182         if not context_instance:
  1048.   183             return t.render(Context(dictionary))
  1049.   184         # Add the dictionary to the context stack, ensuring it gets removed again
  1050.   185         # to keep the context_instance in the same state it started in.
  1051.   186         context_instance.update(dictionary)
  1052.   187         try:
  1053.   188 ==>         return t.render(context_instance)
  1054.   189         finally:
  1055.   190             context_instance.pop()
  1056.   191    
  1057.   192     def select_template(template_name_list):
  1058.   193         "Given a list of template names, returns the first that can be loaded."
  1059.   194         not_found = []
  1060. Variables:
  1061.        template_name = ['cm/apps/config/templates/view.html', 'cm/templates/view.html', 'templates/view.html']
  1062.                    t = <django.template.base.Template object at 0xb1460ac>
  1063.           dictionary = {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}
  1064.     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: '
  1065. <ul class="object-tools"'>, <If node>, <Text Node: '
  1066.    '>, <If node>, <Text Node: '
  1067.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  1068. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  1069. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  1070.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  1071.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  1072.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  1073.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  1074.    </TABLE>
  1075. <'>, <If node>, <Text Node: '
  1076. <DIV CLASS="module">
  1077.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  1078.    </TABLE>
  1079. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  1080.    <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  1081.        </TBODY>
  1082.    </T'>]>}]
  1083. ------------------------------------------------------------------------
  1084. File: /opt/noc/contrib/lib/django/shortcuts/__init__.py (Line: 20)
  1085. Function: render_to_response
  1086.    13    
  1087.    14     def render_to_response(*args, **kwargs):
  1088.    15         """
  1089.   16         Returns a HttpResponse whose content is filled with the result of calling
  1090.   17         django.template.loader.render_to_string() with the passed arguments.
  1091.   18         """
  1092.    19         httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
  1093.    20 ==>     return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
  1094.    21    
  1095.    22     def render(request, *args, **kwargs):
  1096.    23         """
  1097.   24         Returns a HttpResponse whose content is filled with the result of calling
  1098.   25         django.template.loader.render_to_string() with the passed arguments.
  1099.   26         Uses a RequestContext by default.
  1100. Variables:
  1101. httpresponse_kwargs = {'mimetype': None}
  1102.                args = (['cm/apps/config/templates/view.html', 'cm/templates/view.html', 'templates/view.html'], {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>})
  1103.              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: '
  1104. <ul class="object-tools"'>, <If node>, <Text Node: '
  1105.    '>, <If node>, <Text Node: '
  1106.    <li><a href="'>, <If node>, <Text Node: '">Plain Text</a></li>
  1107. </u'>, <Variable Node: o.verbose_name>, <Text Node: ': '>, <Variable Node: o.repo_path>, <Text Node: '</h1>
  1108. <DIV CLASS="module"'>, <Variable Node: o.id>, <Text Node: '</TD></TR>
  1109.        <TR><T'>, <Variable Node: o.repo_path>, <Text Node: '</TD></TR>
  1110.        <TR><T'>, <Variable Node: r.revision>, <Text Node: '</TD></TR>
  1111.        <TR><T'>, <Variable Node: r.date>, <Text Node: '</TD></TR>
  1112.        <TR><T'>, <For Node: for c in o.categories.all, tail_len: 3>, <Text Node: '</TD></TR>
  1113.    </TABLE>
  1114. <'>, <If node>, <Text Node: '
  1115. <DIV CLASS="module">
  1116.   '>, <If node>, <If node>, <Text Node: '</TD></TR>
  1117.    </TABLE>
  1118. <'>, <noc.cm.templatetags.cmtags.CMURLNode object at 0xb18850c>, <Text Node: '">'>, <django.template.defaulttags.CsrfTokenNode object at 0xb1a63cc>, <Text Node: '
  1119.     <TABLE SUMMARY="Revi'>, <For Node: for rev in o.revisions, tail_len: 19>, <Text Node: '
  1120.        </TBODY>
  1121.    </T'>]>}]}
  1122. ------------------------------------------------------------------------
  1123. File: /opt/noc/lib/app/application.py (Line: 192)
  1124. Function: render
  1125.  185             """
  1126.   186             Render template within context
  1127.   187             """
  1128.  188             return render_to_response(self.get_template_path(template),
  1129.  189                                       dict if dict else kwargs,
  1130.  190                                       context_instance=RequestContext(request,
  1131.  191                                                                       dict={
  1132.  192 ==>                                                                       "app": self}))
  1133.  193    
  1134.  194         def render_template(self, template, dict={}, **kwargs):
  1135.  195             """
  1136.   196             Render template to string
  1137.   197             """
  1138.  198             tp = self.get_template_path(template)
  1139. Variables:
  1140.             request = <WSGIRequest
  1141. GET:<QueryDict: {}>,
  1142. POST:<QueryDict: {}>,
  1143. COOKIES:{'csrftoken': '57a21f7ff3936c8489fe44836475d304',
  1144. 'sessionid': '26c2c19931568a4337f000caa5444169'},
  1145. META:{'CSRF_COOKIE_USED': True,
  1146. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1147. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  1148. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  1149. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  1150. 'HTTP_CONNECTION': 'keep-alive',
  1151. 'HTTP_COOKIE': 'sessionid=26c2c19931568a4337f000caa5444169; csrftoken=57a21f7ff3936c8489fe44836475d304',
  1152. 'HTTP_HOST': '10.0.200.100:8000',
  1153. 'HTTP_REFERER': 'http://10.0.200.100:8000/sa/managedobject/',
  1154. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5',
  1155. 'PATH_INFO': u'/cm/config/1/',
  1156. 'QUERY_STRING': '',
  1157. 'REMOTE_ADDR': '10.0.100.2',
  1158. 'REQUEST_METHOD': 'GET',
  1159. 'SCRIPT_NAME': u'',
  1160. 'SERVER_NAME': '10.0.200.100',
  1161. 'SERVER_PORT': '8000',
  1162. 'SERVER_PROTOCOL': 'HTTP/1.1',
  1163. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x976cf40>,
  1164. 'wsgi.input': <_io.BytesIO object at 0xaf5badc>,
  1165. 'wsgi.multiprocess': True,
  1166. 'wsgi.multithread': False,
  1167. 'wsgi.run_once': False,
  1168. 'wsgi.url_scheme': 'http',
  1169. 'wsgi.version': (1, 0)}>
  1170.                self = <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>
  1171.                dict = {'content': 'Object not ready', 'r': [], 'o': <Config: config/119>}
  1172.            template = 'view.html'
  1173.              kwargs = {}
  1174. ------------------------------------------------------------------------
  1175. File: /opt/noc/cm/repoapp.py (Line: 42)
  1176. Function: view_change
  1177.   35             # Get object
  1178.   36             o=get_object_or_404(Object.get_object_class(self.repo),id=int(object_id))
  1179.   37             # Check permissions
  1180.   38             if not o.has_access(request.user):
  1181.   39                 return self.response_forbidden("Access Denied")
  1182.   40             # Check object in repo
  1183.   41             if not o.in_repo:
  1184.   42 ==>             return self.render(request,"view.html",{"o":o,"r":[],"content":"Object not ready"})
  1185.   43             # Find revision
  1186.   44             if revision is not None:
  1187.   45                 try:
  1188.   46                     r=o.find_revision(revision)
  1189.   47                 except:
  1190.   48                     return self.response_not_found("Revision %s is not found"%revision)
  1191. Variables:
  1192.              format = 'html'
  1193.                self = <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>
  1194.             request = <WSGIRequest
  1195. GET:<QueryDict: {}>,
  1196. POST:<QueryDict: {}>,
  1197. COOKIES:{'csrftoken': '57a21f7ff3936c8489fe44836475d304',
  1198. 'sessionid': '26c2c19931568a4337f000caa5444169'},
  1199. META:{'CSRF_COOKIE_USED': True,
  1200. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1201. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  1202. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  1203. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  1204. 'HTTP_CONNECTION': 'keep-alive',
  1205. 'HTTP_COOKIE': 'sessionid=26c2c19931568a4337f000caa5444169; csrftoken=57a21f7ff3936c8489fe44836475d304',
  1206. 'HTTP_HOST': '10.0.200.100:8000',
  1207. 'HTTP_REFERER': 'http://10.0.200.100:8000/sa/managedobject/',
  1208. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5',
  1209. 'PATH_INFO': u'/cm/config/1/',
  1210. 'QUERY_STRING': '',
  1211. 'REMOTE_ADDR': '10.0.100.2',
  1212. 'REQUEST_METHOD': 'GET',
  1213. 'SCRIPT_NAME': u'',
  1214. 'SERVER_NAME': '10.0.200.100',
  1215. 'SERVER_PORT': '8000',
  1216. 'SERVER_PROTOCOL': 'HTTP/1.1',
  1217. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x976cf40>,
  1218. 'wsgi.input': <_io.BytesIO object at 0xaf5badc>,
  1219. 'wsgi.multiprocess': True,
  1220. 'wsgi.multithread': False,
  1221. 'wsgi.run_once': False,
  1222. 'wsgi.url_scheme': 'http',
  1223. 'wsgi.version': (1, 0)}>
  1224.           object_id = u'1'
  1225.                   o = <Config: config/119>
  1226.            revision = None
  1227. ------------------------------------------------------------------------
  1228. File: /opt/noc/lib/app/site.py (Line: 225)
  1229. Function: inner
  1230.  218                                            for k, v in request.POST.lists())
  1231.  219                         elif request.method == "GET":
  1232.  220                             a = dict((k, v[0] if len(v) == 1 else v)
  1233.  221                                      for k, v in request.GET.lists())
  1234.  222                         logging.debug("API %s %s %s" % (request.method,
  1235.  223                                                         request.path, a))
  1236.  224                     # Call handler
  1237.  225 ==>                 r = v(request, *args, **kwargs)
  1238.  226                     # Dump SQL statements
  1239.  227                     if self.log_sql_statements:
  1240.  228                         from django.db import connections
  1241.  229                         tsc = 0
  1242.  230                         sc = defaultdict(int)
  1243.  231                         for conn in connections.all():
  1244. Variables:
  1245.                args = ()
  1246.            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>>}
  1247.                Form = <class 'django.forms.forms.Form'>
  1248.       DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  1249.                self = <noc.lib.app.site.Site object at 0x9dab92c>
  1250.                   v = <bound method ConfigApplication.view_change of <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>>
  1251.             request = <WSGIRequest
  1252. GET:<QueryDict: {}>,
  1253. POST:<QueryDict: {}>,
  1254. COOKIES:{'csrftoken': '57a21f7ff3936c8489fe44836475d304',
  1255. 'sessionid': '26c2c19931568a4337f000caa5444169'},
  1256. META:{'CSRF_COOKIE_USED': True,
  1257. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  1258. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  1259. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  1260. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  1261. 'HTTP_CONNECTION': 'keep-alive',
  1262. 'HTTP_COOKIE': 'sessionid=26c2c19931568a4337f000caa5444169; csrftoken=57a21f7ff3936c8489fe44836475d304',
  1263. 'HTTP_HOST': '10.0.200.100:8000',
  1264. 'HTTP_REFERER': 'http://10.0.200.100:8000/sa/managedobject/',
  1265. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5',
  1266. 'PATH_INFO': u'/cm/config/1/',
  1267. 'QUERY_STRING': '',
  1268. 'REMOTE_ADDR': '10.0.100.2',
  1269. 'REQUEST_METHOD': 'GET',
  1270. 'SCRIPT_NAME': u'',
  1271. 'SERVER_NAME': '10.0.200.100',
  1272. 'SERVER_PORT': '8000',
  1273. 'SERVER_PROTOCOL': 'HTTP/1.1',
  1274. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x976cf40>,
  1275. 'wsgi.input': <_io.BytesIO object at 0xaf5badc>,
  1276. 'wsgi.multiprocess': True,
  1277. 'wsgi.multithread': False,
  1278. 'wsgi.run_once': False,
  1279. 'wsgi.url_scheme': 'http',
  1280. 'wsgi.version': (1, 0)}>
  1281.     to_log_api_call = False
  1282.  InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  1283.    PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  1284.              kwargs = {'object_id': u'1'}
  1285.                 app = <noc.cm.apps.config.views.ConfigApplication object at 0xad34cec>
  1286. ------------------------------------------------------------------------
  1287. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment