Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2012-03-16 11:36:19.771602)
- Working directory: /usr/local/noc
- <class 'django.template.base.TemplateSyntaxError'>
- Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/core/urlresolvers.py (Line: 337)
- Function: reverse
- 330 m = getattr(lookup_view, '__module__', None)
- 331 n = getattr(lookup_view, '__name__', None)
- 332 if m is not None and n is not None:
- 333 lookup_view_s = "%s.%s" % (m, n)
- 334 else:
- 335 lookup_view_s = lookup_view
- 336 raise NoReverseMatch("Reverse for '%s' with arguments '%s' and keyword "
- 337 ==> "arguments '%s' not found." % (lookup_view_s, args, kwargs))
- 338
- 339 def resolve(path, urlconf=None):
- 340 if urlconf is None:
- 341 urlconf = get_urlconf()
- 342 return get_resolver(urlconf).resolve(path)
- 343
- Variables:
- self = <RegexURLResolver [<RegexURLPattern scripts ^(?P<object_id>\d+)/scripts/$>, <RegexURLPattern lookup1 ^lookup1/$>, <RegexURLPattern history ^(\d+)/history/$>, <RegexURLPattern static ^(?P<path>(?:js|css|img)/[0-9a-zA-Z_/]+\.(?:js|css|png))$>, <RegexURLPattern script ^(?P<object_id>\d+)/scripts/(?P<script>[^/]+)/(?P<format>RAW|HTML)/$>, <RegexURLPattern None ^mrt/(?P<name>[^/]+)/$>, <RegexURLPattern attributes (?P<object_id>\d+)/attributes/>, <RegexURLPattern scriptresult ^(?P<object_id>\d+)/scripts/(?P<script>[^/]+)/(?P<task_id>\d+)/(?P<format>RAW|HTML)$>, <RegexURLPattern None ^mrt/(?P<name>[^/]+)/(?P<task>\d+)/$>, <RegexURLPattern None ^lookup/$>, <RegexURLPattern change_activator ^change/activator/(?P<objects>\d+(?:,\d+)*)/$>, <RegexURLPattern active_alarms (?P<object_id>\d+)/alarms/>, <RegexURLPattern add ^add/$>, <RegexURLPattern addresses (?P<object_id>\d+)/addresses/>, <RegexURLPattern delete ^(\d+)/delete/$>, <RegexURLPattern change ^(\d+)/$>, <RegexURLPattern changelist ^$>, <RegexURLPattern None ^test/(?P<objects>\d+(?:,\d+)*)/$>] (None:managedobject) ^managedobject/>
- args = ()
- m = None
- lookup_view_s = 'lookup'
- n = None
- possibilities = []
- lookup_view = 'lookup'
- kwargs = {}
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/core/urlresolvers.py (Line: 391)
- Function: reverse
- 384 except KeyError, key:
- 385 if resolved_path:
- 386 raise NoReverseMatch("%s is not a registered namespace inside '%s'" % (key, ':'.join(resolved_path)))
- 387 else:
- 388 raise NoReverseMatch("%s is not a registered namespace" % key)
- 389
- 390 return iri_to_uri(u'%s%s' % (prefix, resolver.reverse(view,
- 391 ==> *args, **kwargs)))
- 392
- 393 def clear_url_caches():
- 394 global _resolver_cache
- 395 global _callable_cache
- 396 _resolver_cache.clear()
- 397 _callable_cache.clear()
- Variables:
- args = []
- viewname = 'sa:managedobject:lookup'
- extra = 'managedobject/'
- view = 'lookup'
- current_app = None
- prefix = u'/sa/managedobject/'
- parts = ['lookup', 'managedobject', 'sa']
- resolver = <RegexURLResolver [<RegexURLPattern scripts ^(?P<object_id>\d+)/scripts/$>, <RegexURLPattern lookup1 ^lookup1/$>, <RegexURLPattern history ^(\d+)/history/$>, <RegexURLPattern static ^(?P<path>(?:js|css|img)/[0-9a-zA-Z_/]+\.(?:js|css|png))$>, <RegexURLPattern script ^(?P<object_id>\d+)/scripts/(?P<script>[^/]+)/(?P<format>RAW|HTML)/$>, <RegexURLPattern None ^mrt/(?P<name>[^/]+)/$>, <RegexURLPattern attributes (?P<object_id>\d+)/attributes/>, <RegexURLPattern scriptresult ^(?P<object_id>\d+)/scripts/(?P<script>[^/]+)/(?P<task_id>\d+)/(?P<format>RAW|HTML)$>, <RegexURLPattern None ^mrt/(?P<name>[^/]+)/(?P<task>\d+)/$>, <RegexURLPattern None ^lookup/$>, <RegexURLPattern change_activator ^change/activator/(?P<objects>\d+(?:,\d+)*)/$>, <RegexURLPattern active_alarms (?P<object_id>\d+)/alarms/>, <RegexURLPattern add ^add/$>, <RegexURLPattern addresses (?P<object_id>\d+)/addresses/>, <RegexURLPattern delete ^(\d+)/delete/$>, <RegexURLPattern change ^(\d+)/$>, <RegexURLPattern changelist ^$>, <RegexURLPattern None ^test/(?P<objects>\d+(?:,\d+)*)/$>] (None:managedobject) ^managedobject/>
- kwargs = {}
- path = []
- ns = 'managedobject'
- urlconf = 'noc.urls'
- resolved_path = ['sa', 'managedobject']
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/app/site.py (Line: 445)
- Function: reverse
- 438 """
- 439 if self.rx_namespace.match(url):
- 440 kw = kwargs.copy()
- 441 query = ""
- 442 if "QUERY" in kw:
- 443 query = "?" + urllib.urlencode(kw["QUERY"])
- 444 del kw["QUERY"]
- 445 ==> return reverse(url, args=args, kwargs=kw) + query
- 446 else:
- 447 return url
- 448
- 449 def sort_menu(self):
- 450 """
- 451 Sort application menu
- Variables:
- url = 'sa:managedobject:lookup'
- self = <noc.lib.app.site.Site object at 0x805f95450>
- args = ()
- kw = {}
- kwargs = {}
- query = ''
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/widgets.py (Line: 91)
- Function: render
- 84 }));
- 85 }
- 86 });
- 87 }
- 88 });
- 89 %s
- 90 </script>
- 91 ==> """%(attrs["id"],site.reverse(self.lookup_url),set_value)
- 92 return mark_safe("\n".join([html,js]))
- 93 ##
- 94 ## Autocomplete Tags
- 95 ##
- 96 class AutoCompleteTags(Input):
- 97 input_type="text"
- Variables:
- name = u'managed_object'
- self = <noc.lib.widgets.AutoCompleteTextInput object at 0x808bca5d0>
- value = None
- html = u'<input type="text" name="managed_object" id="id_managed_object" />'
- attrs = {'id': u'id_managed_object'}
- set_value = ''
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/forms/forms.py (Line: 439)
- Function: as_widget
- 432 else:
- 433 attrs['id'] = self.html_initial_id
- 434
- 435 if not only_initial:
- 436 name = self.html_name
- 437 else:
- 438 name = self.html_initial_name
- 439 ==> return widget.render(name, self.value(), attrs=attrs)
- 440
- 441 def as_text(self, attrs=None, **kwargs):
- 442 """
- 443 Returns a string of HTML for representing this as an <input type="text">.
- 444 """
- 445 return self.as_widget(TextInput(), attrs, **kwargs)
- Variables:
- auto_id = u'id_managed_object'
- widget = <noc.lib.widgets.AutoCompleteTextInput object at 0x808bca5d0>
- name = u'managed_object'
- self = <django.forms.forms.BoundField object at 0x808b12410>
- only_initial = False
- attrs = {'id': u'id_managed_object'}
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/forms/forms.py (Line: 408)
- Function: __unicode__
- 401 self.label = self.field.label
- 402 self.help_text = field.help_text or ''
- 403
- 404 def __unicode__(self):
- 405 """Renders this field as an HTML widget."""
- 406 if self.field.show_hidden_initial:
- 407 return self.as_widget() + self.as_hidden(only_initial=True)
- 408 ==> return self.as_widget()
- 409
- 410 def _errors(self):
- 411 """
- 412 Returns an ErrorList for this field. Returns an empty ErrorList
- 413 if there are none.
- 414 """
- Variables:
- self = <django.forms.forms.BoundField object at 0x808b12410>
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/utils/encoding.py (Line: 71)
- Function: force_unicode
- 64 if isinstance(s, unicode):
- 65 return s
- 66 if strings_only and is_protected_type(s):
- 67 return s
- 68 try:
- 69 if not isinstance(s, basestring,):
- 70 if hasattr(s, '__unicode__'):
- 71 ==> s = unicode(s)
- 72 else:
- 73 try:
- 74 s = unicode(str(s), encoding, errors)
- 75 except UnicodeEncodeError:
- 76 if not isinstance(s, Exception):
- 77 raise
- Variables:
- strings_only = False
- errors = 'strict'
- s = <django.forms.forms.BoundField object at 0x808b12410>
- encoding = 'utf-8'
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 92)
- Function: render
- 85 return result
- 86
- 87 class DebugVariableNode(VariableNode):
- 88 def render(self, context):
- 89 try:
- 90 output = self.filter_expression.resolve(context)
- 91 output = localize(output, use_l10n=context.use_l10n)
- 92 ==> output = force_unicode(output)
- 93 except TemplateSyntaxError, e:
- 94 if not hasattr(e, 'source'):
- 95 e.source = self.source
- 96 raise
- 97 except UnicodeDecodeError:
- 98 return ''
- Variables:
- output = <django.forms.forms.BoundField object at 0x808b12410>
- self = <Variable Node: form.managed_object>
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 73)
- Function: render_node
- 66 def compile_function_error(self, token, e):
- 67 if not hasattr(e, 'source'):
- 68 e.source = token.source
- 69
- 70 class DebugNodeList(NodeList):
- 71 def render_node(self, node, context):
- 72 try:
- 73 ==> result = node.render(context)
- 74 except TemplateSyntaxError, e:
- 75 if not hasattr(e, 'source'):
- 76 e.source = node.source
- 77 raise
- 78 except Exception, e:
- 79 from sys import exc_info
- Variables:
- node = <Variable Node: form.managed_object>
- e = NoReverseMatch("Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
- self = [<Text Node: '
- <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x808bc7c10>, <Text Node: '')">Set Checkpoint</a></l'>, <Variable Node: form.media>, <Text Node: '
- <form id="form">
- '>, <Variable Node: form.page>, <Text Node: '
- <b>Status</b'>, <Variable Node: form.status>, <Text Node: '
- <b>From:</b>'>, <Variable Node: form.from_time>, <Text Node: '
- <b>To:</b> '>, <Variable Node: form.to_time>, <Text Node: '
- <b>Managed O'>, <Variable Node: form.managed_object>, <Text Node: '
- <span id="e-'>, <Variable Node: form.event_class>, <Text Node: '</span>
- <INPU'>, <django.template.defaulttags.URLNode object at 0x808bc1090>, <Text Node: '"
- });
- win'>]
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- wrapped = TemplateSyntaxError(u"Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
- exc_info = <built-in function exc_info>
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 744)
- Function: render
- 737 # extend_nodelist().
- 738 contains_nontext = False
- 739
- 740 def render(self, context):
- 741 bits = []
- 742 for node in self:
- 743 if isinstance(node, Node):
- 744 ==> bits.append(self.render_node(node, context))
- 745 else:
- 746 bits.append(node)
- 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
- 748
- 749 def get_nodes_by_type(self, nodetype):
- 750 "Return a list of all nodes of the given type"
- Variables:
- node = <Variable Node: form.managed_object>
- self = [<Text Node: '
- <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x808bc7c10>, <Text Node: '')">Set Checkpoint</a></l'>, <Variable Node: form.media>, <Text Node: '
- <form id="form">
- '>, <Variable Node: form.page>, <Text Node: '
- <b>Status</b'>, <Variable Node: form.status>, <Text Node: '
- <b>From:</b>'>, <Variable Node: form.from_time>, <Text Node: '
- <b>To:</b> '>, <Variable Node: form.to_time>, <Text Node: '
- <b>Managed O'>, <Variable Node: form.managed_object>, <Text Node: '
- <span id="e-'>, <Variable Node: form.event_class>, <Text Node: '</span>
- <INPU'>, <django.template.defaulttags.URLNode object at 0x808bc1090>, <Text Node: '"
- });
- win'>]
- bits = [u'\n<ul class="object-tools">\n <li><a href="#" onclick="return show_popup(\'Set Checkpoint\', \'', '/main/checkpoint/create/', u'\')">Set Checkpoint</a></li>\n</ul>\n\n <style>\n #pager {\n width: 100%;\n border: 1px solid #c0c0c0;\n }\n </style>\n<h1>Events</h1>\n<div class="module">\n <h2>Event filter <span style="float: right;"><a href="#" id="toggle_panel_link" onclick="toggle_panel();">Hide Filter</a></span></h2>\n<div id="form_panel">\n ', u'<link href="/static/css/jquery-ui.css" type="text/css" media="all" rel="stylesheet" />\n<link href="/media/css/forms.css" type="text/css" media="all" rel="stylesheet" />\n<script type="text/javascript" src="/static/js/jquery-ui.min.js"></script>', u'\n <form id="form">\n ', u'<input type="hidden" name="page" id="id_page" />', u'\n <b>Status</b> ', u'<select name="status" id="id_status">\n<option value="N">New</option>\n<option value="F">Failed</option>\n<option value="A" selected="selected">Active</option>\n<option value="S">Archived</option>\n</select>', u'\n <b>From:</b> ', u'<input type="text" name="from_time" id="id_from_time" />', u'\n <b>To:</b> ', u'<input type="text" name="to_time" id="id_to_time" />', u'\n <b>Managed Object:</b> ']
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/loader_tags.py (Line: 64)
- Function: render
- 57 push = block = block_context.pop(self.name)
- 58 if block is None:
- 59 block = self
- 60 # Create new block so we can store context without thread-safety issues.
- 61 block = BlockNode(block.name, block.nodelist)
- 62 block.context = context
- 63 context['block'] = block
- 64 ==> result = block.nodelist.render(context)
- 65 if push is not None:
- 66 block_context.push(self.name, push)
- 67 context.pop()
- 68 return result
- 69
- 70 def super(self):
- Variables:
- push = <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x808bc7c10>, <Text Node: '')">Set Checkpoint</a></l'>, <Variable Node: form.media>, <Text Node: '
- <form id="form">
- '>, <Variable Node: form.page>, <Text Node: '
- <b>Status</b'>, <Variable Node: form.status>, <Text Node: '
- <b>From:</b>'>, <Variable Node: form.from_time>, <Text Node: '
- <b>To:</b> '>, <Variable Node: form.to_time>, <Text Node: '
- <b>Managed O'>, <Variable Node: form.managed_object>, <Text Node: '
- <span id="e-'>, <Variable Node: form.event_class>, <Text Node: '</span>
- <INPU'>, <django.template.defaulttags.URLNode object at 0x808bc1090>, <Text Node: '"
- });
- win'>]>
- block_context = <django.template.loader_tags.BlockContext object at 0x808bc78d0>
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- block = <Block Node: content. Contents: [<Text Node: '
- <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x808bc7c10>, <Text Node: '')">Set Checkpoint</a></l'>, <Variable Node: form.media>, <Text Node: '
- <form id="form">
- '>, <Variable Node: form.page>, <Text Node: '
- <b>Status</b'>, <Variable Node: form.status>, <Text Node: '
- <b>From:</b>'>, <Variable Node: form.from_time>, <Text Node: '
- <b>To:</b> '>, <Variable Node: form.to_time>, <Text Node: '
- <b>Managed O'>, <Variable Node: form.managed_object>, <Text Node: '
- <span id="e-'>, <Variable Node: form.event_class>, <Text Node: '</span>
- <INPU'>, <django.template.defaulttags.URLNode object at 0x808bc1090>, <Text Node: '"
- });
- win'>]>
- self = <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 73)
- Function: render_node
- 66 def compile_function_error(self, token, e):
- 67 if not hasattr(e, 'source'):
- 68 e.source = token.source
- 69
- 70 class DebugNodeList(NodeList):
- 71 def render_node(self, node, context):
- 72 try:
- 73 ==> result = node.render(context)
- 74 except TemplateSyntaxError, e:
- 75 if not hasattr(e, 'source'):
- 76 e.source = node.source
- 77 raise
- 78 except Exception, e:
- 79 from sys import exc_info
- Variables:
- node = <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- self = [<Text Node: '<!DOCTYPE html PUBLIC "-/'>, <Variable Node: LANGUAGE_CODE|default:"en-us">, <Text Node: '" xml:lang="'>, <Variable Node: LANGUAGE_CODE|default:"en-us">, <Text Node: '" '>, <If node>, <Text Node: '>
- <head>
- <title>'>, <Block Node: title. Contents: []>, <Text Node: ' | '>, <Variable Node: setup.installation_name>, <Text Node: '</title>
- '>, <If node>, <Text Node: '
- <link rel="stylesheet" t'>, <Block Node: stylesheet. Contents: [<django.template.defaulttags.LoadNode object at 0x808bd7710>, <django.template.base.SimpleNode object at 0x808bd77d0>, <Text Node: 'css/base.css'>]>, <Text Node: '" />
- <link rel="styleshee'>, <django.template.base.SimpleNode object at 0x808bd7890>, <Text Node: 'js/jquery.js"></SCRIPT>
- <'>, <Block Node: extrastyle. Contents: []>, <Text Node: '
- <!--[if lte IE 7]><link '>, <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x808bd79d0>, <django.template.base.SimpleNode object at 0x808bd7ad0>, <Text Node: 'css/ie.css'>]>, <Text Node: '" /><![endif]-->
- '>, <If node>, <Text Node: '
- <script type="text/javas'>, <django.template.defaulttags.FilterNode object at 0x808bd7f50>, <Text Node: '";</script>
- '>, <Block Node: extrahead. Contents: []>, <Text Node: '
- '>, <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>, <Text Node: '
- </head>
- '>, <django.template.defaulttags.LoadNode object at 0x808bda190>, <Text Node: '
- <body class="'>, <If node>, <Block Node: bodyclass. Contents: []>, <Text Node: '">
- <!-- Container -->
- <di'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <!-- Conten'>, <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, <Text Node: '">
- '>, <Block Node: pretitle. Contents: []>, <Text Node: '
- '>, <Block Node: content_title. Contents: [<If node>]>, <Text Node: '
- '>, <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>, <Text Node: '
- '>, <Block Node: sidebar. Contents: []>, <Text Node: '
- </div>
- <!-- END '>, <django.template.base.SimpleNode object at 0x808b12f50>, <Text Node: 'img/admin/icon_deletelink'>]
- e = TemplateSyntaxError(u"Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 744)
- Function: render
- 737 # extend_nodelist().
- 738 contains_nontext = False
- 739
- 740 def render(self, context):
- 741 bits = []
- 742 for node in self:
- 743 if isinstance(node, Node):
- 744 ==> bits.append(self.render_node(node, context))
- 745 else:
- 746 bits.append(node)
- 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
- 748
- 749 def get_nodes_by_type(self, nodetype):
- 750 "Return a list of all nodes of the given type"
- Variables:
- node = <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>
- self = [<Text Node: '<!DOCTYPE html PUBLIC "-/'>, <Variable Node: LANGUAGE_CODE|default:"en-us">, <Text Node: '" xml:lang="'>, <Variable Node: LANGUAGE_CODE|default:"en-us">, <Text Node: '" '>, <If node>, <Text Node: '>
- <head>
- <title>'>, <Block Node: title. Contents: []>, <Text Node: ' | '>, <Variable Node: setup.installation_name>, <Text Node: '</title>
- '>, <If node>, <Text Node: '
- <link rel="stylesheet" t'>, <Block Node: stylesheet. Contents: [<django.template.defaulttags.LoadNode object at 0x808bd7710>, <django.template.base.SimpleNode object at 0x808bd77d0>, <Text Node: 'css/base.css'>]>, <Text Node: '" />
- <link rel="styleshee'>, <django.template.base.SimpleNode object at 0x808bd7890>, <Text Node: 'js/jquery.js"></SCRIPT>
- <'>, <Block Node: extrastyle. Contents: []>, <Text Node: '
- <!--[if lte IE 7]><link '>, <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x808bd79d0>, <django.template.base.SimpleNode object at 0x808bd7ad0>, <Text Node: 'css/ie.css'>]>, <Text Node: '" /><![endif]-->
- '>, <If node>, <Text Node: '
- <script type="text/javas'>, <django.template.defaulttags.FilterNode object at 0x808bd7f50>, <Text Node: '";</script>
- '>, <Block Node: extrahead. Contents: []>, <Text Node: '
- '>, <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>, <Text Node: '
- </head>
- '>, <django.template.defaulttags.LoadNode object at 0x808bda190>, <Text Node: '
- <body class="'>, <If node>, <Block Node: bodyclass. Contents: []>, <Text Node: '">
- <!-- Container -->
- <di'>, <If node>, <Text Node: '
- '>, <If node>, <Text Node: '
- <!-- Conten'>, <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, <Text Node: '">
- '>, <Block Node: pretitle. Contents: []>, <Text Node: '
- '>, <Block Node: content_title. Contents: [<If node>]>, <Text Node: '
- '>, <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>, <Text Node: '
- '>, <Block Node: sidebar. Contents: []>, <Text Node: '
- </div>
- <!-- END '>, <django.template.base.SimpleNode object at 0x808b12f50>, <Text Node: 'img/admin/icon_deletelink'>]
- bits = [u'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml" lang="', u'ru', u'" xml:lang="', u'ru', u'" ', '', u'>\n<head>\n<title>', u'Events', u' | ', u'Unconfigured Installation', u'</title>\n', u'\n <link rel="icon" type="image/png" href="/static/img/logo_24x24_deep_azure.png" />\n', u'\n<link rel="stylesheet" type="text/css" href="', u'/media/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, must-revalidate" />\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 type="text/css" rel="stylesheet" href="/static/css/jquery.pager.css">\n <link type="text/css" rel="stylesheet" href="/static/apps/fm/event/css/index.css">\n <script type="text/javascript" src="/static/js/jquery.form.js"></script>\n <script type="text/javascript" src="/static/js/jquery.pager.js"></script>\n <script type="text/javascript" src="/static/apps/fm/event/js/index.js"></script>\n', u'\n', u'<meta name="robots" content="NONE,NOARCHIVE" />', u'\n</head>\n', '', u'\n\n<body class="', '', '', u'">\n<!-- Container -->\n<div id="container">\n ', u'\n <!-- Breadcrumbs -->\n <div class="breadcrumbs"><ul><li>\u041d\u0430\u0447\u0430\u043b\u043e</li><li>Fault Management</li>\n\n <li><a href="/fm/event/">Events</a></li>\n\n</ul></div>\n <!-- END Breadcrumbs -->\n ', u'\n ', '', u'\n \n <!-- Content -->\n <div id="content" class="', u'colM', u'">\n ', '', u'\n ', u'', u'\n ']
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 117)
- Function: _render
- 110
- 111 def __iter__(self):
- 112 for node in self.nodelist:
- 113 for subnode in node:
- 114 yield subnode
- 115
- 116 def _render(self, context):
- 117 ==> return self.nodelist.render(context)
- 118
- 119 def render(self, context):
- 120 "Display stage -- can be called many times"
- 121 context.render_context.push()
- 122 try:
- 123 return self._render(context)
- Variables:
- self = <django.template.base.Template object at 0x808ba5c50>
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/loader_tags.py (Line: 127)
- Function: render
- 120 blocks = dict([(n.name, n) for n in
- 121 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
- 122 block_context.add_blocks(blocks)
- 123 break
- 124
- 125 # Call Template._render explicitly so the parser context stays
- 126 # the same.
- 127 ==> return compiled_parent._render(context)
- 128
- 129 class BaseIncludeNode(Node):
- 130 def __init__(self, *args, **kwargs):
- 131 self.extra_context = kwargs.pop('extra_context', {})
- 132 self.isolated_context = kwargs.pop('isolated_context', False)
- 133 super(BaseIncludeNode, self).__init__(*args, **kwargs)
- Variables:
- node = <Variable Node: LANGUAGE_CODE|default:"en-us">
- blocks = {u'content_title': <Block Node: content_title. Contents: [<If node>]>, u'extrastyle': <Block Node: extrastyle. Contents: []>, u'bodyclass': <Block Node: bodyclass. Contents: []>, u'title': <Block Node: title. Contents: []>, u'extrahead': <Block Node: extrahead. Contents: []>, u'object-tools': <Block Node: object-tools. Contents: []>, u'stylesheet_ie': <Block Node: stylesheet_ie. Contents: [<django.template.defaulttags.LoadNode object at 0x808bd79d0>, <django.template.base.SimpleNode object at 0x808bd7ad0>, <Text Node: 'css/ie.css'>]>, u'content': <Block Node: content. Contents: [<Text Node: '
- '>, <Block Node: object-tools. Contents: []>, <Text Node: '
- '>, <Variable Node: content>, <Text Node: '
- '>]>, u'stylesheet_rtl': <Block Node: stylesheet_rtl. Contents: [<django.template.base.SimpleNode object at 0x808bd7850>, <Text Node: 'css/rtl.css'>]>, u'stylesheet': <Block Node: stylesheet. Contents: [<django.template.defaulttags.LoadNode object at 0x808bd7710>, <django.template.base.SimpleNode object at 0x808bd77d0>, <Text Node: 'css/base.css'>]>, u'breadcrumbs': <Block Node: breadcrumbs. Contents: [<Text Node: '<li>'>, <django.templatetags.i18n.TranslateNode object at 0x808bd76d0>, <Text Node: '</li>'>]>, u'blockbots': <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>, u'coltype': <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, u'sidebar': <Block Node: sidebar. Contents: []>, u'pretitle': <Block Node: pretitle. Contents: []>}
- block_context = <django.template.loader_tags.BlockContext object at 0x808bc78d0>
- n = <Block Node: sidebar. Contents: []>
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- compiled_parent = <django.template.base.Template object at 0x808ba5c50>
- self = <ExtendsNode: extends "admin/base.html">
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 73)
- Function: render_node
- 66 def compile_function_error(self, token, e):
- 67 if not hasattr(e, 'source'):
- 68 e.source = token.source
- 69
- 70 class DebugNodeList(NodeList):
- 71 def render_node(self, node, context):
- 72 try:
- 73 ==> result = node.render(context)
- 74 except TemplateSyntaxError, e:
- 75 if not hasattr(e, 'source'):
- 76 e.source = node.source
- 77 raise
- 78 except Exception, e:
- 79 from sys import exc_info
- Variables:
- node = <ExtendsNode: extends "admin/base.html">
- self = [<ExtendsNode: extends "admin/base.html">]
- e = TemplateSyntaxError(u"Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 744)
- Function: render
- 737 # extend_nodelist().
- 738 contains_nontext = False
- 739
- 740 def render(self, context):
- 741 bits = []
- 742 for node in self:
- 743 if isinstance(node, Node):
- 744 ==> bits.append(self.render_node(node, context))
- 745 else:
- 746 bits.append(node)
- 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
- 748
- 749 def get_nodes_by_type(self, nodetype):
- 750 "Return a list of all nodes of the given type"
- Variables:
- node = <ExtendsNode: extends "admin/base.html">
- self = [<ExtendsNode: extends "admin/base.html">]
- bits = []
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 117)
- Function: _render
- 110
- 111 def __iter__(self):
- 112 for node in self.nodelist:
- 113 for subnode in node:
- 114 yield subnode
- 115
- 116 def _render(self, context):
- 117 ==> return self.nodelist.render(context)
- 118
- 119 def render(self, context):
- 120 "Display stage -- can be called many times"
- 121 context.render_context.push()
- 122 try:
- 123 return self._render(context)
- Variables:
- self = <django.template.base.Template object at 0x808bc7a10>
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/loader_tags.py (Line: 127)
- Function: render
- 120 blocks = dict([(n.name, n) for n in
- 121 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
- 122 block_context.add_blocks(blocks)
- 123 break
- 124
- 125 # Call Template._render explicitly so the parser context stays
- 126 # the same.
- 127 ==> return compiled_parent._render(context)
- 128
- 129 class BaseIncludeNode(Node):
- 130 def __init__(self, *args, **kwargs):
- 131 self.extra_context = kwargs.pop('extra_context', {})
- 132 self.isolated_context = kwargs.pop('isolated_context', False)
- 133 super(BaseIncludeNode, self).__init__(*args, **kwargs)
- Variables:
- node = <ExtendsNode: extends "admin/base.html">
- block_context = <django.template.loader_tags.BlockContext object at 0x808bc78d0>
- compiled_parent = <django.template.base.Template object at 0x808bc7a10>
- self = <ExtendsNode: extends "template.html">
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 73)
- Function: render_node
- 66 def compile_function_error(self, token, e):
- 67 if not hasattr(e, 'source'):
- 68 e.source = token.source
- 69
- 70 class DebugNodeList(NodeList):
- 71 def render_node(self, node, context):
- 72 try:
- 73 ==> result = node.render(context)
- 74 except TemplateSyntaxError, e:
- 75 if not hasattr(e, 'source'):
- 76 e.source = node.source
- 77 raise
- 78 except Exception, e:
- 79 from sys import exc_info
- Variables:
- node = <ExtendsNode: extends "template.html">
- self = [<ExtendsNode: extends "template.html">]
- e = TemplateSyntaxError(u"Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 744)
- Function: render
- 737 # extend_nodelist().
- 738 contains_nontext = False
- 739
- 740 def render(self, context):
- 741 bits = []
- 742 for node in self:
- 743 if isinstance(node, Node):
- 744 ==> bits.append(self.render_node(node, context))
- 745 else:
- 746 bits.append(node)
- 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
- 748
- 749 def get_nodes_by_type(self, nodetype):
- 750 "Return a list of all nodes of the given type"
- Variables:
- node = <ExtendsNode: extends "template.html">
- self = [<ExtendsNode: extends "template.html">]
- bits = []
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 117)
- Function: _render
- 110
- 111 def __iter__(self):
- 112 for node in self.nodelist:
- 113 for subnode in node:
- 114 yield subnode
- 115
- 116 def _render(self, context):
- 117 ==> return self.nodelist.render(context)
- 118
- 119 def render(self, context):
- 120 "Display stage -- can be called many times"
- 121 context.render_context.push()
- 122 try:
- 123 return self._render(context)
- Variables:
- self = <django.template.base.Template object at 0x808bc7910>
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 123)
- Function: render
- 116 def _render(self, context):
- 117 return self.nodelist.render(context)
- 118
- 119 def render(self, context):
- 120 "Display stage -- can be called many times"
- 121 context.render_context.push()
- 122 try:
- 123 ==> return self._render(context)
- 124 finally:
- 125 context.render_context.pop()
- 126
- 127 def compile_string(template_string, origin):
- 128 "Compiles template_string into NodeList ready for rendering"
- 129 if settings.TEMPLATE_DEBUG:
- Variables:
- self = <django.template.base.Template object at 0x808bc7910>
- context = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/template/loader.py (Line: 188)
- Function: render_to_string
- 181 t = get_template(template_name)
- 182 if not context_instance:
- 183 return t.render(Context(dictionary))
- 184 # Add the dictionary to the context stack, ensuring it gets removed again
- 185 # to keep the context_instance in the same state it started in.
- 186 context_instance.update(dictionary)
- 187 try:
- 188 ==> return t.render(context_instance)
- 189 finally:
- 190 context_instance.pop()
- 191
- 192 def select_template(template_name_list):
- 193 "Given a list of template names, returns the first that can be loaded."
- 194 not_found = []
- Variables:
- template_name = ['fm/apps/event/templates/index.html', 'fm/templates/index.html', 'templates/index.html']
- t = <django.template.base.Template object at 0x808bc7910>
- dictionary = {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}
- context_instance = [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]
- ------------------------------------------------------------------------
- File: /usr/local/noc/contrib/lib/django/shortcuts/__init__.py (Line: 20)
- Function: render_to_response
- 13
- 14 def render_to_response(*args, **kwargs):
- 15 """
- 16 Returns a HttpResponse whose content is filled with the result of calling
- 17 django.template.loader.render_to_string() with the passed arguments.
- 18 """
- 19 httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
- 20 ==> return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
- 21
- 22 def render(request, *args, **kwargs):
- 23 """
- 24 Returns a HttpResponse whose content is filled with the result of calling
- 25 django.template.loader.render_to_string() with the passed arguments.
- 26 Uses a RequestContext by default.
- Variables:
- httpresponse_kwargs = {'mimetype': None}
- args = (['fm/apps/event/templates/index.html', 'fm/templates/index.html', 'templates/index.html'], {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>})
- kwargs = {'context_instance': [{'app': <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>}, {'csrf_token': <django.utils.functional.__proxy__ object at 0x808bca890>}, {'perms': <django.utils.functional.__proxy__ object at 0x808bc7850>, 'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>, 'user': <django.utils.functional.SimpleLazyObject object at 0x808bca990>}, {}, {'LANGUAGES': [('en', 'English'), ('ru', 'Russian')], 'LANGUAGE_BIDI': False, 'LANGUAGE_CODE': 'ru'}, {'MEDIA_URL': ''}, {'messages': <django.contrib.messages.storage.session.SessionStorage object at 0x808bca150>}, {'setup': {'favicon_mime': 'image/png', 'logo_width': '24', 'logo_height': '24', 'favicon_url': '/static/img/logo_24x24_deep_azure.png', 'installation_name': 'Unconfigured Installation', 'logo_url': '/static/img/logo_24x24_black.png'}}, {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}]}
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/app/application.py (Line: 174)
- Function: render
- 167 """
- 168 Render template within context
- 169 """
- 170 return render_to_response(self.get_template_path(template),
- 171 dict if dict else kwargs,
- 172 context_instance=RequestContext(request,
- 173 dict={
- 174 ==> "app": self}))
- 175
- 176 def render_template(self, template, dict={}, **kwargs):
- 177 """
- 178 Render template to string
- 179 """
- 180 tp = self.get_template_path(template)
- Variables:
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '1b235e806eee2eceaf407060e315d491',
- 'sessionid': '51da7b074c1ccdd79ec57590f65aa3c7'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
- 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=1b235e806eee2eceaf407060e315d491; sessionid=51da7b074c1ccdd79ec57590f65aa3c7',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://172.16.200.201/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11',
- 'PATH_INFO': u'/fm/event/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80413e780>,
- 'wsgi.input': <_io.BytesIO object at 0x808ba3e90>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- self = <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>
- dict = {}
- template = 'index.html'
- kwargs = {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}
- ------------------------------------------------------------------------
- File: /usr/local/noc/fm/apps/event/views.py (Line: 75)
- Function: view_index
- 68 @view(url=r"^$", url_name="index", menu="Events", access=HasPerm("view"))
- 69 def view_index(self, request):
- 70 """
- 71 Display event list and search form
- 72 """
- 73 initial = {"status": "A"}
- 74 form = self.EventSearchForm(initial=initial)
- 75 ==> return self.render(request, "index.html", form=form)
- 76
- 77 @view(url="^(?P<event_id>[0-9a-f]{24})/$", url_name="event",
- 78 access=HasPerm("view"))
- 79 def view_event(self, request, event_id):
- 80 """
- 81 Display event
- Variables:
- self = <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>
- initial = {'status': 'A'}
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '1b235e806eee2eceaf407060e315d491',
- 'sessionid': '51da7b074c1ccdd79ec57590f65aa3c7'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
- 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=1b235e806eee2eceaf407060e315d491; sessionid=51da7b074c1ccdd79ec57590f65aa3c7',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://172.16.200.201/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11',
- 'PATH_INFO': u'/fm/event/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80413e780>,
- 'wsgi.input': <_io.BytesIO object at 0x808ba3e90>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- form = <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>
- ------------------------------------------------------------------------
- File: /usr/local/noc/lib/app/site.py (Line: 210)
- Function: inner
- 203 for k in request.POST])
- 204 elif request.method == "GET":
- 205 a = dict([(k, request.GET[k])
- 206 for k in request.GET])
- 207 logging.debug("API %s %s %s" % (request.method,
- 208 request.path, a))
- 209 # Call handler
- 210 ==> r = v(request, *args, **kwargs)
- 211 except PermissionDenied, why:
- 212 return HttpResponseForbidden(why)
- 213 except Http404, why:
- 214 return HttpResponseNotFound(why)
- 215 except:
- 216 tb = get_traceback()
- Variables:
- args = ()
- view_map = {'PUT': <bound method EventAppplication.view_index of <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>>, 'POST': <bound method EventAppplication.view_index of <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>>, 'GET': <bound method EventAppplication.view_index of <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>>, 'DELETE': <bound method EventAppplication.view_index of <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>>}
- Form = <class 'django.forms.forms.Form'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x805f95450>
- v = <bound method EventAppplication.view_index of <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>>
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '1b235e806eee2eceaf407060e315d491',
- 'sessionid': '51da7b074c1ccdd79ec57590f65aa3c7'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
- 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=1b235e806eee2eceaf407060e315d491; sessionid=51da7b074c1ccdd79ec57590f65aa3c7',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://172.16.200.201/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.79 Safari/535.11',
- 'PATH_INFO': u'/fm/event/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80413e780>,
- 'wsgi.input': <_io.BytesIO object at 0x808ba3e90>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- to_log_api_call = False
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- kwargs = {}
- app = <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement