Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2015-04-29 16:21:29.522038)
- BRANCH: develop TIP: e6d5d4ef183f
- PROCESS: ./scripts/noc-web.py
- ERROR FINGERPRINT: 1b0ef63b-8027-5640-afa7-95d1e234f0b2
- WORKING DIRECTORY: /usr/local/noc
- EXCEPTION: <class 'django.core.exceptions.PermissionDenied'>
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/contrib/admin/actions.py (Line: 28)
- Function: delete_selected
- 21 Next, it delets all selected objects and redirects back to the change list.
- 22 """
- 23 opts = modeladmin.model._meta
- 24 app_label = opts.app_label
- 25
- 26 # Check that the user has delete permission for the actual model
- 27 if not modeladmin.has_delete_permission(request):
- 28 ==> raise PermissionDenied
- 29
- 30 using = router.db_for_write(modeladmin.model)
- 31
- 32 # Populate deletable_objects, a data structure of all related objects that
- 33 # will also be deleted.
- 34 deletable_objects, perms_needed, protected = get_deleted_objects(
- Variables:
- request =
- <WSGIRequest
- path:/main/user/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO'], u'_selected_action': [u'3'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'sessionid': '1244c50af4246d88f606fb93fc179631'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CACHE_CONTROL': 'max-age=0',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=1244c50af4246d88f606fb93fc179631; csrftoken=elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_HOST': '10.34.58.156',
- 'HTTP_ORIGIN': 'http://10.34.58.156',
- 'HTTP_REFERER': 'http://10.34.58.156/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.34.58.156',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80982e9c0>,
- 'wsgi.input': <_io.BytesIO object at 0x812520830>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- queryset = [<User: test01>]
- modeladmin = <noc.main.apps.user.views.UserAdmin object at 0x80d893210>
- opts = <Options for User>
- app_label = 'auth'
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/contrib/admin/options.py (Line: 928)
- Function: response_action
- 921 self.message_user(request, msg)
- 922 return None
- 923
- 924 if not select_across:
- 925 # Perform the action only on the selected objects
- 926 queryset = queryset.filter(pk__in=selected)
- 927
- 928 ==> response = func(self, request, queryset)
- 929
- 930 # Actions may return an HttpResponse, which will be used as the
- 931 # response from the POST. If not, we'll be a good little HTTP
- 932 # citizen and redirect back to the changelist page.
- 933 if isinstance(response, HttpResponse):
- 934 return response
- Variables:
- action_index = 0
- description = <django.utils.functional.__proxy__ object at 0x80aba0a50>
- queryset = [<User: test01>]
- self = <noc.main.apps.user.views.UserAdmin object at 0x80d893210>
- selected = [u'3']
- action_form = <django.contrib.admin.helpers.ActionForm object at 0x8126d9150>
- request =
- <WSGIRequest
- path:/main/user/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO'], u'_selected_action': [u'3'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'sessionid': '1244c50af4246d88f606fb93fc179631'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CACHE_CONTROL': 'max-age=0',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=1244c50af4246d88f606fb93fc179631; csrftoken=elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_HOST': '10.34.58.156',
- 'HTTP_ORIGIN': 'http://10.34.58.156',
- 'HTTP_REFERER': 'http://10.34.58.156/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.34.58.156',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80982e9c0>,
- 'wsgi.input': <_io.BytesIO object at 0x812520830>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- select_across = False
- func = <function delete_selected at 0x80aba2140>
- action = u'delete_selected'
- data =
- <QueryDict: {u'action': [u'delete_selected', u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO']}>
- name = 'delete_selected'
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/contrib/admin/options.py (Line: 1173)
- Function: changelist_view
- 1166 action_failed = False
- 1167 selected = request.POST.getlist(helpers.ACTION_CHECKBOX_NAME)
- 1168
- 1169 # Actions with no confirmation
- 1170 if (actions and request.method == 'POST' and
- 1171 'index' in request.POST and '_save' not in request.POST):
- 1172 if selected:
- 1173 ==> response = self.response_action(request, queryset=cl.get_query_set(request))
- 1174 if response:
- 1175 return response
- 1176 else:
- 1177 action_failed = True
- 1178 else:
- 1179 msg = _("Items must be selected in order to perform "
- Variables:
- action_failed = False
- cl = <django.contrib.admin.views.main.ChangeList object at 0x8126cdbd0>
- ChangeList = <class 'django.contrib.admin.views.main.ChangeList'>
- selected = [u'3']
- request =
- <WSGIRequest
- path:/main/user/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO'], u'_selected_action': [u'3'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'sessionid': '1244c50af4246d88f606fb93fc179631'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CACHE_CONTROL': 'max-age=0',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=1244c50af4246d88f606fb93fc179631; csrftoken=elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_HOST': '10.34.58.156',
- 'HTTP_ORIGIN': 'http://10.34.58.156',
- 'HTTP_REFERER': 'http://10.34.58.156/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.34.58.156',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80982e9c0>,
- 'wsgi.input': <_io.BytesIO object at 0x812520830>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- actions =
- {'delete_selected': (<function delete_selected at 0x80aba2140>, 'delete_selected', <django.utils.functional.__proxy__ object at 0x80aba0a50>), 'export_selected_csv': (<function admin_csv_export at 0x80d303410>, 'export_selected_csv', 'Export selected %(verbose_name_plural)s to CSV')}
- app_label = 'auth'
- self = <noc.main.apps.user.views.UserAdmin object at 0x80d893210>
- list_display =
- ['action_checkbox',
- 'username',
- 'email',
- 'first_name',
- 'last_name',
- 'is_active',
- 'is_superuser']
- list_display_links = ['username']
- extra_context =
- {'app': <noc.main.apps.user.views.UserApplication object at 0x80d893090>}
- ERROR_FLAG = 'e'
- opts = <Options for User>
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/utils/decorators.py (Line: 21)
- Function: bound_func
- 14 """
- 15 # 'func' is a function at the time it is passed to _dec, but will eventually
- 16 # be a method of the class it is defined it.
- 17 def _dec(func):
- 18 def _wrapper(self, *args, **kwargs):
- 19 @decorator
- 20 def bound_func(*args2, **kwargs2):
- 21 ==> return func(self, *args2, **kwargs2)
- 22 # bound_func has the signature that 'decorator' expects i.e. no
- 23 # 'self' argument, but it is a closure over self so it can call
- 24 # 'func' correctly.
- 25 return bound_func(*args, **kwargs)
- 26 # In case 'decorator' adds attributes to the function it decorates, we
- 27 # want to copy those. We don't have access to bound_func in this scope,
- Variables:
- args2 =
- (<WSGIRequest
- path:/main/user/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO'], u'_selected_action': [u'3'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'sessionid': '1244c50af4246d88f606fb93fc179631'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CACHE_CONTROL': 'max-age=0',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=1244c50af4246d88f606fb93fc179631; csrftoken=elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_HOST': '10.34.58.156',
- 'HTTP_ORIGIN': 'http://10.34.58.156',
- 'HTTP_REFERER': 'http://10.34.58.156/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.34.58.156',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80982e9c0>,
- 'wsgi.input': <_io.BytesIO object at 0x812520830>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>,
- {'app': <noc.main.apps.user.views.UserApplication object at 0x80d893090>})
- func = <function changelist_view at 0x80ab9c5f0>
- self = <noc.main.apps.user.views.UserAdmin object at 0x80d893210>
- kwargs2 = {}
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/utils/decorators.py (Line: 91)
- Function: _wrapped_view
- 84 if result is not None:
- 85 return result
- 86 if hasattr(middleware, 'process_view'):
- 87 result = middleware.process_view(request, view_func, args, kwargs)
- 88 if result is not None:
- 89 return result
- 90 try:
- 91 ==> response = view_func(request, *args, **kwargs)
- 92 except Exception, e:
- 93 if hasattr(middleware, 'process_exception'):
- 94 result = middleware.process_exception(request, e)
- 95 if result is not None:
- 96 return result
- 97 raise
- Variables:
- e = PermissionDenied()
- middleware = <django.middleware.csrf.CsrfViewMiddleware object at 0x80ab62750>
- args =
- ({'app': <noc.main.apps.user.views.UserApplication object at 0x80d893090>},)
- request =
- <WSGIRequest
- path:/main/user/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO'], u'_selected_action': [u'3'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'sessionid': '1244c50af4246d88f606fb93fc179631'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CACHE_CONTROL': 'max-age=0',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=1244c50af4246d88f606fb93fc179631; csrftoken=elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_HOST': '10.34.58.156',
- 'HTTP_ORIGIN': 'http://10.34.58.156',
- 'HTTP_REFERER': 'http://10.34.58.156/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.34.58.156',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80982e9c0>,
- 'wsgi.input': <_io.BytesIO object at 0x812520830>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- result = None
- kwargs = {}
- view_func = <function bound_func at 0x812608320>
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/utils/decorators.py (Line: 25)
- Function: _wrapper
- 18 def _wrapper(self, *args, **kwargs):
- 19 @decorator
- 20 def bound_func(*args2, **kwargs2):
- 21 return func(self, *args2, **kwargs2)
- 22 # bound_func has the signature that 'decorator' expects i.e. no
- 23 # 'self' argument, but it is a closure over self so it can call
- 24 # 'func' correctly.
- 25 ==> return bound_func(*args, **kwargs)
- 26 # In case 'decorator' adds attributes to the function it decorates, we
- 27 # want to copy those. We don't have access to bound_func in this scope,
- 28 # but we can cheat by using it on a dummy function.
- 29 @decorator
- 30 def dummy(*args, **kwargs):
- 31 pass
- Variables:
- self = <noc.main.apps.user.views.UserAdmin object at 0x80d893210>
- args =
- (<WSGIRequest
- path:/main/user/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO'], u'_selected_action': [u'3'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'sessionid': '1244c50af4246d88f606fb93fc179631'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CACHE_CONTROL': 'max-age=0',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=1244c50af4246d88f606fb93fc179631; csrftoken=elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_HOST': '10.34.58.156',
- 'HTTP_ORIGIN': 'http://10.34.58.156',
- 'HTTP_REFERER': 'http://10.34.58.156/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.34.58.156',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80982e9c0>,
- 'wsgi.input': <_io.BytesIO object at 0x812520830>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>,
- {'app': <noc.main.apps.user.views.UserApplication object at 0x80d893090>})
- bound_func = <function bound_func at 0x812608050>
- func = <function changelist_view at 0x80ab9c5f0>
- kwargs = {}
- decorator = <function csrf_protect at 0x80ab828c0>
- ------------------------------------------------------------------------
- File: lib/app/modelapplication.py (Line: 141)
- Function: view_changelist
- 134 self.model._meta.object_name.lower())
- 135
- 136 @view(url=r"^$", url_name="admin:%s_%s_changelist", access=HasPerm("change"),
- 137 menu=get_menu)
- 138 def view_changelist(self, request, extra_context=None):
- 139 """Display changelist"""
- 140 return self.admin.changelist_view(request,
- 141 ==> self.get_context(extra_context))
- 142
- 143 @view(url=r"^add/$", url_name="admin:%s_%s_add", access=HasPerm("add"))
- 144 def view_add(self, request, form_url="", extra_context=None):
- 145 """Display add form"""
- 146 return self.admin.add_view(
- 147 request,
- Variables:
- self = <noc.main.apps.user.views.UserApplication object at 0x80d893090>
- extra_context = None
- request =
- <WSGIRequest
- path:/main/user/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO'], u'_selected_action': [u'3'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'sessionid': '1244c50af4246d88f606fb93fc179631'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CACHE_CONTROL': 'max-age=0',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=1244c50af4246d88f606fb93fc179631; csrftoken=elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_HOST': '10.34.58.156',
- 'HTTP_ORIGIN': 'http://10.34.58.156',
- 'HTTP_REFERER': 'http://10.34.58.156/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.34.58.156',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80982e9c0>,
- 'wsgi.input': <_io.BytesIO object at 0x812520830>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- ------------------------------------------------------------------------
- File: lib/app/site.py (Line: 248)
- Function: inner
- 241 a = dict((k, v[0] if len(v) == 1 else v)
- 242 for k, v in request.GET.lists())
- 243 app_logger.debug("API %s %s %s",
- 244 request.method, request.path, a)
- 245 # Call handler
- 246 v.__dict__["hits_metric"] += 1
- 247 with v.__dict__["time_metric"].timer():
- 248 ==> r = v(request, *args, **kwargs)
- 249 # Dump SQL statements
- 250 if self.log_sql_statements:
- 251 from django.db import connections
- 252 tsc = 0
- 253 sc = defaultdict(int)
- 254 for conn in connections.all():
- Variables:
- args = ()
- view_map =
- {'DELETE': <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0x80d893090>>,
- 'GET': <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0x80d893090>>,
- 'POST': <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0x80d893090>>,
- 'PUT': <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0x80d893090>>}
- Form = <class 'django.forms.forms.Form'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x80aa9ca90>
- v =
- <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0x80d893090>>
- request =
- <WSGIRequest
- path:/main/user/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO'], u'_selected_action': [u'3'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'sessionid': '1244c50af4246d88f606fb93fc179631'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CACHE_CONTROL': 'max-age=0',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=1244c50af4246d88f606fb93fc179631; csrftoken=elY95gtQ9CLdFObPxKU9g4HOpHvCsjvO',
- 'HTTP_HOST': '10.34.58.156',
- 'HTTP_ORIGIN': 'http://10.34.58.156',
- 'HTTP_REFERER': 'http://10.34.58.156/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.34.58.156',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80982e9c0>,
- 'wsgi.input': <_io.BytesIO object at 0x812520830>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- app_logger = <logging.Logger object at 0x80d893110>
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- to_log_api_call = False
- kwargs = {}
- nq = <function nq at 0x812608b90>
- app = <noc.main.apps.user.views.UserApplication object at 0x80d893090>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement