Advertisement
Guest User

Untitled

a guest
Oct 1st, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2013-10-01 11:09:10.569084)
  2. Working directory: /opt/noc
  3. <type 'exceptions.TypeError'>
  4. api_list() takes exactly 3 arguments (2 given)
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/lib/app/site.py (Line: 232)
  8. Function: inner
  9. 225 for k, v in request.POST.lists())
  10. 226 elif request.method == "GET":
  11. 227 a = dict((k, v[0] if len(v) == 1 else v)
  12. 228 for k, v in request.GET.lists())
  13. 229 logging.debug("API %s %s %s" % (request.method,
  14. 230 request.path, a))
  15. 231 # Call handler
  16. 232 ==> r = v(request, *args, **kwargs)
  17. 233 # Dump SQL statements
  18. 234 if self.log_sql_statements:
  19. 235 from django.db import connections
  20. 236 tsc = 0
  21. 237 sc = defaultdict(int)
  22. 238 for conn in connections.all():
  23. Variables:
  24. args = ()
  25. view_map =
  26. {'GET': <bound method TESTAppplication.api_list of <noc.sa.apps.TEST.views.TESTAppplication object at 0x80d568a90>>}
  27. Form = <class 'django.forms.forms.Form'>
  28. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  29. self = <noc.lib.app.site.Site object at 0x80a086810>
  30. v =
  31. <bound method TESTAppplication.api_list of <noc.sa.apps.TEST.views.TESTAppplication object at 0x80d568a90>>
  32. request =
  33. <WSGIRequest
  34. path:/sa/TEST/,
  35. GET:<QueryDict: {u'a': [u'1'], u'summ': [u''], u'_dc': [u'1380611350519'], u'b': [u'2'], u'__format': [u'ext']}>,
  36. POST:<QueryDict: {}>,
  37. COOKIES:{'csrftoken': 'IDkEC2joQ0xqB16cYOt3sf02s349QrHO',
  38. 'sessionid': 'e0aba7892cc16ba6e928866450c54f19'},
  39. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  40. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  41. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  42. 'HTTP_CONNECTION': 'close',
  43. 'HTTP_COOKIE': 'csrftoken=IDkEC2joQ0xqB16cYOt3sf02s349QrHO; sessionid=e0aba7892cc16ba6e928866450c54f19',
  44. 'HTTP_DNT': '1',
  45. 'HTTP_HOST': '127.0.0.1:8000',
  46. 'HTTP_REFERER': 'http://noc/main/desktop/',
  47. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0',
  48. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  49. 'PATH_INFO': u'/sa/TEST/',
  50. 'QUERY_STRING': '_dc=1380611350519&__format=ext&a=1&b=2&summ=',
  51. 'REMOTE_ADDR': '127.0.0.1',
  52. 'REQUEST_METHOD': 'GET',
  53. 'SCRIPT_NAME': u'',
  54. 'SERVER_NAME': '127.0.0.1',
  55. 'SERVER_PORT': '8000',
  56. 'SERVER_PROTOCOL': 'HTTP/1.0',
  57. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80741eed0>,
  58. 'wsgi.input': <_io.BytesIO object at 0x80dab89b0>,
  59. 'wsgi.multiprocess': True,
  60. 'wsgi.multithread': False,
  61. 'wsgi.run_once': False,
  62. 'wsgi.url_scheme': 'http',
  63. 'wsgi.version': (1, 0)}>
  64. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  65. to_log_api_call = False
  66. kwargs = {}
  67. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  68. app = <noc.sa.apps.TEST.views.TESTAppplication object at 0x80d568a90>
  69. ------------------------------------------------------------------------
  70. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement