Advertisement
chekopay

Untitled

Mar 16th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.78 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2012-03-16 11:36:19.771602)
  2. Working directory: /usr/local/noc
  3. <class 'django.template.base.TemplateSyntaxError'>
  4. Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /usr/local/noc/contrib/lib/django/core/urlresolvers.py (Line: 337)
  8. Function: reverse
  9. 330 m = getattr(lookup_view, '__module__', None)
  10. 331 n = getattr(lookup_view, '__name__', None)
  11. 332 if m is not None and n is not None:
  12. 333 lookup_view_s = "%s.%s" % (m, n)
  13. 334 else:
  14. 335 lookup_view_s = lookup_view
  15. 336 raise NoReverseMatch("Reverse for '%s' with arguments '%s' and keyword "
  16. 337 ==> "arguments '%s' not found." % (lookup_view_s, args, kwargs))
  17. 338
  18. 339 def resolve(path, urlconf=None):
  19. 340 if urlconf is None:
  20. 341 urlconf = get_urlconf()
  21. 342 return get_resolver(urlconf).resolve(path)
  22. 343
  23. Variables:
  24. 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/>
  25. args = ()
  26. m = None
  27. lookup_view_s = 'lookup'
  28. n = None
  29. possibilities = []
  30. lookup_view = 'lookup'
  31. kwargs = {}
  32. ------------------------------------------------------------------------
  33. File: /usr/local/noc/contrib/lib/django/core/urlresolvers.py (Line: 391)
  34. Function: reverse
  35. 384 except KeyError, key:
  36. 385 if resolved_path:
  37. 386 raise NoReverseMatch("%s is not a registered namespace inside '%s'" % (key, ':'.join(resolved_path)))
  38. 387 else:
  39. 388 raise NoReverseMatch("%s is not a registered namespace" % key)
  40. 389
  41. 390 return iri_to_uri(u'%s%s' % (prefix, resolver.reverse(view,
  42. 391 ==> *args, **kwargs)))
  43. 392
  44. 393 def clear_url_caches():
  45. 394 global _resolver_cache
  46. 395 global _callable_cache
  47. 396 _resolver_cache.clear()
  48. 397 _callable_cache.clear()
  49. Variables:
  50. args = []
  51. viewname = 'sa:managedobject:lookup'
  52. extra = 'managedobject/'
  53. view = 'lookup'
  54. current_app = None
  55. prefix = u'/sa/managedobject/'
  56. parts = ['lookup', 'managedobject', 'sa']
  57. 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/>
  58. kwargs = {}
  59. path = []
  60. ns = 'managedobject'
  61. urlconf = 'noc.urls'
  62. resolved_path = ['sa', 'managedobject']
  63. ------------------------------------------------------------------------
  64. File: /usr/local/noc/lib/app/site.py (Line: 445)
  65. Function: reverse
  66. 438 """
  67. 439 if self.rx_namespace.match(url):
  68. 440 kw = kwargs.copy()
  69. 441 query = ""
  70. 442 if "QUERY" in kw:
  71. 443 query = "?" + urllib.urlencode(kw["QUERY"])
  72. 444 del kw["QUERY"]
  73. 445 ==> return reverse(url, args=args, kwargs=kw) + query
  74. 446 else:
  75. 447 return url
  76. 448
  77. 449 def sort_menu(self):
  78. 450 """
  79. 451 Sort application menu
  80. Variables:
  81. url = 'sa:managedobject:lookup'
  82. self = <noc.lib.app.site.Site object at 0x805f95450>
  83. args = ()
  84. kw = {}
  85. kwargs = {}
  86. query = ''
  87. ------------------------------------------------------------------------
  88. File: /usr/local/noc/lib/widgets.py (Line: 91)
  89. Function: render
  90. 84 }));
  91. 85 }
  92. 86 });
  93. 87 }
  94. 88 });
  95. 89 %s
  96. 90 </script>
  97. 91 ==> """%(attrs["id"],site.reverse(self.lookup_url),set_value)
  98. 92 return mark_safe("\n".join([html,js]))
  99. 93 ##
  100. 94 ## Autocomplete Tags
  101. 95 ##
  102. 96 class AutoCompleteTags(Input):
  103. 97 input_type="text"
  104. Variables:
  105. name = u'managed_object'
  106. self = <noc.lib.widgets.AutoCompleteTextInput object at 0x808bca5d0>
  107. value = None
  108. html = u'<input type="text" name="managed_object" id="id_managed_object" />'
  109. attrs = {'id': u'id_managed_object'}
  110. set_value = ''
  111. ------------------------------------------------------------------------
  112. File: /usr/local/noc/contrib/lib/django/forms/forms.py (Line: 439)
  113. Function: as_widget
  114. 432 else:
  115. 433 attrs['id'] = self.html_initial_id
  116. 434
  117. 435 if not only_initial:
  118. 436 name = self.html_name
  119. 437 else:
  120. 438 name = self.html_initial_name
  121. 439 ==> return widget.render(name, self.value(), attrs=attrs)
  122. 440
  123. 441 def as_text(self, attrs=None, **kwargs):
  124. 442 """
  125. 443 Returns a string of HTML for representing this as an <input type="text">.
  126. 444 """
  127. 445 return self.as_widget(TextInput(), attrs, **kwargs)
  128. Variables:
  129. auto_id = u'id_managed_object'
  130. widget = <noc.lib.widgets.AutoCompleteTextInput object at 0x808bca5d0>
  131. name = u'managed_object'
  132. self = <django.forms.forms.BoundField object at 0x808b12410>
  133. only_initial = False
  134. attrs = {'id': u'id_managed_object'}
  135. ------------------------------------------------------------------------
  136. File: /usr/local/noc/contrib/lib/django/forms/forms.py (Line: 408)
  137. Function: __unicode__
  138. 401 self.label = self.field.label
  139. 402 self.help_text = field.help_text or ''
  140. 403
  141. 404 def __unicode__(self):
  142. 405 """Renders this field as an HTML widget."""
  143. 406 if self.field.show_hidden_initial:
  144. 407 return self.as_widget() + self.as_hidden(only_initial=True)
  145. 408 ==> return self.as_widget()
  146. 409
  147. 410 def _errors(self):
  148. 411 """
  149. 412 Returns an ErrorList for this field. Returns an empty ErrorList
  150. 413 if there are none.
  151. 414 """
  152. Variables:
  153. self = <django.forms.forms.BoundField object at 0x808b12410>
  154. ------------------------------------------------------------------------
  155. File: /usr/local/noc/contrib/lib/django/utils/encoding.py (Line: 71)
  156. Function: force_unicode
  157. 64 if isinstance(s, unicode):
  158. 65 return s
  159. 66 if strings_only and is_protected_type(s):
  160. 67 return s
  161. 68 try:
  162. 69 if not isinstance(s, basestring,):
  163. 70 if hasattr(s, '__unicode__'):
  164. 71 ==> s = unicode(s)
  165. 72 else:
  166. 73 try:
  167. 74 s = unicode(str(s), encoding, errors)
  168. 75 except UnicodeEncodeError:
  169. 76 if not isinstance(s, Exception):
  170. 77 raise
  171. Variables:
  172. strings_only = False
  173. errors = 'strict'
  174. s = <django.forms.forms.BoundField object at 0x808b12410>
  175. encoding = 'utf-8'
  176. ------------------------------------------------------------------------
  177. File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 92)
  178. Function: render
  179. 85 return result
  180. 86
  181. 87 class DebugVariableNode(VariableNode):
  182. 88 def render(self, context):
  183. 89 try:
  184. 90 output = self.filter_expression.resolve(context)
  185. 91 output = localize(output, use_l10n=context.use_l10n)
  186. 92 ==> output = force_unicode(output)
  187. 93 except TemplateSyntaxError, e:
  188. 94 if not hasattr(e, 'source'):
  189. 95 e.source = self.source
  190. 96 raise
  191. 97 except UnicodeDecodeError:
  192. 98 return ''
  193. Variables:
  194. output = <django.forms.forms.BoundField object at 0x808b12410>
  195. self = <Variable Node: form.managed_object>
  196. 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>}]
  197. ------------------------------------------------------------------------
  198. File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 73)
  199. Function: render_node
  200. 66 def compile_function_error(self, token, e):
  201. 67 if not hasattr(e, 'source'):
  202. 68 e.source = token.source
  203. 69
  204. 70 class DebugNodeList(NodeList):
  205. 71 def render_node(self, node, context):
  206. 72 try:
  207. 73 ==> result = node.render(context)
  208. 74 except TemplateSyntaxError, e:
  209. 75 if not hasattr(e, 'source'):
  210. 76 e.source = node.source
  211. 77 raise
  212. 78 except Exception, e:
  213. 79 from sys import exc_info
  214. Variables:
  215. node = <Variable Node: form.managed_object>
  216. e = NoReverseMatch("Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
  217. self = [<Text Node: '
  218. <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x808bc7c10>, <Text Node: '')">Set Checkpoint</a></l'>, <Variable Node: form.media>, <Text Node: '
  219. <form id="form">
  220. '>, <Variable Node: form.page>, <Text Node: '
  221. <b>Status</b'>, <Variable Node: form.status>, <Text Node: '
  222. <b>From:</b>'>, <Variable Node: form.from_time>, <Text Node: '
  223. <b>To:</b> '>, <Variable Node: form.to_time>, <Text Node: '
  224. <b>Managed O'>, <Variable Node: form.managed_object>, <Text Node: '
  225. <span id="e-'>, <Variable Node: form.event_class>, <Text Node: '</span>
  226. <INPU'>, <django.template.defaulttags.URLNode object at 0x808bc1090>, <Text Node: '"
  227. });
  228. win'>]
  229. 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>}]
  230. wrapped = TemplateSyntaxError(u"Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
  231. exc_info = <built-in function exc_info>
  232. ------------------------------------------------------------------------
  233. File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 744)
  234. Function: render
  235. 737 # extend_nodelist().
  236. 738 contains_nontext = False
  237. 739
  238. 740 def render(self, context):
  239. 741 bits = []
  240. 742 for node in self:
  241. 743 if isinstance(node, Node):
  242. 744 ==> bits.append(self.render_node(node, context))
  243. 745 else:
  244. 746 bits.append(node)
  245. 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
  246. 748
  247. 749 def get_nodes_by_type(self, nodetype):
  248. 750 "Return a list of all nodes of the given type"
  249. Variables:
  250. node = <Variable Node: form.managed_object>
  251. self = [<Text Node: '
  252. <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x808bc7c10>, <Text Node: '')">Set Checkpoint</a></l'>, <Variable Node: form.media>, <Text Node: '
  253. <form id="form">
  254. '>, <Variable Node: form.page>, <Text Node: '
  255. <b>Status</b'>, <Variable Node: form.status>, <Text Node: '
  256. <b>From:</b>'>, <Variable Node: form.from_time>, <Text Node: '
  257. <b>To:</b> '>, <Variable Node: form.to_time>, <Text Node: '
  258. <b>Managed O'>, <Variable Node: form.managed_object>, <Text Node: '
  259. <span id="e-'>, <Variable Node: form.event_class>, <Text Node: '</span>
  260. <INPU'>, <django.template.defaulttags.URLNode object at 0x808bc1090>, <Text Node: '"
  261. });
  262. win'>]
  263. 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> ']
  264. 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>}]
  265. ------------------------------------------------------------------------
  266. File: /usr/local/noc/contrib/lib/django/template/loader_tags.py (Line: 64)
  267. Function: render
  268. 57 push = block = block_context.pop(self.name)
  269. 58 if block is None:
  270. 59 block = self
  271. 60 # Create new block so we can store context without thread-safety issues.
  272. 61 block = BlockNode(block.name, block.nodelist)
  273. 62 block.context = context
  274. 63 context['block'] = block
  275. 64 ==> result = block.nodelist.render(context)
  276. 65 if push is not None:
  277. 66 block_context.push(self.name, push)
  278. 67 context.pop()
  279. 68 return result
  280. 69
  281. 70 def super(self):
  282. Variables:
  283. push = <Block Node: content. Contents: [<Text Node: '
  284. <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x808bc7c10>, <Text Node: '')">Set Checkpoint</a></l'>, <Variable Node: form.media>, <Text Node: '
  285. <form id="form">
  286. '>, <Variable Node: form.page>, <Text Node: '
  287. <b>Status</b'>, <Variable Node: form.status>, <Text Node: '
  288. <b>From:</b>'>, <Variable Node: form.from_time>, <Text Node: '
  289. <b>To:</b> '>, <Variable Node: form.to_time>, <Text Node: '
  290. <b>Managed O'>, <Variable Node: form.managed_object>, <Text Node: '
  291. <span id="e-'>, <Variable Node: form.event_class>, <Text Node: '</span>
  292. <INPU'>, <django.template.defaulttags.URLNode object at 0x808bc1090>, <Text Node: '"
  293. });
  294. win'>]>
  295. block_context = <django.template.loader_tags.BlockContext object at 0x808bc78d0>
  296. 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>}]
  297. block = <Block Node: content. Contents: [<Text Node: '
  298. <ul class="object-tools"'>, <django.template.defaulttags.URLNode object at 0x808bc7c10>, <Text Node: '')">Set Checkpoint</a></l'>, <Variable Node: form.media>, <Text Node: '
  299. <form id="form">
  300. '>, <Variable Node: form.page>, <Text Node: '
  301. <b>Status</b'>, <Variable Node: form.status>, <Text Node: '
  302. <b>From:</b>'>, <Variable Node: form.from_time>, <Text Node: '
  303. <b>To:</b> '>, <Variable Node: form.to_time>, <Text Node: '
  304. <b>Managed O'>, <Variable Node: form.managed_object>, <Text Node: '
  305. <span id="e-'>, <Variable Node: form.event_class>, <Text Node: '</span>
  306. <INPU'>, <django.template.defaulttags.URLNode object at 0x808bc1090>, <Text Node: '"
  307. });
  308. win'>]>
  309. self = <Block Node: content. Contents: [<Text Node: '
  310. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  311. '>, <Variable Node: content>, <Text Node: '
  312. '>]>
  313. ------------------------------------------------------------------------
  314. File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 73)
  315. Function: render_node
  316. 66 def compile_function_error(self, token, e):
  317. 67 if not hasattr(e, 'source'):
  318. 68 e.source = token.source
  319. 69
  320. 70 class DebugNodeList(NodeList):
  321. 71 def render_node(self, node, context):
  322. 72 try:
  323. 73 ==> result = node.render(context)
  324. 74 except TemplateSyntaxError, e:
  325. 75 if not hasattr(e, 'source'):
  326. 76 e.source = node.source
  327. 77 raise
  328. 78 except Exception, e:
  329. 79 from sys import exc_info
  330. Variables:
  331. node = <Block Node: content. Contents: [<Text Node: '
  332. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  333. '>, <Variable Node: content>, <Text Node: '
  334. '>]>
  335. 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: '>
  336. <head>
  337. <title>'>, <Block Node: title. Contents: []>, <Text Node: ' | '>, <Variable Node: setup.installation_name>, <Text Node: '</title>
  338. '>, <If node>, <Text Node: '
  339. <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: '" />
  340. <link rel="styleshee'>, <django.template.base.SimpleNode object at 0x808bd7890>, <Text Node: 'js/jquery.js"></SCRIPT>
  341. <'>, <Block Node: extrastyle. Contents: []>, <Text Node: '
  342. <!--[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]-->
  343. '>, <If node>, <Text Node: '
  344. <script type="text/javas'>, <django.template.defaulttags.FilterNode object at 0x808bd7f50>, <Text Node: '";</script>
  345. '>, <Block Node: extrahead. Contents: []>, <Text Node: '
  346. '>, <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>, <Text Node: '
  347. </head>
  348. '>, <django.template.defaulttags.LoadNode object at 0x808bda190>, <Text Node: '
  349.  
  350. <body class="'>, <If node>, <Block Node: bodyclass. Contents: []>, <Text Node: '">
  351. <!-- Container -->
  352. <di'>, <If node>, <Text Node: '
  353. '>, <If node>, <Text Node: '
  354.  
  355. <!-- Conten'>, <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, <Text Node: '">
  356. '>, <Block Node: pretitle. Contents: []>, <Text Node: '
  357. '>, <Block Node: content_title. Contents: [<If node>]>, <Text Node: '
  358. '>, <Block Node: content. Contents: [<Text Node: '
  359. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  360. '>, <Variable Node: content>, <Text Node: '
  361. '>]>, <Text Node: '
  362. '>, <Block Node: sidebar. Contents: []>, <Text Node: '
  363. </div>
  364. <!-- END '>, <django.template.base.SimpleNode object at 0x808b12f50>, <Text Node: 'img/admin/icon_deletelink'>]
  365. e = TemplateSyntaxError(u"Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
  366. 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>}]
  367. ------------------------------------------------------------------------
  368. File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 744)
  369. Function: render
  370. 737 # extend_nodelist().
  371. 738 contains_nontext = False
  372. 739
  373. 740 def render(self, context):
  374. 741 bits = []
  375. 742 for node in self:
  376. 743 if isinstance(node, Node):
  377. 744 ==> bits.append(self.render_node(node, context))
  378. 745 else:
  379. 746 bits.append(node)
  380. 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
  381. 748
  382. 749 def get_nodes_by_type(self, nodetype):
  383. 750 "Return a list of all nodes of the given type"
  384. Variables:
  385. node = <Block Node: content. Contents: [<Text Node: '
  386. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  387. '>, <Variable Node: content>, <Text Node: '
  388. '>]>
  389. 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: '>
  390. <head>
  391. <title>'>, <Block Node: title. Contents: []>, <Text Node: ' | '>, <Variable Node: setup.installation_name>, <Text Node: '</title>
  392. '>, <If node>, <Text Node: '
  393. <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: '" />
  394. <link rel="styleshee'>, <django.template.base.SimpleNode object at 0x808bd7890>, <Text Node: 'js/jquery.js"></SCRIPT>
  395. <'>, <Block Node: extrastyle. Contents: []>, <Text Node: '
  396. <!--[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]-->
  397. '>, <If node>, <Text Node: '
  398. <script type="text/javas'>, <django.template.defaulttags.FilterNode object at 0x808bd7f50>, <Text Node: '";</script>
  399. '>, <Block Node: extrahead. Contents: []>, <Text Node: '
  400. '>, <Block Node: blockbots. Contents: [<Text Node: '<meta name="robots" conte'>]>, <Text Node: '
  401. </head>
  402. '>, <django.template.defaulttags.LoadNode object at 0x808bda190>, <Text Node: '
  403.  
  404. <body class="'>, <If node>, <Block Node: bodyclass. Contents: []>, <Text Node: '">
  405. <!-- Container -->
  406. <di'>, <If node>, <Text Node: '
  407. '>, <If node>, <Text Node: '
  408.  
  409. <!-- Conten'>, <Block Node: coltype. Contents: [<Text Node: 'colM'>]>, <Text Node: '">
  410. '>, <Block Node: pretitle. Contents: []>, <Text Node: '
  411. '>, <Block Node: content_title. Contents: [<If node>]>, <Text Node: '
  412. '>, <Block Node: content. Contents: [<Text Node: '
  413. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  414. '>, <Variable Node: content>, <Text Node: '
  415. '>]>, <Text Node: '
  416. '>, <Block Node: sidebar. Contents: []>, <Text Node: '
  417. </div>
  418. <!-- END '>, <django.template.base.SimpleNode object at 0x808b12f50>, <Text Node: 'img/admin/icon_deletelink'>]
  419. 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 ']
  420. 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>}]
  421. ------------------------------------------------------------------------
  422. File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 117)
  423. Function: _render
  424. 110
  425. 111 def __iter__(self):
  426. 112 for node in self.nodelist:
  427. 113 for subnode in node:
  428. 114 yield subnode
  429. 115
  430. 116 def _render(self, context):
  431. 117 ==> return self.nodelist.render(context)
  432. 118
  433. 119 def render(self, context):
  434. 120 "Display stage -- can be called many times"
  435. 121 context.render_context.push()
  436. 122 try:
  437. 123 return self._render(context)
  438. Variables:
  439. self = <django.template.base.Template object at 0x808ba5c50>
  440. 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>}]
  441. ------------------------------------------------------------------------
  442. File: /usr/local/noc/contrib/lib/django/template/loader_tags.py (Line: 127)
  443. Function: render
  444. 120 blocks = dict([(n.name, n) for n in
  445. 121 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  446. 122 block_context.add_blocks(blocks)
  447. 123 break
  448. 124
  449. 125 # Call Template._render explicitly so the parser context stays
  450. 126 # the same.
  451. 127 ==> return compiled_parent._render(context)
  452. 128
  453. 129 class BaseIncludeNode(Node):
  454. 130 def __init__(self, *args, **kwargs):
  455. 131 self.extra_context = kwargs.pop('extra_context', {})
  456. 132 self.isolated_context = kwargs.pop('isolated_context', False)
  457. 133 super(BaseIncludeNode, self).__init__(*args, **kwargs)
  458. Variables:
  459. node = <Variable Node: LANGUAGE_CODE|default:"en-us">
  460. 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: '
  461. '>, <Block Node: object-tools. Contents: []>, <Text Node: '
  462. '>, <Variable Node: content>, <Text Node: '
  463. '>]>, 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: []>}
  464. block_context = <django.template.loader_tags.BlockContext object at 0x808bc78d0>
  465. n = <Block Node: sidebar. Contents: []>
  466. 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>}]
  467. compiled_parent = <django.template.base.Template object at 0x808ba5c50>
  468. self = <ExtendsNode: extends "admin/base.html">
  469. ------------------------------------------------------------------------
  470. File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 73)
  471. Function: render_node
  472. 66 def compile_function_error(self, token, e):
  473. 67 if not hasattr(e, 'source'):
  474. 68 e.source = token.source
  475. 69
  476. 70 class DebugNodeList(NodeList):
  477. 71 def render_node(self, node, context):
  478. 72 try:
  479. 73 ==> result = node.render(context)
  480. 74 except TemplateSyntaxError, e:
  481. 75 if not hasattr(e, 'source'):
  482. 76 e.source = node.source
  483. 77 raise
  484. 78 except Exception, e:
  485. 79 from sys import exc_info
  486. Variables:
  487. node = <ExtendsNode: extends "admin/base.html">
  488. self = [<ExtendsNode: extends "admin/base.html">]
  489. e = TemplateSyntaxError(u"Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
  490. 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>}]
  491. ------------------------------------------------------------------------
  492. File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 744)
  493. Function: render
  494. 737 # extend_nodelist().
  495. 738 contains_nontext = False
  496. 739
  497. 740 def render(self, context):
  498. 741 bits = []
  499. 742 for node in self:
  500. 743 if isinstance(node, Node):
  501. 744 ==> bits.append(self.render_node(node, context))
  502. 745 else:
  503. 746 bits.append(node)
  504. 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
  505. 748
  506. 749 def get_nodes_by_type(self, nodetype):
  507. 750 "Return a list of all nodes of the given type"
  508. Variables:
  509. node = <ExtendsNode: extends "admin/base.html">
  510. self = [<ExtendsNode: extends "admin/base.html">]
  511. bits = []
  512. 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>}]
  513. ------------------------------------------------------------------------
  514. File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 117)
  515. Function: _render
  516. 110
  517. 111 def __iter__(self):
  518. 112 for node in self.nodelist:
  519. 113 for subnode in node:
  520. 114 yield subnode
  521. 115
  522. 116 def _render(self, context):
  523. 117 ==> return self.nodelist.render(context)
  524. 118
  525. 119 def render(self, context):
  526. 120 "Display stage -- can be called many times"
  527. 121 context.render_context.push()
  528. 122 try:
  529. 123 return self._render(context)
  530. Variables:
  531. self = <django.template.base.Template object at 0x808bc7a10>
  532. 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>}]
  533. ------------------------------------------------------------------------
  534. File: /usr/local/noc/contrib/lib/django/template/loader_tags.py (Line: 127)
  535. Function: render
  536. 120 blocks = dict([(n.name, n) for n in
  537. 121 compiled_parent.nodelist.get_nodes_by_type(BlockNode)])
  538. 122 block_context.add_blocks(blocks)
  539. 123 break
  540. 124
  541. 125 # Call Template._render explicitly so the parser context stays
  542. 126 # the same.
  543. 127 ==> return compiled_parent._render(context)
  544. 128
  545. 129 class BaseIncludeNode(Node):
  546. 130 def __init__(self, *args, **kwargs):
  547. 131 self.extra_context = kwargs.pop('extra_context', {})
  548. 132 self.isolated_context = kwargs.pop('isolated_context', False)
  549. 133 super(BaseIncludeNode, self).__init__(*args, **kwargs)
  550. Variables:
  551. node = <ExtendsNode: extends "admin/base.html">
  552. block_context = <django.template.loader_tags.BlockContext object at 0x808bc78d0>
  553. compiled_parent = <django.template.base.Template object at 0x808bc7a10>
  554. self = <ExtendsNode: extends "template.html">
  555. 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>}]
  556. ------------------------------------------------------------------------
  557. File: /usr/local/noc/contrib/lib/django/template/debug.py (Line: 73)
  558. Function: render_node
  559. 66 def compile_function_error(self, token, e):
  560. 67 if not hasattr(e, 'source'):
  561. 68 e.source = token.source
  562. 69
  563. 70 class DebugNodeList(NodeList):
  564. 71 def render_node(self, node, context):
  565. 72 try:
  566. 73 ==> result = node.render(context)
  567. 74 except TemplateSyntaxError, e:
  568. 75 if not hasattr(e, 'source'):
  569. 76 e.source = node.source
  570. 77 raise
  571. 78 except Exception, e:
  572. 79 from sys import exc_info
  573. Variables:
  574. node = <ExtendsNode: extends "template.html">
  575. self = [<ExtendsNode: extends "template.html">]
  576. e = TemplateSyntaxError(u"Caught NoReverseMatch while rendering: Reverse for 'lookup' with arguments '()' and keyword arguments '{}' not found.",)
  577. 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>}]
  578. ------------------------------------------------------------------------
  579. File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 744)
  580. Function: render
  581. 737 # extend_nodelist().
  582. 738 contains_nontext = False
  583. 739
  584. 740 def render(self, context):
  585. 741 bits = []
  586. 742 for node in self:
  587. 743 if isinstance(node, Node):
  588. 744 ==> bits.append(self.render_node(node, context))
  589. 745 else:
  590. 746 bits.append(node)
  591. 747 return mark_safe(''.join([force_unicode(b) for b in bits]))
  592. 748
  593. 749 def get_nodes_by_type(self, nodetype):
  594. 750 "Return a list of all nodes of the given type"
  595. Variables:
  596. node = <ExtendsNode: extends "template.html">
  597. self = [<ExtendsNode: extends "template.html">]
  598. bits = []
  599. 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>}]
  600. ------------------------------------------------------------------------
  601. File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 117)
  602. Function: _render
  603. 110
  604. 111 def __iter__(self):
  605. 112 for node in self.nodelist:
  606. 113 for subnode in node:
  607. 114 yield subnode
  608. 115
  609. 116 def _render(self, context):
  610. 117 ==> return self.nodelist.render(context)
  611. 118
  612. 119 def render(self, context):
  613. 120 "Display stage -- can be called many times"
  614. 121 context.render_context.push()
  615. 122 try:
  616. 123 return self._render(context)
  617. Variables:
  618. self = <django.template.base.Template object at 0x808bc7910>
  619. 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>}]
  620. ------------------------------------------------------------------------
  621. File: /usr/local/noc/contrib/lib/django/template/base.py (Line: 123)
  622. Function: render
  623. 116 def _render(self, context):
  624. 117 return self.nodelist.render(context)
  625. 118
  626. 119 def render(self, context):
  627. 120 "Display stage -- can be called many times"
  628. 121 context.render_context.push()
  629. 122 try:
  630. 123 ==> return self._render(context)
  631. 124 finally:
  632. 125 context.render_context.pop()
  633. 126
  634. 127 def compile_string(template_string, origin):
  635. 128 "Compiles template_string into NodeList ready for rendering"
  636. 129 if settings.TEMPLATE_DEBUG:
  637. Variables:
  638. self = <django.template.base.Template object at 0x808bc7910>
  639. 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>}]
  640. ------------------------------------------------------------------------
  641. File: /usr/local/noc/contrib/lib/django/template/loader.py (Line: 188)
  642. Function: render_to_string
  643. 181 t = get_template(template_name)
  644. 182 if not context_instance:
  645. 183 return t.render(Context(dictionary))
  646. 184 # Add the dictionary to the context stack, ensuring it gets removed again
  647. 185 # to keep the context_instance in the same state it started in.
  648. 186 context_instance.update(dictionary)
  649. 187 try:
  650. 188 ==> return t.render(context_instance)
  651. 189 finally:
  652. 190 context_instance.pop()
  653. 191
  654. 192 def select_template(template_name_list):
  655. 193 "Given a list of template names, returns the first that can be loaded."
  656. 194 not_found = []
  657. Variables:
  658. template_name = ['fm/apps/event/templates/index.html', 'fm/templates/index.html', 'templates/index.html']
  659. t = <django.template.base.Template object at 0x808bc7910>
  660. dictionary = {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}
  661. 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>}]
  662. ------------------------------------------------------------------------
  663. File: /usr/local/noc/contrib/lib/django/shortcuts/__init__.py (Line: 20)
  664. Function: render_to_response
  665. 13
  666. 14 def render_to_response(*args, **kwargs):
  667. 15 """
  668. 16 Returns a HttpResponse whose content is filled with the result of calling
  669. 17 django.template.loader.render_to_string() with the passed arguments.
  670. 18 """
  671. 19 httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)}
  672. 20 ==> return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs)
  673. 21
  674. 22 def render(request, *args, **kwargs):
  675. 23 """
  676. 24 Returns a HttpResponse whose content is filled with the result of calling
  677. 25 django.template.loader.render_to_string() with the passed arguments.
  678. 26 Uses a RequestContext by default.
  679. Variables:
  680. httpresponse_kwargs = {'mimetype': None}
  681. args = (['fm/apps/event/templates/index.html', 'fm/templates/index.html', 'templates/index.html'], {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>})
  682. 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>}]}
  683. ------------------------------------------------------------------------
  684. File: /usr/local/noc/lib/app/application.py (Line: 174)
  685. Function: render
  686. 167 """
  687. 168 Render template within context
  688. 169 """
  689. 170 return render_to_response(self.get_template_path(template),
  690. 171 dict if dict else kwargs,
  691. 172 context_instance=RequestContext(request,
  692. 173 dict={
  693. 174 ==> "app": self}))
  694. 175
  695. 176 def render_template(self, template, dict={}, **kwargs):
  696. 177 """
  697. 178 Render template to string
  698. 179 """
  699. 180 tp = self.get_template_path(template)
  700. Variables:
  701. request = <WSGIRequest
  702. GET:<QueryDict: {}>,
  703. POST:<QueryDict: {}>,
  704. COOKIES:{'csrftoken': '1b235e806eee2eceaf407060e315d491',
  705. 'sessionid': '51da7b074c1ccdd79ec57590f65aa3c7'},
  706. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  707. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  708. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  709. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  710. 'HTTP_CONNECTION': 'close',
  711. 'HTTP_COOKIE': 'csrftoken=1b235e806eee2eceaf407060e315d491; sessionid=51da7b074c1ccdd79ec57590f65aa3c7',
  712. 'HTTP_HOST': '127.0.0.1:8000',
  713. 'HTTP_REFERER': 'http://172.16.200.201/main/desktop/',
  714. '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',
  715. 'PATH_INFO': u'/fm/event/',
  716. 'QUERY_STRING': '',
  717. 'REMOTE_ADDR': '127.0.0.1',
  718. 'REQUEST_METHOD': 'GET',
  719. 'SCRIPT_NAME': u'',
  720. 'SERVER_NAME': '127.0.0.1',
  721. 'SERVER_PORT': '8000',
  722. 'SERVER_PROTOCOL': 'HTTP/1.0',
  723. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80413e780>,
  724. 'wsgi.input': <_io.BytesIO object at 0x808ba3e90>,
  725. 'wsgi.multiprocess': True,
  726. 'wsgi.multithread': False,
  727. 'wsgi.run_once': False,
  728. 'wsgi.url_scheme': 'http',
  729. 'wsgi.version': (1, 0)}>
  730. self = <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>
  731. dict = {}
  732. template = 'index.html'
  733. kwargs = {'form': <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>}
  734. ------------------------------------------------------------------------
  735. File: /usr/local/noc/fm/apps/event/views.py (Line: 75)
  736. Function: view_index
  737. 68 @view(url=r"^$", url_name="index", menu="Events", access=HasPerm("view"))
  738. 69 def view_index(self, request):
  739. 70 """
  740. 71 Display event list and search form
  741. 72 """
  742. 73 initial = {"status": "A"}
  743. 74 form = self.EventSearchForm(initial=initial)
  744. 75 ==> return self.render(request, "index.html", form=form)
  745. 76
  746. 77 @view(url="^(?P<event_id>[0-9a-f]{24})/$", url_name="event",
  747. 78 access=HasPerm("view"))
  748. 79 def view_event(self, request, event_id):
  749. 80 """
  750. 81 Display event
  751. Variables:
  752. self = <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>
  753. initial = {'status': 'A'}
  754. request = <WSGIRequest
  755. GET:<QueryDict: {}>,
  756. POST:<QueryDict: {}>,
  757. COOKIES:{'csrftoken': '1b235e806eee2eceaf407060e315d491',
  758. 'sessionid': '51da7b074c1ccdd79ec57590f65aa3c7'},
  759. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  760. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  761. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  762. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  763. 'HTTP_CONNECTION': 'close',
  764. 'HTTP_COOKIE': 'csrftoken=1b235e806eee2eceaf407060e315d491; sessionid=51da7b074c1ccdd79ec57590f65aa3c7',
  765. 'HTTP_HOST': '127.0.0.1:8000',
  766. 'HTTP_REFERER': 'http://172.16.200.201/main/desktop/',
  767. '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',
  768. 'PATH_INFO': u'/fm/event/',
  769. 'QUERY_STRING': '',
  770. 'REMOTE_ADDR': '127.0.0.1',
  771. 'REQUEST_METHOD': 'GET',
  772. 'SCRIPT_NAME': u'',
  773. 'SERVER_NAME': '127.0.0.1',
  774. 'SERVER_PORT': '8000',
  775. 'SERVER_PROTOCOL': 'HTTP/1.0',
  776. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80413e780>,
  777. 'wsgi.input': <_io.BytesIO object at 0x808ba3e90>,
  778. 'wsgi.multiprocess': True,
  779. 'wsgi.multithread': False,
  780. 'wsgi.run_once': False,
  781. 'wsgi.url_scheme': 'http',
  782. 'wsgi.version': (1, 0)}>
  783. form = <noc.fm.apps.event.views.EventSearchForm object at 0x808ba5fd0>
  784. ------------------------------------------------------------------------
  785. File: /usr/local/noc/lib/app/site.py (Line: 210)
  786. Function: inner
  787. 203 for k in request.POST])
  788. 204 elif request.method == "GET":
  789. 205 a = dict([(k, request.GET[k])
  790. 206 for k in request.GET])
  791. 207 logging.debug("API %s %s %s" % (request.method,
  792. 208 request.path, a))
  793. 209 # Call handler
  794. 210 ==> r = v(request, *args, **kwargs)
  795. 211 except PermissionDenied, why:
  796. 212 return HttpResponseForbidden(why)
  797. 213 except Http404, why:
  798. 214 return HttpResponseNotFound(why)
  799. 215 except:
  800. 216 tb = get_traceback()
  801. Variables:
  802. args = ()
  803. 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>>}
  804. Form = <class 'django.forms.forms.Form'>
  805. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  806. self = <noc.lib.app.site.Site object at 0x805f95450>
  807. v = <bound method EventAppplication.view_index of <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>>
  808. request = <WSGIRequest
  809. GET:<QueryDict: {}>,
  810. POST:<QueryDict: {}>,
  811. COOKIES:{'csrftoken': '1b235e806eee2eceaf407060e315d491',
  812. 'sessionid': '51da7b074c1ccdd79ec57590f65aa3c7'},
  813. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  814. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  815. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  816. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  817. 'HTTP_CONNECTION': 'close',
  818. 'HTTP_COOKIE': 'csrftoken=1b235e806eee2eceaf407060e315d491; sessionid=51da7b074c1ccdd79ec57590f65aa3c7',
  819. 'HTTP_HOST': '127.0.0.1:8000',
  820. 'HTTP_REFERER': 'http://172.16.200.201/main/desktop/',
  821. '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',
  822. 'PATH_INFO': u'/fm/event/',
  823. 'QUERY_STRING': '',
  824. 'REMOTE_ADDR': '127.0.0.1',
  825. 'REQUEST_METHOD': 'GET',
  826. 'SCRIPT_NAME': u'',
  827. 'SERVER_NAME': '127.0.0.1',
  828. 'SERVER_PORT': '8000',
  829. 'SERVER_PROTOCOL': 'HTTP/1.0',
  830. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80413e780>,
  831. 'wsgi.input': <_io.BytesIO object at 0x808ba3e90>,
  832. 'wsgi.multiprocess': True,
  833. 'wsgi.multithread': False,
  834. 'wsgi.run_once': False,
  835. 'wsgi.url_scheme': 'http',
  836. 'wsgi.version': (1, 0)}>
  837. to_log_api_call = False
  838. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  839. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  840. kwargs = {}
  841. app = <noc.fm.apps.event.views.EventAppplication object at 0x80865b410>
  842. ------------------------------------------------------------------------
  843. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement