Guest User

Untitled

a guest
Nov 3rd, 2015
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UNHANDLED EXCEPTION (2015-11-03 11:53:22.193873)
  2. BRANCH: develop TIP: 5eece4f1edc3
  3. PROCESS: ./scripts/noc-web.py
  4. ERROR FINGERPRINT: e0971f12-9c2e-534d-9c6d-a44e71272dfb
  5. WORKING DIRECTORY: /opt/noc
  6. EXCEPTION: <class 'django.core.urlresolvers.NoReverseMatch'> Reverse for 'main_refbook_changelist' with arguments '()' and keyword arguments '{}' not found.
  7. START OF TRACEBACK
  8. ------------------------------------------------------------------------
  9. File: lib/python2.6/site-packages/django/core/urlresolvers.py (Line: 422)
  10. Function: _reverse_with_prefix
  11. 415 m = getattr(lookup_view, '__module__', None)
  12. 416 n = getattr(lookup_view, '__name__', None)
  13. 417 if m is not None and n is not None:
  14. 418 lookup_view_s = "%s.%s" % (m, n)
  15. 419 else:
  16. 420 lookup_view_s = lookup_view
  17. 421 raise NoReverseMatch("Reverse for '%s' with arguments '%s' and keyword "
  18. 422 ==> "arguments '%s' not found." % (lookup_view_s, args, kwargs))
  19. 423
  20. 424 class LocaleRegexURLResolver(RegexURLResolver):
  21. 425 """
  22. 426 A URL resolver that always matches the active language code as URL prefix.
  23. 427
  24. 428 Rather than taking a regex argument, we just override the ``regex``
  25. Variables:
  26. _prefix = u'/'
  27. self =
  28. <RegexURLResolver [<RegexURLResolver [<RegexURLPattern main_refbookadmin_add ^../main/refbookadmin/add/$>, <RegexURLPattern main_refbookadmin_changelist ^../main/refbookadmin/$>, <RegexURLPattern auth_group_add ^../main/group/add/legacy/$>, <RegexURLPattern auth_group_changelist ^../main/group/legacy/$>, <RegexURLPattern main_group_add ^../main/group/add/$>, <RegexURLPattern main_group_changelist ^../main/group/$>, <RegexURLPattern main_schedule_add ^../main/schedule/add/$>, <RegexURLPattern main_schedule_changelist ^../main/schedule/$>, <RegexURLPattern auth_user_add ^../main/user/add/legacy/$>, <RegexURLPattern auth_user_changelist ^../main/user/legacy/$>, <RegexURLPattern main_user_add ^../main/user/add/$>, <RegexURLPattern main_user_changelist ^../main/user/$>, <RegexURLPattern cm_prefixlist_add ^../cm/prefixlist/add/$>, <RegexURLPattern cm_prefixlist_changelist ^../cm/prefixlist/$>, <RegexURLPattern cm_objectnotify_add ^../cm/objectnotify/add/$>, <RegexURLPattern cm_objectnotify_changelist ^../cm/objectnotify/$>, <RegexURLPattern cm_rpsl_add ^../cm/rpsl/add/$>, <RegexURLPattern cm_rpsl_changelist ^../cm/rpsl/$>, <RegexURLPattern peer_as_add ^../peer/as/add/$>, <RegexURLPattern peer_as_changelist ^../peer/as/$>, <RegexURLPattern kb_userbookmark_add ^../kb/userbookmark/add/$>, <RegexURLPattern kb_userbookmark_changelist ^../kb/userbookmark/$>, <RegexURLPattern kb_globalbookmark_add ^../kb/globalbookmark/add/$>, <RegexURLPattern kb_globalbookmark_changelist ^../kb/globalbookmark/$>, <RegexURLPattern kb_kbentrytemplate_add ^../kb/kbentrytemplate/add/$>, <RegexURLPattern kb_kbentrytemplate_changelist ^../kb/kbentrytemplate/$>, <RegexURLPattern kb_kbentry_add ^../kb/kbentry/add/$>, <RegexURLPattern kb_kbentry_changelist ^../kb/kbentry/$>] (None:None) admin/>] (None:None) ^/>
  29. args = ()
  30. m = None
  31. lookup_view_s = 'main_refbook_changelist'
  32. n = None
  33. possibilities = []
  34. lookup_view = 'main_refbook_changelist'
  35. prefix_norm = u'/'
  36. prefix_args = []
  37. kwargs = {}
  38. ------------------------------------------------------------------------
  39. File: lib/python2.6/site-packages/django/core/urlresolvers.py (Line: 502)
  40. Function: reverse
  41. 495 (key, ':'.join(resolved_path)))
  42. 496 else:
  43. 497 raise NoReverseMatch("%s is not a registered namespace" %
  44. 498 key)
  45. 499 if ns_pattern:
  46. 500 resolver = get_ns_resolver(ns_pattern, resolver)
  47. 501
  48. 502 ==> return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
  49. 503
  50. 504 reverse_lazy = lazy(reverse, str)
  51. 505
  52. 506 def clear_url_caches():
  53. 507 global _resolver_cache
  54. 508 global _ns_resolver_cache
  55. Variables:
  56. ns_pattern = 'admin/'
  57. args = []
  58. viewname = 'admin:main_refbook_changelist'
  59. extra = 'admin/'
  60. view = 'main_refbook_changelist'
  61. current_app = 'admin'
  62. prefix = u'/'
  63. parts = ['main_refbook_changelist', 'admin']
  64. resolver =
  65. <RegexURLResolver [<RegexURLResolver [<RegexURLPattern main_refbookadmin_add ^../main/refbookadmin/add/$>, <RegexURLPattern main_refbookadmin_changelist ^../main/refbookadmin/$>, <RegexURLPattern auth_group_add ^../main/group/add/legacy/$>, <RegexURLPattern auth_group_changelist ^../main/group/legacy/$>, <RegexURLPattern main_group_add ^../main/group/add/$>, <RegexURLPattern main_group_changelist ^../main/group/$>, <RegexURLPattern main_schedule_add ^../main/schedule/add/$>, <RegexURLPattern main_schedule_changelist ^../main/schedule/$>, <RegexURLPattern auth_user_add ^../main/user/add/legacy/$>, <RegexURLPattern auth_user_changelist ^../main/user/legacy/$>, <RegexURLPattern main_user_add ^../main/user/add/$>, <RegexURLPattern main_user_changelist ^../main/user/$>, <RegexURLPattern cm_prefixlist_add ^../cm/prefixlist/add/$>, <RegexURLPattern cm_prefixlist_changelist ^../cm/prefixlist/$>, <RegexURLPattern cm_objectnotify_add ^../cm/objectnotify/add/$>, <RegexURLPattern cm_objectnotify_changelist ^../cm/objectnotify/$>, <RegexURLPattern cm_rpsl_add ^../cm/rpsl/add/$>, <RegexURLPattern cm_rpsl_changelist ^../cm/rpsl/$>, <RegexURLPattern peer_as_add ^../peer/as/add/$>, <RegexURLPattern peer_as_changelist ^../peer/as/$>, <RegexURLPattern kb_userbookmark_add ^../kb/userbookmark/add/$>, <RegexURLPattern kb_userbookmark_changelist ^../kb/userbookmark/$>, <RegexURLPattern kb_globalbookmark_add ^../kb/globalbookmark/add/$>, <RegexURLPattern kb_globalbookmark_changelist ^../kb/globalbookmark/$>, <RegexURLPattern kb_kbentrytemplate_add ^../kb/kbentrytemplate/add/$>, <RegexURLPattern kb_kbentrytemplate_changelist ^../kb/kbentrytemplate/$>, <RegexURLPattern kb_kbentry_add ^../kb/kbentry/add/$>, <RegexURLPattern kb_kbentry_changelist ^../kb/kbentry/$>] (None:None) admin/>] (None:None) ^/>
  66. kwargs = {}
  67. path = []
  68. ns = 'admin'
  69. urlconf = 'noc.urls'
  70. resolved_path = ['admin']
  71. ------------------------------------------------------------------------
  72. File: lib/python2.6/site-packages/django/contrib/admin/options.py (Line: 869)
  73. Function: response_change
  74. 862 self.message_user(request, msg)
  75. 863 # Figure out where to redirect. If the user has change permission,
  76. 864 # redirect to the change-list page for this object. Otherwise,
  77. 865 # redirect to the admin index.
  78. 866 if self.has_change_permission(request, None):
  79. 867 post_url = reverse('admin:%s_%s_changelist' %
  80. 868 (opts.app_label, module_name),
  81. 869 ==> current_app=self.admin_site.name)
  82. 870 else:
  83. 871 post_url = reverse('admin:index',
  84. 872 current_app=self.admin_site.name)
  85. 873 return HttpResponseRedirect(post_url)
  86. 874
  87. 875 def response_action(self, request, queryset):
  88. Variables:
  89. obj = <RefBook: E.164 Country Prefixes>
  90. pk_value = 7
  91. self = <noc.main.apps.refbookadmin.views.RefBookAdmin object at 0x50a5950>
  92. request =
  93. <WSGIRequest
  94. path:/main/refbookadmin/7/,
  95. GET:<QueryDict: {}>,
  96. POST:<QueryDict: {u'refbookfield_set-2-is_required': [u'on'], u'refbookfield_set-__prefix__-order': [u''], u'refbookfield_set-0-id': [u'22'], u'refbookfield_set-__prefix__-name': [u''], u'refbookfield_set-3-search_method': [u''], u'refbookfield_set-4-search_method': [u''], u'refbookfield_set-__prefix__-search_method': [u''], u'refbookfield_set-4-description': [u''], u'is_builtin': [u'on'], u'refbookfield_set-2-id': [u''], u'refbookfield_set-3-id': [u''], u'refbookfield_set-0-name': [u'Prefix'], u'_save': [u'\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c'], u'refbookfield_set-INITIAL_FORMS': [u'2'], u'refbookfield_set-3-ref_book': [u'7'], u'refbookfield_set-__prefix__-id': [u''], u'refbookfield_set-1-order': [u'2'], u'refbookfield_set-4-order': [u''], u'last_updated_1': [u''], u'last_updated_0': [u''], u'download_url': [u'https://cdn.nocproject.org/refbook/e164.csv'], u'refbookfield_set-2-ref_book': [u'7'], u'refbookfield_set-__prefix__-description': [u''], u'refbookfield_set-3-is_required': [u'on'], u'refbookfield_set-0-description': [u''], u'refbookfield_set-2-search_method': [u''], u'refbookfield_set-TOTAL_FORMS': [u'5'], u'csrfmiddlewaretoken': [u'ikPOaQwl8prZzakEqwvpPjHFSoH5If45'], u'refbookfield_set-0-order': [u'1'], u'refbookfield_set-__prefix__-ref_book': [u'7'], u'refbookfield_set-4-is_required': [u'on'], u'is_enabled': [u'on'], u'refbookfield_set-3-name': [u''], u'refbookfield_set-3-order': [u''], u'description': [u'E.164 Country Prefixes'], u'downloader': [u'CSV'], u'refbookfield_set-1-description': [u''], u'refbookfield_set-4-id': [u''], u'refbookfield_set-1-search_method': [u'substring'], u'refbookfield_set-2-name': [u''], u'refbookfield_set-2-description': [u''], u'refbookfield_set-0-ref_book': [u'7'], u'refbookfield_set-3-description': [u''], u'refbookfield_set-4-ref_book': [u'7'], u'refbookfield_set-4-name': [u''], u'refresh_interval': [u'90'], u'name': [u'E.164 Country Prefixes'], u'language': [u'38'], u'refbookfield_set-0-is_required': [u'on'], u'refbookfield_set-1-name': [u'Country'], u'refbookfield_set-0-search_method': [u'string'], u'refbookfield_set-2-order': [u''], u'refbookfield_set-1-id': [u'23'], u'refbookfield_set-1-is_required': [u'on'], u'next_update_1': [u''], u'next_update_0': [u''], u'refbookfield_set-1-ref_book': [u'7'], u'refbookfield_set-__prefix__-is_required': [u'on'], u'refbookfield_set-MAX_NUM_FORMS': [u'1000']}>,
  97. COOKIES:{'csrftoken': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  98. 'sessionid': '85d7bf4af09dee87dd5a1b99c63c3115'},
  99. META:{'CONTENT_LENGTH': '6815',
  100. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryPvufTl6ALUIB84Ah',
  101. 'CSRF_COOKIE': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  102. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  103. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  104. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  105. 'HTTP_CACHE_CONTROL': 'max-age=0',
  106. 'HTTP_CONNECTION': 'close',
  107. 'HTTP_COOKIE': 'sessionid=85d7bf4af09dee87dd5a1b99c63c3115; csrftoken=ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  108. 'HTTP_HOST': '172.22.0.254',
  109. 'HTTP_ORIGIN': 'http://172.22.0.254',
  110. 'HTTP_REFERER': 'http://172.22.0.254/main/refbookadmin/7/',
  111. 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
  112. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36',
  113. 'HTTP_X_SCHEME': 'http',
  114. 'PATH_INFO': u'/main/refbookadmin/7/',
  115. 'QUERY_STRING': '',
  116. 'REMOTE_ADDR': '127.0.0.1',
  117. 'REQUEST_METHOD': 'POST',
  118. 'SCRIPT_NAME': u'',
  119. 'SERVER_NAME': '172.22.0.254',
  120. 'SERVER_PORT': '80',
  121. 'SERVER_PROTOCOL': 'HTTP/1.0',
  122. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2f35810>,
  123. 'wsgi.input': <io.BytesIO object at 0x7459fb0>,
  124. 'wsgi.multiprocess': True,
  125. 'wsgi.multithread': False,
  126. 'wsgi.run_once': False,
  127. 'wsgi.url_scheme': 'http',
  128. 'wsgi.version': (1, 0)}>
  129. msg =
  130. u'Ref Book "E.164 Country Prefixes" \u0431\u044b\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d.'
  131. module_name = 'refbook'
  132. verbose_name = 'Ref Book'
  133. opts = <Options for RefBook>
  134. ------------------------------------------------------------------------
  135. File: lib/python2.6/site-packages/django/contrib/admin/options.py (Line: 1078)
  136. Function: change_view
  137. 1071 formsets.append(formset)
  138. 1072
  139. 1073 if all_valid(formsets) and form_validated:
  140. 1074 self.save_model(request, new_object, form, True)
  141. 1075 self.save_related(request, form, formsets, True)
  142. 1076 change_message = self.construct_change_message(request, form, formsets)
  143. 1077 self.log_change(request, new_object, change_message)
  144. 1078 ==> return self.response_change(request, new_object)
  145. 1079
  146. 1080 else:
  147. 1081 form = ModelForm(instance=obj)
  148. 1082 prefixes = {}
  149. 1083 for FormSet, inline in zip(self.get_formsets(request, obj), inline_instances):
  150. 1084 prefix = FormSet.get_default_prefix()
  151. Variables:
  152. model = <class 'noc.main.models.RefBook'>
  153. new_object = <RefBook: E.164 Country Prefixes>
  154. extra_context =
  155. {'app': <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>}
  156. obj = <RefBook: E.164 Country Prefixes>
  157. form = <django.forms.models.RefBookForm object at 0x73cb6d0>
  158. form_url = ''
  159. self = <noc.main.apps.refbookadmin.views.RefBookAdmin object at 0x50a5950>
  160. request =
  161. <WSGIRequest
  162. path:/main/refbookadmin/7/,
  163. GET:<QueryDict: {}>,
  164. POST:<QueryDict: {u'refbookfield_set-2-is_required': [u'on'], u'refbookfield_set-__prefix__-order': [u''], u'refbookfield_set-0-id': [u'22'], u'refbookfield_set-__prefix__-name': [u''], u'refbookfield_set-3-search_method': [u''], u'refbookfield_set-4-search_method': [u''], u'refbookfield_set-__prefix__-search_method': [u''], u'refbookfield_set-4-description': [u''], u'is_builtin': [u'on'], u'refbookfield_set-2-id': [u''], u'refbookfield_set-3-id': [u''], u'refbookfield_set-0-name': [u'Prefix'], u'_save': [u'\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c'], u'refbookfield_set-INITIAL_FORMS': [u'2'], u'refbookfield_set-3-ref_book': [u'7'], u'refbookfield_set-__prefix__-id': [u''], u'refbookfield_set-1-order': [u'2'], u'refbookfield_set-4-order': [u''], u'last_updated_1': [u''], u'last_updated_0': [u''], u'download_url': [u'https://cdn.nocproject.org/refbook/e164.csv'], u'refbookfield_set-2-ref_book': [u'7'], u'refbookfield_set-__prefix__-description': [u''], u'refbookfield_set-3-is_required': [u'on'], u'refbookfield_set-0-description': [u''], u'refbookfield_set-2-search_method': [u''], u'refbookfield_set-TOTAL_FORMS': [u'5'], u'csrfmiddlewaretoken': [u'ikPOaQwl8prZzakEqwvpPjHFSoH5If45'], u'refbookfield_set-0-order': [u'1'], u'refbookfield_set-__prefix__-ref_book': [u'7'], u'refbookfield_set-4-is_required': [u'on'], u'is_enabled': [u'on'], u'refbookfield_set-3-name': [u''], u'refbookfield_set-3-order': [u''], u'description': [u'E.164 Country Prefixes'], u'downloader': [u'CSV'], u'refbookfield_set-1-description': [u''], u'refbookfield_set-4-id': [u''], u'refbookfield_set-1-search_method': [u'substring'], u'refbookfield_set-2-name': [u''], u'refbookfield_set-2-description': [u''], u'refbookfield_set-0-ref_book': [u'7'], u'refbookfield_set-3-description': [u''], u'refbookfield_set-4-ref_book': [u'7'], u'refbookfield_set-4-name': [u''], u'refresh_interval': [u'90'], u'name': [u'E.164 Country Prefixes'], u'language': [u'38'], u'refbookfield_set-0-is_required': [u'on'], u'refbookfield_set-1-name': [u'Country'], u'refbookfield_set-0-search_method': [u'string'], u'refbookfield_set-2-order': [u''], u'refbookfield_set-1-id': [u'23'], u'refbookfield_set-1-is_required': [u'on'], u'next_update_1': [u''], u'next_update_0': [u''], u'refbookfield_set-1-ref_book': [u'7'], u'refbookfield_set-__prefix__-is_required': [u'on'], u'refbookfield_set-MAX_NUM_FORMS': [u'1000']}>,
  165. COOKIES:{'csrftoken': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  166. 'sessionid': '85d7bf4af09dee87dd5a1b99c63c3115'},
  167. META:{'CONTENT_LENGTH': '6815',
  168. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryPvufTl6ALUIB84Ah',
  169. 'CSRF_COOKIE': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  170. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  171. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  172. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  173. 'HTTP_CACHE_CONTROL': 'max-age=0',
  174. 'HTTP_CONNECTION': 'close',
  175. 'HTTP_COOKIE': 'sessionid=85d7bf4af09dee87dd5a1b99c63c3115; csrftoken=ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  176. 'HTTP_HOST': '172.22.0.254',
  177. 'HTTP_ORIGIN': 'http://172.22.0.254',
  178. 'HTTP_REFERER': 'http://172.22.0.254/main/refbookadmin/7/',
  179. 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
  180. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36',
  181. 'HTTP_X_SCHEME': 'http',
  182. 'PATH_INFO': u'/main/refbookadmin/7/',
  183. 'QUERY_STRING': '',
  184. 'REMOTE_ADDR': '127.0.0.1',
  185. 'REQUEST_METHOD': 'POST',
  186. 'SCRIPT_NAME': u'',
  187. 'SERVER_NAME': '172.22.0.254',
  188. 'SERVER_PORT': '80',
  189. 'SERVER_PROTOCOL': 'HTTP/1.0',
  190. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2f35810>,
  191. 'wsgi.input': <io.BytesIO object at 0x7459fb0>,
  192. 'wsgi.multiprocess': True,
  193. 'wsgi.multithread': False,
  194. 'wsgi.run_once': False,
  195. 'wsgi.url_scheme': 'http',
  196. 'wsgi.version': (1, 0)}>
  197. prefix = 'refbookfield_set'
  198. object_id = u'7'
  199. FormSet = <class 'django.forms.formsets.RefBookFieldFormFormSet'>
  200. prefixes = {'refbookfield_set': 1}
  201. change_message = u'\u0418\u0437\u043c\u0435\u043d\u0435\u043d is_enabled.'
  202. formsets = [<django.forms.formsets.RefBookFieldFormFormSet object at 0x7550650>]
  203. inline = <noc.main.apps.refbookadmin.views.RefBookFieldAdmin object at 0x7544cd0>
  204. inline_instances =
  205. [<noc.main.apps.refbookadmin.views.RefBookFieldAdmin object at 0x7544cd0>]
  206. form_validated = True
  207. ModelForm = <class 'django.forms.models.RefBookForm'>
  208. formset = <django.forms.formsets.RefBookFieldFormFormSet object at 0x7550650>
  209. opts = <Options for RefBook>
  210. ------------------------------------------------------------------------
  211. File: lib/python2.6/site-packages/django/db/transaction.py (Line: 224)
  212. Function: inner
  213. 217 def __exit__(self, exc_type, exc_value, traceback):
  214. 218 self.exiting(exc_value, self.using)
  215. 219
  216. 220 def __call__(self, func):
  217. 221 @wraps(func)
  218. 222 def inner(*args, **kwargs):
  219. 223 with self:
  220. 224 ==> return func(*args, **kwargs)
  221. 225 return inner
  222. 226
  223. 227 def _transaction_func(entering, exiting, using):
  224. 228 """
  225. 229 Takes 3 things, an entering function (what to do to start this block of
  226. 230 transaction management), an exiting function (what to do to end it, on both
  227. Variables:
  228. self = <django.db.transaction.Transaction object at 0x362a090>
  229. args =
  230. (<noc.main.apps.refbookadmin.views.RefBookAdmin object at 0x50a5950>,
  231. <WSGIRequest
  232. path:/main/refbookadmin/7/,
  233. GET:<QueryDict: {}>,
  234. POST:<QueryDict: {u'refbookfield_set-2-is_required': [u'on'], u'refbookfield_set-__prefix__-order': [u''], u'refbookfield_set-0-id': [u'22'], u'refbookfield_set-__prefix__-name': [u''], u'refbookfield_set-3-search_method': [u''], u'refbookfield_set-4-search_method': [u''], u'refbookfield_set-__prefix__-search_method': [u''], u'refbookfield_set-4-description': [u''], u'is_builtin': [u'on'], u'refbookfield_set-2-id': [u''], u'refbookfield_set-3-id': [u''], u'refbookfield_set-0-name': [u'Prefix'], u'_save': [u'\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c'], u'refbookfield_set-INITIAL_FORMS': [u'2'], u'refbookfield_set-3-ref_book': [u'7'], u'refbookfield_set-__prefix__-id': [u''], u'refbookfield_set-1-order': [u'2'], u'refbookfield_set-4-order': [u''], u'last_updated_1': [u''], u'last_updated_0': [u''], u'download_url': [u'https://cdn.nocproject.org/refbook/e164.csv'], u'refbookfield_set-2-ref_book': [u'7'], u'refbookfield_set-__prefix__-description': [u''], u'refbookfield_set-3-is_required': [u'on'], u'refbookfield_set-0-description': [u''], u'refbookfield_set-2-search_method': [u''], u'refbookfield_set-TOTAL_FORMS': [u'5'], u'csrfmiddlewaretoken': [u'ikPOaQwl8prZzakEqwvpPjHFSoH5If45'], u'refbookfield_set-0-order': [u'1'], u'refbookfield_set-__prefix__-ref_book': [u'7'], u'refbookfield_set-4-is_required': [u'on'], u'is_enabled': [u'on'], u'refbookfield_set-3-name': [u''], u'refbookfield_set-3-order': [u''], u'description': [u'E.164 Country Prefixes'], u'downloader': [u'CSV'], u'refbookfield_set-1-description': [u''], u'refbookfield_set-4-id': [u''], u'refbookfield_set-1-search_method': [u'substring'], u'refbookfield_set-2-name': [u''], u'refbookfield_set-2-description': [u''], u'refbookfield_set-0-ref_book': [u'7'], u'refbookfield_set-3-description': [u''], u'refbookfield_set-4-ref_book': [u'7'], u'refbookfield_set-4-name': [u''], u'refresh_interval': [u'90'], u'name': [u'E.164 Country Prefixes'], u'language': [u'38'], u'refbookfield_set-0-is_required': [u'on'], u'refbookfield_set-1-name': [u'Country'], u'refbookfield_set-0-search_method': [u'string'], u'refbookfield_set-2-order': [u''], u'refbookfield_set-1-id': [u'23'], u'refbookfield_set-1-is_required': [u'on'], u'next_update_1': [u''], u'next_update_0': [u''], u'refbookfield_set-1-ref_book': [u'7'], u'refbookfield_set-__prefix__-is_required': [u'on'], u'refbookfield_set-MAX_NUM_FORMS': [u'1000']}>,
  235. COOKIES:{'csrftoken': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  236. 'sessionid': '85d7bf4af09dee87dd5a1b99c63c3115'},
  237. META:{'CONTENT_LENGTH': '6815',
  238. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryPvufTl6ALUIB84Ah',
  239. 'CSRF_COOKIE': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  240. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  241. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  242. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  243. 'HTTP_CACHE_CONTROL': 'max-age=0',
  244. 'HTTP_CONNECTION': 'close',
  245. 'HTTP_COOKIE': 'sessionid=85d7bf4af09dee87dd5a1b99c63c3115; csrftoken=ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  246. 'HTTP_HOST': '172.22.0.254',
  247. 'HTTP_ORIGIN': 'http://172.22.0.254',
  248. 'HTTP_REFERER': 'http://172.22.0.254/main/refbookadmin/7/',
  249. 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
  250. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36',
  251. 'HTTP_X_SCHEME': 'http',
  252. 'PATH_INFO': u'/main/refbookadmin/7/',
  253. 'QUERY_STRING': '',
  254. 'REMOTE_ADDR': '127.0.0.1',
  255. 'REQUEST_METHOD': 'POST',
  256. 'SCRIPT_NAME': u'',
  257. 'SERVER_NAME': '172.22.0.254',
  258. 'SERVER_PORT': '80',
  259. 'SERVER_PROTOCOL': 'HTTP/1.0',
  260. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2f35810>,
  261. 'wsgi.input': <io.BytesIO object at 0x7459fb0>,
  262. 'wsgi.multiprocess': True,
  263. 'wsgi.multithread': False,
  264. 'wsgi.run_once': False,
  265. 'wsgi.url_scheme': 'http',
  266. 'wsgi.version': (1, 0)}>,
  267. u'7')
  268. func = <function change_view at 0x362b140>
  269. kwargs =
  270. {'extra_context': {'app': <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>}}
  271. ------------------------------------------------------------------------
  272. File: lib/python2.6/site-packages/django/utils/decorators.py (Line: 21)
  273. Function: bound_func
  274. 14 """
  275. 15 # 'func' is a function at the time it is passed to _dec, but will eventually
  276. 16 # be a method of the class it is defined it.
  277. 17 def _dec(func):
  278. 18 def _wrapper(self, *args, **kwargs):
  279. 19 @decorator
  280. 20 def bound_func(*args2, **kwargs2):
  281. 21 ==> return func(self, *args2, **kwargs2)
  282. 22 # bound_func has the signature that 'decorator' expects i.e. no
  283. 23 # 'self' argument, but it is a closure over self so it can call
  284. 24 # 'func' correctly.
  285. 25 return bound_func(*args, **kwargs)
  286. 26 # In case 'decorator' adds attributes to the function it decorates, we
  287. 27 # want to copy those. We don't have access to bound_func in this scope,
  288. Variables:
  289. args2 =
  290. (<WSGIRequest
  291. path:/main/refbookadmin/7/,
  292. GET:<QueryDict: {}>,
  293. POST:<QueryDict: {u'refbookfield_set-2-is_required': [u'on'], u'refbookfield_set-__prefix__-order': [u''], u'refbookfield_set-0-id': [u'22'], u'refbookfield_set-__prefix__-name': [u''], u'refbookfield_set-3-search_method': [u''], u'refbookfield_set-4-search_method': [u''], u'refbookfield_set-__prefix__-search_method': [u''], u'refbookfield_set-4-description': [u''], u'is_builtin': [u'on'], u'refbookfield_set-2-id': [u''], u'refbookfield_set-3-id': [u''], u'refbookfield_set-0-name': [u'Prefix'], u'_save': [u'\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c'], u'refbookfield_set-INITIAL_FORMS': [u'2'], u'refbookfield_set-3-ref_book': [u'7'], u'refbookfield_set-__prefix__-id': [u''], u'refbookfield_set-1-order': [u'2'], u'refbookfield_set-4-order': [u''], u'last_updated_1': [u''], u'last_updated_0': [u''], u'download_url': [u'https://cdn.nocproject.org/refbook/e164.csv'], u'refbookfield_set-2-ref_book': [u'7'], u'refbookfield_set-__prefix__-description': [u''], u'refbookfield_set-3-is_required': [u'on'], u'refbookfield_set-0-description': [u''], u'refbookfield_set-2-search_method': [u''], u'refbookfield_set-TOTAL_FORMS': [u'5'], u'csrfmiddlewaretoken': [u'ikPOaQwl8prZzakEqwvpPjHFSoH5If45'], u'refbookfield_set-0-order': [u'1'], u'refbookfield_set-__prefix__-ref_book': [u'7'], u'refbookfield_set-4-is_required': [u'on'], u'is_enabled': [u'on'], u'refbookfield_set-3-name': [u''], u'refbookfield_set-3-order': [u''], u'description': [u'E.164 Country Prefixes'], u'downloader': [u'CSV'], u'refbookfield_set-1-description': [u''], u'refbookfield_set-4-id': [u''], u'refbookfield_set-1-search_method': [u'substring'], u'refbookfield_set-2-name': [u''], u'refbookfield_set-2-description': [u''], u'refbookfield_set-0-ref_book': [u'7'], u'refbookfield_set-3-description': [u''], u'refbookfield_set-4-ref_book': [u'7'], u'refbookfield_set-4-name': [u''], u'refresh_interval': [u'90'], u'name': [u'E.164 Country Prefixes'], u'language': [u'38'], u'refbookfield_set-0-is_required': [u'on'], u'refbookfield_set-1-name': [u'Country'], u'refbookfield_set-0-search_method': [u'string'], u'refbookfield_set-2-order': [u''], u'refbookfield_set-1-id': [u'23'], u'refbookfield_set-1-is_required': [u'on'], u'next_update_1': [u''], u'next_update_0': [u''], u'refbookfield_set-1-ref_book': [u'7'], u'refbookfield_set-__prefix__-is_required': [u'on'], u'refbookfield_set-MAX_NUM_FORMS': [u'1000']}>,
  294. COOKIES:{'csrftoken': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  295. 'sessionid': '85d7bf4af09dee87dd5a1b99c63c3115'},
  296. META:{'CONTENT_LENGTH': '6815',
  297. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryPvufTl6ALUIB84Ah',
  298. 'CSRF_COOKIE': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  299. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  300. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  301. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  302. 'HTTP_CACHE_CONTROL': 'max-age=0',
  303. 'HTTP_CONNECTION': 'close',
  304. 'HTTP_COOKIE': 'sessionid=85d7bf4af09dee87dd5a1b99c63c3115; csrftoken=ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  305. 'HTTP_HOST': '172.22.0.254',
  306. 'HTTP_ORIGIN': 'http://172.22.0.254',
  307. 'HTTP_REFERER': 'http://172.22.0.254/main/refbookadmin/7/',
  308. 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
  309. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36',
  310. 'HTTP_X_SCHEME': 'http',
  311. 'PATH_INFO': u'/main/refbookadmin/7/',
  312. 'QUERY_STRING': '',
  313. 'REMOTE_ADDR': '127.0.0.1',
  314. 'REQUEST_METHOD': 'POST',
  315. 'SCRIPT_NAME': u'',
  316. 'SERVER_NAME': '172.22.0.254',
  317. 'SERVER_PORT': '80',
  318. 'SERVER_PROTOCOL': 'HTTP/1.0',
  319. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2f35810>,
  320. 'wsgi.input': <io.BytesIO object at 0x7459fb0>,
  321. 'wsgi.multiprocess': True,
  322. 'wsgi.multithread': False,
  323. 'wsgi.run_once': False,
  324. 'wsgi.url_scheme': 'http',
  325. 'wsgi.version': (1, 0)}>,
  326. u'7')
  327. func = <function change_view at 0x362b230>
  328. self = <noc.main.apps.refbookadmin.views.RefBookAdmin object at 0x50a5950>
  329. kwargs2 =
  330. {'extra_context': {'app': <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>}}
  331. ------------------------------------------------------------------------
  332. File: lib/python2.6/site-packages/django/utils/decorators.py (Line: 91)
  333. Function: _wrapped_view
  334. 84 if result is not None:
  335. 85 return result
  336. 86 if hasattr(middleware, 'process_view'):
  337. 87 result = middleware.process_view(request, view_func, args, kwargs)
  338. 88 if result is not None:
  339. 89 return result
  340. 90 try:
  341. 91 ==> response = view_func(request, *args, **kwargs)
  342. 92 except Exception, e:
  343. 93 if hasattr(middleware, 'process_exception'):
  344. 94 result = middleware.process_exception(request, e)
  345. 95 if result is not None:
  346. 96 return result
  347. 97 raise
  348. Variables:
  349. e =
  350. NoReverseMatch("Reverse for 'main_refbook_changelist' with arguments '()' and keyword arguments '{}' not found.",)
  351. middleware = <django.middleware.csrf.CsrfViewMiddleware object at 0x35ddc50>
  352. args = (u'7',)
  353. request =
  354. <WSGIRequest
  355. path:/main/refbookadmin/7/,
  356. GET:<QueryDict: {}>,
  357. POST:<QueryDict: {u'refbookfield_set-2-is_required': [u'on'], u'refbookfield_set-__prefix__-order': [u''], u'refbookfield_set-0-id': [u'22'], u'refbookfield_set-__prefix__-name': [u''], u'refbookfield_set-3-search_method': [u''], u'refbookfield_set-4-search_method': [u''], u'refbookfield_set-__prefix__-search_method': [u''], u'refbookfield_set-4-description': [u''], u'is_builtin': [u'on'], u'refbookfield_set-2-id': [u''], u'refbookfield_set-3-id': [u''], u'refbookfield_set-0-name': [u'Prefix'], u'_save': [u'\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c'], u'refbookfield_set-INITIAL_FORMS': [u'2'], u'refbookfield_set-3-ref_book': [u'7'], u'refbookfield_set-__prefix__-id': [u''], u'refbookfield_set-1-order': [u'2'], u'refbookfield_set-4-order': [u''], u'last_updated_1': [u''], u'last_updated_0': [u''], u'download_url': [u'https://cdn.nocproject.org/refbook/e164.csv'], u'refbookfield_set-2-ref_book': [u'7'], u'refbookfield_set-__prefix__-description': [u''], u'refbookfield_set-3-is_required': [u'on'], u'refbookfield_set-0-description': [u''], u'refbookfield_set-2-search_method': [u''], u'refbookfield_set-TOTAL_FORMS': [u'5'], u'csrfmiddlewaretoken': [u'ikPOaQwl8prZzakEqwvpPjHFSoH5If45'], u'refbookfield_set-0-order': [u'1'], u'refbookfield_set-__prefix__-ref_book': [u'7'], u'refbookfield_set-4-is_required': [u'on'], u'is_enabled': [u'on'], u'refbookfield_set-3-name': [u''], u'refbookfield_set-3-order': [u''], u'description': [u'E.164 Country Prefixes'], u'downloader': [u'CSV'], u'refbookfield_set-1-description': [u''], u'refbookfield_set-4-id': [u''], u'refbookfield_set-1-search_method': [u'substring'], u'refbookfield_set-2-name': [u''], u'refbookfield_set-2-description': [u''], u'refbookfield_set-0-ref_book': [u'7'], u'refbookfield_set-3-description': [u''], u'refbookfield_set-4-ref_book': [u'7'], u'refbookfield_set-4-name': [u''], u'refresh_interval': [u'90'], u'name': [u'E.164 Country Prefixes'], u'language': [u'38'], u'refbookfield_set-0-is_required': [u'on'], u'refbookfield_set-1-name': [u'Country'], u'refbookfield_set-0-search_method': [u'string'], u'refbookfield_set-2-order': [u''], u'refbookfield_set-1-id': [u'23'], u'refbookfield_set-1-is_required': [u'on'], u'next_update_1': [u''], u'next_update_0': [u''], u'refbookfield_set-1-ref_book': [u'7'], u'refbookfield_set-__prefix__-is_required': [u'on'], u'refbookfield_set-MAX_NUM_FORMS': [u'1000']}>,
  358. COOKIES:{'csrftoken': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  359. 'sessionid': '85d7bf4af09dee87dd5a1b99c63c3115'},
  360. META:{'CONTENT_LENGTH': '6815',
  361. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryPvufTl6ALUIB84Ah',
  362. 'CSRF_COOKIE': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  363. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  364. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  365. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  366. 'HTTP_CACHE_CONTROL': 'max-age=0',
  367. 'HTTP_CONNECTION': 'close',
  368. 'HTTP_COOKIE': 'sessionid=85d7bf4af09dee87dd5a1b99c63c3115; csrftoken=ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  369. 'HTTP_HOST': '172.22.0.254',
  370. 'HTTP_ORIGIN': 'http://172.22.0.254',
  371. 'HTTP_REFERER': 'http://172.22.0.254/main/refbookadmin/7/',
  372. 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
  373. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36',
  374. 'HTTP_X_SCHEME': 'http',
  375. 'PATH_INFO': u'/main/refbookadmin/7/',
  376. 'QUERY_STRING': '',
  377. 'REMOTE_ADDR': '127.0.0.1',
  378. 'REQUEST_METHOD': 'POST',
  379. 'SCRIPT_NAME': u'',
  380. 'SERVER_NAME': '172.22.0.254',
  381. 'SERVER_PORT': '80',
  382. 'SERVER_PROTOCOL': 'HTTP/1.0',
  383. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2f35810>,
  384. 'wsgi.input': <io.BytesIO object at 0x7459fb0>,
  385. 'wsgi.multiprocess': True,
  386. 'wsgi.multithread': False,
  387. 'wsgi.run_once': False,
  388. 'wsgi.url_scheme': 'http',
  389. 'wsgi.version': (1, 0)}>
  390. result = None
  391. kwargs =
  392. {'extra_context': {'app': <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>}}
  393. view_func = <function bound_func at 0x754fc08>
  394. ------------------------------------------------------------------------
  395. File: lib/python2.6/site-packages/django/utils/decorators.py (Line: 25)
  396. Function: _wrapper
  397. 18 def _wrapper(self, *args, **kwargs):
  398. 19 @decorator
  399. 20 def bound_func(*args2, **kwargs2):
  400. 21 return func(self, *args2, **kwargs2)
  401. 22 # bound_func has the signature that 'decorator' expects i.e. no
  402. 23 # 'self' argument, but it is a closure over self so it can call
  403. 24 # 'func' correctly.
  404. 25 ==> return bound_func(*args, **kwargs)
  405. 26 # In case 'decorator' adds attributes to the function it decorates, we
  406. 27 # want to copy those. We don't have access to bound_func in this scope,
  407. 28 # but we can cheat by using it on a dummy function.
  408. 29 @decorator
  409. 30 def dummy(*args, **kwargs):
  410. 31 pass
  411. Variables:
  412. self = <noc.main.apps.refbookadmin.views.RefBookAdmin object at 0x50a5950>
  413. args =
  414. (<WSGIRequest
  415. path:/main/refbookadmin/7/,
  416. GET:<QueryDict: {}>,
  417. POST:<QueryDict: {u'refbookfield_set-2-is_required': [u'on'], u'refbookfield_set-__prefix__-order': [u''], u'refbookfield_set-0-id': [u'22'], u'refbookfield_set-__prefix__-name': [u''], u'refbookfield_set-3-search_method': [u''], u'refbookfield_set-4-search_method': [u''], u'refbookfield_set-__prefix__-search_method': [u''], u'refbookfield_set-4-description': [u''], u'is_builtin': [u'on'], u'refbookfield_set-2-id': [u''], u'refbookfield_set-3-id': [u''], u'refbookfield_set-0-name': [u'Prefix'], u'_save': [u'\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c'], u'refbookfield_set-INITIAL_FORMS': [u'2'], u'refbookfield_set-3-ref_book': [u'7'], u'refbookfield_set-__prefix__-id': [u''], u'refbookfield_set-1-order': [u'2'], u'refbookfield_set-4-order': [u''], u'last_updated_1': [u''], u'last_updated_0': [u''], u'download_url': [u'https://cdn.nocproject.org/refbook/e164.csv'], u'refbookfield_set-2-ref_book': [u'7'], u'refbookfield_set-__prefix__-description': [u''], u'refbookfield_set-3-is_required': [u'on'], u'refbookfield_set-0-description': [u''], u'refbookfield_set-2-search_method': [u''], u'refbookfield_set-TOTAL_FORMS': [u'5'], u'csrfmiddlewaretoken': [u'ikPOaQwl8prZzakEqwvpPjHFSoH5If45'], u'refbookfield_set-0-order': [u'1'], u'refbookfield_set-__prefix__-ref_book': [u'7'], u'refbookfield_set-4-is_required': [u'on'], u'is_enabled': [u'on'], u'refbookfield_set-3-name': [u''], u'refbookfield_set-3-order': [u''], u'description': [u'E.164 Country Prefixes'], u'downloader': [u'CSV'], u'refbookfield_set-1-description': [u''], u'refbookfield_set-4-id': [u''], u'refbookfield_set-1-search_method': [u'substring'], u'refbookfield_set-2-name': [u''], u'refbookfield_set-2-description': [u''], u'refbookfield_set-0-ref_book': [u'7'], u'refbookfield_set-3-description': [u''], u'refbookfield_set-4-ref_book': [u'7'], u'refbookfield_set-4-name': [u''], u'refresh_interval': [u'90'], u'name': [u'E.164 Country Prefixes'], u'language': [u'38'], u'refbookfield_set-0-is_required': [u'on'], u'refbookfield_set-1-name': [u'Country'], u'refbookfield_set-0-search_method': [u'string'], u'refbookfield_set-2-order': [u''], u'refbookfield_set-1-id': [u'23'], u'refbookfield_set-1-is_required': [u'on'], u'next_update_1': [u''], u'next_update_0': [u''], u'refbookfield_set-1-ref_book': [u'7'], u'refbookfield_set-__prefix__-is_required': [u'on'], u'refbookfield_set-MAX_NUM_FORMS': [u'1000']}>,
  418. COOKIES:{'csrftoken': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  419. 'sessionid': '85d7bf4af09dee87dd5a1b99c63c3115'},
  420. META:{'CONTENT_LENGTH': '6815',
  421. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryPvufTl6ALUIB84Ah',
  422. 'CSRF_COOKIE': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  423. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  424. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  425. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  426. 'HTTP_CACHE_CONTROL': 'max-age=0',
  427. 'HTTP_CONNECTION': 'close',
  428. 'HTTP_COOKIE': 'sessionid=85d7bf4af09dee87dd5a1b99c63c3115; csrftoken=ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  429. 'HTTP_HOST': '172.22.0.254',
  430. 'HTTP_ORIGIN': 'http://172.22.0.254',
  431. 'HTTP_REFERER': 'http://172.22.0.254/main/refbookadmin/7/',
  432. 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
  433. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36',
  434. 'HTTP_X_SCHEME': 'http',
  435. 'PATH_INFO': u'/main/refbookadmin/7/',
  436. 'QUERY_STRING': '',
  437. 'REMOTE_ADDR': '127.0.0.1',
  438. 'REQUEST_METHOD': 'POST',
  439. 'SCRIPT_NAME': u'',
  440. 'SERVER_NAME': '172.22.0.254',
  441. 'SERVER_PORT': '80',
  442. 'SERVER_PROTOCOL': 'HTTP/1.0',
  443. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2f35810>,
  444. 'wsgi.input': <io.BytesIO object at 0x7459fb0>,
  445. 'wsgi.multiprocess': True,
  446. 'wsgi.multithread': False,
  447. 'wsgi.run_once': False,
  448. 'wsgi.url_scheme': 'http',
  449. 'wsgi.version': (1, 0)}>,
  450. u'7')
  451. bound_func = <function bound_func at 0x754fc80>
  452. func = <function change_view at 0x362b230>
  453. kwargs =
  454. {'extra_context': {'app': <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>}}
  455. decorator = <function csrf_protect at 0x35db7d0>
  456. ------------------------------------------------------------------------
  457. File: lib/app/modelapplication.py (Line: 173)
  458. Function: view_change
  459. 166
  460. 167 @view(url=r"^(\d+)/$", url_name="change", access=HasPerm("change"))
  461. 168 def view_change(self, request, object_id, extra_context=None):
  462. 169 """Display change form"""
  463. 170 return self.admin.change_view(
  464. 171 request,
  465. 172 object_id,
  466. 173 ==> extra_context=self.get_context(extra_context))
  467. 174
  468. 175 ##
  469. 176 ## Backport from ExtApplication/ExtModelApplication for lookup support
  470. 177 ##
  471. 178 ignored_params = ["_dc"]
  472. 179 page_param = "__page"
  473. Variables:
  474. self =
  475. <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>
  476. extra_context = None
  477. request =
  478. <WSGIRequest
  479. path:/main/refbookadmin/7/,
  480. GET:<QueryDict: {}>,
  481. POST:<QueryDict: {u'refbookfield_set-2-is_required': [u'on'], u'refbookfield_set-__prefix__-order': [u''], u'refbookfield_set-0-id': [u'22'], u'refbookfield_set-__prefix__-name': [u''], u'refbookfield_set-3-search_method': [u''], u'refbookfield_set-4-search_method': [u''], u'refbookfield_set-__prefix__-search_method': [u''], u'refbookfield_set-4-description': [u''], u'is_builtin': [u'on'], u'refbookfield_set-2-id': [u''], u'refbookfield_set-3-id': [u''], u'refbookfield_set-0-name': [u'Prefix'], u'_save': [u'\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c'], u'refbookfield_set-INITIAL_FORMS': [u'2'], u'refbookfield_set-3-ref_book': [u'7'], u'refbookfield_set-__prefix__-id': [u''], u'refbookfield_set-1-order': [u'2'], u'refbookfield_set-4-order': [u''], u'last_updated_1': [u''], u'last_updated_0': [u''], u'download_url': [u'https://cdn.nocproject.org/refbook/e164.csv'], u'refbookfield_set-2-ref_book': [u'7'], u'refbookfield_set-__prefix__-description': [u''], u'refbookfield_set-3-is_required': [u'on'], u'refbookfield_set-0-description': [u''], u'refbookfield_set-2-search_method': [u''], u'refbookfield_set-TOTAL_FORMS': [u'5'], u'csrfmiddlewaretoken': [u'ikPOaQwl8prZzakEqwvpPjHFSoH5If45'], u'refbookfield_set-0-order': [u'1'], u'refbookfield_set-__prefix__-ref_book': [u'7'], u'refbookfield_set-4-is_required': [u'on'], u'is_enabled': [u'on'], u'refbookfield_set-3-name': [u''], u'refbookfield_set-3-order': [u''], u'description': [u'E.164 Country Prefixes'], u'downloader': [u'CSV'], u'refbookfield_set-1-description': [u''], u'refbookfield_set-4-id': [u''], u'refbookfield_set-1-search_method': [u'substring'], u'refbookfield_set-2-name': [u''], u'refbookfield_set-2-description': [u''], u'refbookfield_set-0-ref_book': [u'7'], u'refbookfield_set-3-description': [u''], u'refbookfield_set-4-ref_book': [u'7'], u'refbookfield_set-4-name': [u''], u'refresh_interval': [u'90'], u'name': [u'E.164 Country Prefixes'], u'language': [u'38'], u'refbookfield_set-0-is_required': [u'on'], u'refbookfield_set-1-name': [u'Country'], u'refbookfield_set-0-search_method': [u'string'], u'refbookfield_set-2-order': [u''], u'refbookfield_set-1-id': [u'23'], u'refbookfield_set-1-is_required': [u'on'], u'next_update_1': [u''], u'next_update_0': [u''], u'refbookfield_set-1-ref_book': [u'7'], u'refbookfield_set-__prefix__-is_required': [u'on'], u'refbookfield_set-MAX_NUM_FORMS': [u'1000']}>,
  482. COOKIES:{'csrftoken': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  483. 'sessionid': '85d7bf4af09dee87dd5a1b99c63c3115'},
  484. META:{'CONTENT_LENGTH': '6815',
  485. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryPvufTl6ALUIB84Ah',
  486. 'CSRF_COOKIE': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  487. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  488. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  489. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  490. 'HTTP_CACHE_CONTROL': 'max-age=0',
  491. 'HTTP_CONNECTION': 'close',
  492. 'HTTP_COOKIE': 'sessionid=85d7bf4af09dee87dd5a1b99c63c3115; csrftoken=ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  493. 'HTTP_HOST': '172.22.0.254',
  494. 'HTTP_ORIGIN': 'http://172.22.0.254',
  495. 'HTTP_REFERER': 'http://172.22.0.254/main/refbookadmin/7/',
  496. 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
  497. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36',
  498. 'HTTP_X_SCHEME': 'http',
  499. 'PATH_INFO': u'/main/refbookadmin/7/',
  500. 'QUERY_STRING': '',
  501. 'REMOTE_ADDR': '127.0.0.1',
  502. 'REQUEST_METHOD': 'POST',
  503. 'SCRIPT_NAME': u'',
  504. 'SERVER_NAME': '172.22.0.254',
  505. 'SERVER_PORT': '80',
  506. 'SERVER_PROTOCOL': 'HTTP/1.0',
  507. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2f35810>,
  508. 'wsgi.input': <io.BytesIO object at 0x7459fb0>,
  509. 'wsgi.multiprocess': True,
  510. 'wsgi.multithread': False,
  511. 'wsgi.run_once': False,
  512. 'wsgi.url_scheme': 'http',
  513. 'wsgi.version': (1, 0)}>
  514. object_id = u'7'
  515. ------------------------------------------------------------------------
  516. File: lib/app/site.py (Line: 249)
  517. Function: inner
  518. 242 a = dict((k, v[0] if len(v) == 1 else v)
  519. 243 for k, v in request.GET.lists())
  520. 244 app_logger.debug("API %s %s %s",
  521. 245 request.method, request.path, a)
  522. 246 # Call handler
  523. 247 v.__dict__["hits_metric"] += 1
  524. 248 with v.__dict__["time_metric"].timer():
  525. 249 ==> r = v(request, *args, **kwargs)
  526. 250 # Dump SQL statements
  527. 251 if self.log_sql_statements:
  528. 252 from django.db import connections
  529. 253 tsc = 0
  530. 254 sc = defaultdict(int)
  531. 255 for conn in connections.all():
  532. Variables:
  533. args = (u'7',)
  534. view_map =
  535. {'DELETE': <bound method RefBookApplication.view_change of <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>>,
  536. 'GET': <bound method RefBookApplication.view_change of <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>>,
  537. 'POST': <bound method RefBookApplication.view_change of <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>>,
  538. 'PUT': <bound method RefBookApplication.view_change of <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>>}
  539. Form = <class 'django.forms.forms.Form'>
  540. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  541. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  542. self = <noc.lib.app.site.Site object at 0x351c810>
  543. v =
  544. <bound method RefBookApplication.view_change of <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>>
  545. request =
  546. <WSGIRequest
  547. path:/main/refbookadmin/7/,
  548. GET:<QueryDict: {}>,
  549. POST:<QueryDict: {u'refbookfield_set-2-is_required': [u'on'], u'refbookfield_set-__prefix__-order': [u''], u'refbookfield_set-0-id': [u'22'], u'refbookfield_set-__prefix__-name': [u''], u'refbookfield_set-3-search_method': [u''], u'refbookfield_set-4-search_method': [u''], u'refbookfield_set-__prefix__-search_method': [u''], u'refbookfield_set-4-description': [u''], u'is_builtin': [u'on'], u'refbookfield_set-2-id': [u''], u'refbookfield_set-3-id': [u''], u'refbookfield_set-0-name': [u'Prefix'], u'_save': [u'\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c'], u'refbookfield_set-INITIAL_FORMS': [u'2'], u'refbookfield_set-3-ref_book': [u'7'], u'refbookfield_set-__prefix__-id': [u''], u'refbookfield_set-1-order': [u'2'], u'refbookfield_set-4-order': [u''], u'last_updated_1': [u''], u'last_updated_0': [u''], u'download_url': [u'https://cdn.nocproject.org/refbook/e164.csv'], u'refbookfield_set-2-ref_book': [u'7'], u'refbookfield_set-__prefix__-description': [u''], u'refbookfield_set-3-is_required': [u'on'], u'refbookfield_set-0-description': [u''], u'refbookfield_set-2-search_method': [u''], u'refbookfield_set-TOTAL_FORMS': [u'5'], u'csrfmiddlewaretoken': [u'ikPOaQwl8prZzakEqwvpPjHFSoH5If45'], u'refbookfield_set-0-order': [u'1'], u'refbookfield_set-__prefix__-ref_book': [u'7'], u'refbookfield_set-4-is_required': [u'on'], u'is_enabled': [u'on'], u'refbookfield_set-3-name': [u''], u'refbookfield_set-3-order': [u''], u'description': [u'E.164 Country Prefixes'], u'downloader': [u'CSV'], u'refbookfield_set-1-description': [u''], u'refbookfield_set-4-id': [u''], u'refbookfield_set-1-search_method': [u'substring'], u'refbookfield_set-2-name': [u''], u'refbookfield_set-2-description': [u''], u'refbookfield_set-0-ref_book': [u'7'], u'refbookfield_set-3-description': [u''], u'refbookfield_set-4-ref_book': [u'7'], u'refbookfield_set-4-name': [u''], u'refresh_interval': [u'90'], u'name': [u'E.164 Country Prefixes'], u'language': [u'38'], u'refbookfield_set-0-is_required': [u'on'], u'refbookfield_set-1-name': [u'Country'], u'refbookfield_set-0-search_method': [u'string'], u'refbookfield_set-2-order': [u''], u'refbookfield_set-1-id': [u'23'], u'refbookfield_set-1-is_required': [u'on'], u'next_update_1': [u''], u'next_update_0': [u''], u'refbookfield_set-1-ref_book': [u'7'], u'refbookfield_set-__prefix__-is_required': [u'on'], u'refbookfield_set-MAX_NUM_FORMS': [u'1000']}>,
  550. COOKIES:{'csrftoken': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  551. 'sessionid': '85d7bf4af09dee87dd5a1b99c63c3115'},
  552. META:{'CONTENT_LENGTH': '6815',
  553. 'CONTENT_TYPE': 'multipart/form-data; boundary=----WebKitFormBoundaryPvufTl6ALUIB84Ah',
  554. 'CSRF_COOKIE': 'ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  555. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  556. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  557. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  558. 'HTTP_CACHE_CONTROL': 'max-age=0',
  559. 'HTTP_CONNECTION': 'close',
  560. 'HTTP_COOKIE': 'sessionid=85d7bf4af09dee87dd5a1b99c63c3115; csrftoken=ikPOaQwl8prZzakEqwvpPjHFSoH5If45',
  561. 'HTTP_HOST': '172.22.0.254',
  562. 'HTTP_ORIGIN': 'http://172.22.0.254',
  563. 'HTTP_REFERER': 'http://172.22.0.254/main/refbookadmin/7/',
  564. 'HTTP_UPGRADE_INSECURE_REQUESTS': '1',
  565. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36',
  566. 'HTTP_X_SCHEME': 'http',
  567. 'PATH_INFO': u'/main/refbookadmin/7/',
  568. 'QUERY_STRING': '',
  569. 'REMOTE_ADDR': '127.0.0.1',
  570. 'REQUEST_METHOD': 'POST',
  571. 'SCRIPT_NAME': u'',
  572. 'SERVER_NAME': '172.22.0.254',
  573. 'SERVER_PORT': '80',
  574. 'SERVER_PROTOCOL': 'HTTP/1.0',
  575. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2f35810>,
  576. 'wsgi.input': <io.BytesIO object at 0x7459fb0>,
  577. 'wsgi.multiprocess': True,
  578. 'wsgi.multithread': False,
  579. 'wsgi.run_once': False,
  580. 'wsgi.url_scheme': 'http',
  581. 'wsgi.version': (1, 0)}>
  582. app_logger = <logging.Logger instance at 0x50a6e18>
  583. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  584. to_log_api_call = False
  585. kwargs = {}
  586. nq = <function nq at 0x754fb90>
  587. app =
  588. <noc.main.apps.refbookadmin.views.RefBookApplication object at 0x50a52d0>
  589. ------------------------------------------------------------------------
  590. END OF TRACEBACK
RAW Paste Data