Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2012-07-16 11:04:10.886065)
- Working directory: /opt/noc
- <class 'django.core.exceptions.PermissionDenied'>
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/contrib/admin/actions.py (Line: 29)
- Function: delete_selected
- 22 Next, it delets all selected objects and redirects back to the change list.
- 23 """
- 24 opts = modeladmin.model._meta
- 25 app_label = opts.app_label
- 26
- 27 # Check that the user has delete permission for the actual model
- 28 if not modeladmin.has_delete_permission(request):
- 29 ==> raise PermissionDenied
- 30
- 31 using = router.db_for_write(modeladmin.model)
- 32
- 33 # Populate deletable_objects, a data structure of all related objects that
- 34 # will also be deleted.
- 35 deletable_objects, perms_needed, protected = get_deleted_objects(
- Variables:
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'aa9f950393e4d7e74961b89ff2a3ff8e'], u'_selected_action': [u'4'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'sessionid': '1162e783aaa1aed67ca30d246ed111de'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'Keep-Alive',
- 'HTTP_COOKIE': 'csrftoken=aa9f950393e4d7e74961b89ff2a3ff8e; sessionid=1162e783aaa1aed67ca30d246ed111de',
- 'HTTP_HOST': 'localhost:8000',
- 'HTTP_REFERER': 'http://noc.ab/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0',
- 'HTTP_X_FORWARDED_FOR': '10.103.203.31',
- 'HTTP_X_FORWARDED_HOST': 'noc.ab',
- 'HTTP_X_FORWARDED_SERVER': 'noc.ab',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'localhost',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8856810>,
- 'wsgi.input': <io.BytesIO object at 0xadc88f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- queryset = [<User: alina2>]
- modeladmin = <noc.main.apps.user.views.UserAdmin object at 0xa5dafd0>
- opts = <Options for User>
- app_label = 'auth'
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/contrib/admin/options.py (Line: 836)
- Function: response_action
- 829 self.message_user(request, msg)
- 830 return None
- 831
- 832 if not select_across:
- 833 # Perform the action only on the selected objects
- 834 queryset = queryset.filter(pk__in=selected)
- 835
- 836 ==> response = func(self, request, queryset)
- 837
- 838 # Actions may return an HttpResponse, which will be used as the
- 839 # response from the POST. If not, we'll be a good little HTTP
- 840 # citizen and redirect back to the changelist page.
- 841 if isinstance(response, HttpResponse):
- 842 return response
- Variables:
- action_index = 0
- description = <django.utils.functional.__proxy__ object at 0x9192750>
- queryset = [<User: alina2>]
- self = <noc.main.apps.user.views.UserAdmin object at 0xa5dafd0>
- selected = [u'4']
- action_form = <django.contrib.admin.helpers.ActionForm object at 0xafba1d0>
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'aa9f950393e4d7e74961b89ff2a3ff8e'], u'_selected_action': [u'4'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'sessionid': '1162e783aaa1aed67ca30d246ed111de'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'Keep-Alive',
- 'HTTP_COOKIE': 'csrftoken=aa9f950393e4d7e74961b89ff2a3ff8e; sessionid=1162e783aaa1aed67ca30d246ed111de',
- 'HTTP_HOST': 'localhost:8000',
- 'HTTP_REFERER': 'http://noc.ab/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0',
- 'HTTP_X_FORWARDED_FOR': '10.103.203.31',
- 'HTTP_X_FORWARDED_HOST': 'noc.ab',
- 'HTTP_X_FORWARDED_SERVER': 'noc.ab',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'localhost',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8856810>,
- 'wsgi.input': <io.BytesIO object at 0xadc88f0>,
- '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 0x9194ed8>
- action = u'delete_selected'
- data = <QueryDict: {u'action': [u'delete_selected', u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'aa9f950393e4d7e74961b89ff2a3ff8e']}>
- name = 'delete_selected'
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/contrib/admin/options.py (Line: 1079)
- Function: changelist_view
- 1072 action_failed = False
- 1073 selected = request.POST.getlist(helpers.ACTION_CHECKBOX_NAME)
- 1074
- 1075 # Actions with no confirmation
- 1076 if (actions and request.method == 'POST' and
- 1077 'index' in request.POST and '_save' not in request.POST):
- 1078 if selected:
- 1079 ==> response = self.response_action(request, queryset=cl.get_query_set())
- 1080 if response:
- 1081 return response
- 1082 else:
- 1083 action_failed = True
- 1084 else:
- 1085 msg = _("Items must be selected in order to perform "
- Variables:
- list_display = ['action_checkbox', 'username', 'email', 'first_name', 'last_name', 'is_active', 'is_superuser']
- cl = <django.contrib.admin.views.main.ChangeList object at 0xb032690>
- ChangeList = <class 'django.contrib.admin.views.main.ChangeList'>
- selected = [u'4']
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'aa9f950393e4d7e74961b89ff2a3ff8e'], u'_selected_action': [u'4'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'sessionid': '1162e783aaa1aed67ca30d246ed111de'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'Keep-Alive',
- 'HTTP_COOKIE': 'csrftoken=aa9f950393e4d7e74961b89ff2a3ff8e; sessionid=1162e783aaa1aed67ca30d246ed111de',
- 'HTTP_HOST': 'localhost:8000',
- 'HTTP_REFERER': 'http://noc.ab/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0',
- 'HTTP_X_FORWARDED_FOR': '10.103.203.31',
- 'HTTP_X_FORWARDED_HOST': 'noc.ab',
- 'HTTP_X_FORWARDED_SERVER': 'noc.ab',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'localhost',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8856810>,
- 'wsgi.input': <io.BytesIO object at 0xadc88f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- actions = {'export_selected_csv': (<function admin_csv_export at 0xa6358c0>, 'export_selected_csv', 'Export selected %(verbose_name_plural)s to CSV'), 'delete_selected': (<function delete_selected at 0x9194ed8>, 'delete_selected', <django.utils.functional.__proxy__ object at 0x9192750>)}
- self = <noc.main.apps.user.views.UserAdmin object at 0xa5dafd0>
- action_failed = False
- app_label = 'auth'
- extra_context = {'app': <noc.main.apps.user.views.UserApplication object at 0xa5daf50>}
- ERROR_FLAG = 'e'
- opts = <Options for User>
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/utils/decorators.py (Line: 24)
- Function: bound_func
- 17 """
- 18 # 'func' is a function at the time it is passed to _dec, but will eventually
- 19 # be a method of the class it is defined it.
- 20 def _dec(func):
- 21 def _wrapper(self, *args, **kwargs):
- 22 @decorator
- 23 def bound_func(*args2, **kwargs2):
- 24 ==> return func(self, *args2, **kwargs2)
- 25 # bound_func has the signature that 'decorator' expects i.e. no
- 26 # 'self' argument, but it is a closure over self so it can call
- 27 # 'func' correctly.
- 28 return bound_func(*args, **kwargs)
- 29 # In case 'decorator' adds attributes to the function it decorates, we
- 30 # want to copy those. We don't have access to bound_func in this scope,
- Variables:
- args2 = (<WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'aa9f950393e4d7e74961b89ff2a3ff8e'], u'_selected_action': [u'4'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'sessionid': '1162e783aaa1aed67ca30d246ed111de'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'Keep-Alive',
- 'HTTP_COOKIE': 'csrftoken=aa9f950393e4d7e74961b89ff2a3ff8e; sessionid=1162e783aaa1aed67ca30d246ed111de',
- 'HTTP_HOST': 'localhost:8000',
- 'HTTP_REFERER': 'http://noc.ab/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0',
- 'HTTP_X_FORWARDED_FOR': '10.103.203.31',
- 'HTTP_X_FORWARDED_HOST': 'noc.ab',
- 'HTTP_X_FORWARDED_SERVER': 'noc.ab',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'localhost',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8856810>,
- 'wsgi.input': <io.BytesIO object at 0xadc88f0>,
- '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 0xa5daf50>})
- func = <function changelist_view at 0x9193c80>
- self = <noc.main.apps.user.views.UserAdmin object at 0xa5dafd0>
- kwargs2 = {}
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/utils/decorators.py (Line: 93)
- Function: _wrapped_view
- 86 if result is not None:
- 87 return result
- 88 if hasattr(middleware, 'process_view'):
- 89 result = middleware.process_view(request, view_func, args, kwargs)
- 90 if result is not None:
- 91 return result
- 92 try:
- 93 ==> response = view_func(request, *args, **kwargs)
- 94 except Exception, e:
- 95 if hasattr(middleware, 'process_exception'):
- 96 result = middleware.process_exception(request, e)
- 97 if result is not None:
- 98 return result
- 99 raise
- Variables:
- e = PermissionDenied()
- middleware = <django.middleware.csrf.CsrfViewMiddleware object at 0x9156210>
- args = ({'app': <noc.main.apps.user.views.UserApplication object at 0xa5daf50>},)
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'aa9f950393e4d7e74961b89ff2a3ff8e'], u'_selected_action': [u'4'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'sessionid': '1162e783aaa1aed67ca30d246ed111de'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'Keep-Alive',
- 'HTTP_COOKIE': 'csrftoken=aa9f950393e4d7e74961b89ff2a3ff8e; sessionid=1162e783aaa1aed67ca30d246ed111de',
- 'HTTP_HOST': 'localhost:8000',
- 'HTTP_REFERER': 'http://noc.ab/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0',
- 'HTTP_X_FORWARDED_FOR': '10.103.203.31',
- 'HTTP_X_FORWARDED_HOST': 'noc.ab',
- 'HTTP_X_FORWARDED_SERVER': 'noc.ab',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'localhost',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8856810>,
- 'wsgi.input': <io.BytesIO object at 0xadc88f0>,
- '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 0xaf27848>
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/django/utils/decorators.py (Line: 28)
- Function: _wrapper
- 21 def _wrapper(self, *args, **kwargs):
- 22 @decorator
- 23 def bound_func(*args2, **kwargs2):
- 24 return func(self, *args2, **kwargs2)
- 25 # bound_func has the signature that 'decorator' expects i.e. no
- 26 # 'self' argument, but it is a closure over self so it can call
- 27 # 'func' correctly.
- 28 ==> return bound_func(*args, **kwargs)
- 29 # In case 'decorator' adds attributes to the function it decorates, we
- 30 # want to copy those. We don't have access to bound_func in this scope,
- 31 # but we can cheat by using it on a dummy function.
- 32 @decorator
- 33 def dummy(*args, **kwargs):
- 34 pass
- Variables:
- self = <noc.main.apps.user.views.UserAdmin object at 0xa5dafd0>
- args = (<WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'aa9f950393e4d7e74961b89ff2a3ff8e'], u'_selected_action': [u'4'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'sessionid': '1162e783aaa1aed67ca30d246ed111de'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'Keep-Alive',
- 'HTTP_COOKIE': 'csrftoken=aa9f950393e4d7e74961b89ff2a3ff8e; sessionid=1162e783aaa1aed67ca30d246ed111de',
- 'HTTP_HOST': 'localhost:8000',
- 'HTTP_REFERER': 'http://noc.ab/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0',
- 'HTTP_X_FORWARDED_FOR': '10.103.203.31',
- 'HTTP_X_FORWARDED_HOST': 'noc.ab',
- 'HTTP_X_FORWARDED_SERVER': 'noc.ab',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'localhost',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8856810>,
- 'wsgi.input': <io.BytesIO object at 0xadc88f0>,
- '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 0xa5daf50>})
- bound_func = <function bound_func at 0xaf276e0>
- func = <function changelist_view at 0x9193c80>
- kwargs = {}
- decorator = <function csrf_protect at 0x9157320>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/modelapplication.py (Line: 141)
- Function: view_changelist
- 134 self.model._meta.object_name.lower())
- 135
- 136 @view(url=r"^$", url_name="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="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(request,
- 147 extra_context=self.get_context(extra_context))
- Variables:
- self = <noc.main.apps.user.views.UserApplication object at 0xa5daf50>
- extra_context = None
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'aa9f950393e4d7e74961b89ff2a3ff8e'], u'_selected_action': [u'4'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'sessionid': '1162e783aaa1aed67ca30d246ed111de'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'Keep-Alive',
- 'HTTP_COOKIE': 'csrftoken=aa9f950393e4d7e74961b89ff2a3ff8e; sessionid=1162e783aaa1aed67ca30d246ed111de',
- 'HTTP_HOST': 'localhost:8000',
- 'HTTP_REFERER': 'http://noc.ab/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0',
- 'HTTP_X_FORWARDED_FOR': '10.103.203.31',
- 'HTTP_X_FORWARDED_HOST': 'noc.ab',
- 'HTTP_X_FORWARDED_SERVER': 'noc.ab',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'localhost',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8856810>,
- 'wsgi.input': <io.BytesIO object at 0xadc88f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/site.py (Line: 224)
- Function: inner
- 217 for k, v in request.POST.lists())
- 218 elif request.method == "GET":
- 219 a = dict((k, v[0] if len(v) == 1 else v)
- 220 for k, v in request.GET.lists())
- 221 logging.debug("API %s %s %s" % (request.method,
- 222 request.path, a))
- 223 # Call handler
- 224 ==> r = v(request, *args, **kwargs)
- 225 # Dump SQL statements
- 226 if self.log_sql_statements:
- 227 from django.db import connections
- 228 for conn in connections.all():
- 229 for q in conn.queries:
- 230 logging.debug("SQL %(sql)s %(time)ss" % q)
- Variables:
- args = ()
- view_map = {'PUT': <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0xa5daf50>>, 'POST': <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0xa5daf50>>, 'GET': <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0xa5daf50>>, 'DELETE': <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0xa5daf50>>}
- Form = <class 'django.forms.forms.Form'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x8f58390>
- v = <bound method UserApplication.view_changelist of <noc.main.apps.user.views.UserApplication object at 0xa5daf50>>
- request = <WSGIRequest
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'action': [u'delete_selected'], u'select_across': [u'0'], u'csrfmiddlewaretoken': [u'aa9f950393e4d7e74961b89ff2a3ff8e'], u'_selected_action': [u'4'], u'index': [u'0']}>,
- COOKIES:{'csrftoken': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'sessionid': '1162e783aaa1aed67ca30d246ed111de'},
- META:{'CONTENT_LENGTH': '118',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'CSRF_COOKIE': 'aa9f950393e4d7e74961b89ff2a3ff8e',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3',
- 'HTTP_CONNECTION': 'Keep-Alive',
- 'HTTP_COOKIE': 'csrftoken=aa9f950393e4d7e74961b89ff2a3ff8e; sessionid=1162e783aaa1aed67ca30d246ed111de',
- 'HTTP_HOST': 'localhost:8000',
- 'HTTP_REFERER': 'http://noc.ab/main/user/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20100101 Firefox/13.0',
- 'HTTP_X_FORWARDED_FOR': '10.103.203.31',
- 'HTTP_X_FORWARDED_HOST': 'noc.ab',
- 'HTTP_X_FORWARDED_SERVER': 'noc.ab',
- 'PATH_INFO': u'/main/user/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': 'localhost',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.1',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8856810>,
- 'wsgi.input': <io.BytesIO object at 0xadc88f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- to_log_api_call = False
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- kwargs = {}
- app = <noc.main.apps.user.views.UserApplication object at 0xa5daf50>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement