Advertisement
Guest User

Untitled

a guest
May 10th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2013-05-11 00:30:00.486882)
  2. Working directory: /opt/noc
  3. <type 'exceptions.AttributeError'>
  4. 'module' object has no attribute 'NoneHandler'
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/wf/models/node.py (Line: 42)
  8. Function: handler_class
  9. 35
  10. 36 def __unicode__(self):
  11. 37 return "%s %s" % (self.workflow, self.name)
  12. 38
  13. 39 @property
  14. 40 def handler_class(self):
  15. 41 m = __import__("noc.wf.handlers", {}, {}, str(self.handler))
  16. 42 ==> return getattr(m, "%sHandler" % self.handler)
  17.  
  18. Variables:
  19. self = <Node: Test.tst v1 Node #1>
  20. m = <module 'noc.wf.handlers' from '/opt/noc/wf/handlers/__init__.pyc'>
  21. ------------------------------------------------------------------------
  22. File: /opt/noc/wf/apps/workflow/views.py (Line: 49)
  23. Function: api_nodes
  24. 42 for n in Node.objects.filter(workflow=wf.id):
  25. 43 r += [{
  26. 44 "type": "node",
  27. 45 "id": str(n.id),
  28. 46 "name": n.name,
  29. 47 "description": n.description,
  30. 48 "handler": n.handler,
  31. 49 ==> "conditional": n.handler_class.conditional,
  32. 50 "params": n.params,
  33. 51 "next_node": oq(n.next_node),
  34. 52 "next_true_node": oq(n.next_true_node),
  35. 53 "next_false_node": oq(n.next_false_node),
  36. 54 "x": n.x or x,
  37. 55 "y": n.y or 50,
  38. Variables:
  39. wf_id = u'518ba26af3b6821e79ed4b9f'
  40. wf = <Workflow: Test.tst v1>
  41. self = <noc.wf.apps.workflow.views.WorkflowApplication object at 0x80887c150>
  42. request =
  43. <WSGIRequest
  44. path:/wf/workflow/518ba26af3b6821e79ed4b9f/nodes/,
  45. GET:<QueryDict: {u'_dc': [u'1368217783525']}>,
  46. POST:<QueryDict: {}>,
  47. COOKIES:{'csrftoken': '102bc6e214b4272a803d0c0a1dd106aa',
  48. 'sessionid': 'c638950e34c02deba57b911be7833044'},
  49. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  50. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
  51. 'HTTP_CONNECTION': 'close',
  52. 'HTTP_COOKIE': 'sessionid=c638950e34c02deba57b911be7833044; csrftoken=102bc6e214b4272a803d0c0a1dd106aa',
  53. 'HTTP_DNT': '1',
  54. 'HTTP_HOST': '127.0.0.1:8000',
  55. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0',
  56. 'PATH_INFO': u'/wf/workflow/518ba26af3b6821e79ed4b9f/nodes/',
  57. 'QUERY_STRING': '_dc=1368217783525',
  58. 'REMOTE_ADDR': '127.0.0.1',
  59. 'REQUEST_METHOD': 'GET',
  60. 'SCRIPT_NAME': u'',
  61. 'SERVER_NAME': '127.0.0.1',
  62. 'SERVER_PORT': '8000',
  63. 'SERVER_PROTOCOL': 'HTTP/1.0',
  64. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80450c0c0>,
  65. 'wsgi.input': <_io.BytesIO object at 0x8094259b0>,
  66. 'wsgi.multiprocess': True,
  67. 'wsgi.multithread': False,
  68. 'wsgi.run_once': False,
  69. 'wsgi.url_scheme': 'http',
  70. 'wsgi.version': (1, 0)}>
  71. n = <Node: Test.tst v1 Node #1>
  72. r = []
  73. sn = u'1'
  74. x = 70
  75. oq = <function oq at 0x809d9f9b0>
  76. ------------------------------------------------------------------------
  77. File: /opt/noc/lib/app/site.py (Line: 232)
  78. Function: inner
  79. 225 for k, v in request.POST.lists())
  80. 226 elif request.method == "GET":
  81. 227 a = dict((k, v[0] if len(v) == 1 else v)
  82. 228 for k, v in request.GET.lists())
  83. 229 logging.debug("API %s %s %s" % (request.method,
  84. 230 request.path, a))
  85. 231 # Call handler
  86. 232 ==> r = v(request, *args, **kwargs)
  87. 233 # Dump SQL statements
  88. 234 if self.log_sql_statements:
  89. 235 from django.db import connections
  90. 236 tsc = 0
  91. 237 sc = defaultdict(int)
  92. 238 for conn in connections.all():
  93. Variables:
  94. args = ()
  95. view_map =
  96. {'GET': <bound method WorkflowApplication.api_nodes of <noc.wf.apps.workflow.views.WorkflowApplication object at 0x80887c150>>,
  97. 'POST': <bound method WorkflowApplication.api_save_nodes of <noc.wf.apps.workflow.views.WorkflowApplication object at 0x80887c150>>}
  98. Form = <class 'django.forms.forms.Form'>
  99. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  100. self = <noc.lib.app.site.Site object at 0x805dbd790>
  101. v =
  102. <bound method WorkflowApplication.api_nodes of <noc.wf.apps.workflow.views.WorkflowApplication object at 0x80887c150>>
  103. request =
  104. <WSGIRequest
  105. path:/wf/workflow/518ba26af3b6821e79ed4b9f/nodes/,
  106. GET:<QueryDict: {u'_dc': [u'1368217783525']}>,
  107. POST:<QueryDict: {}>,
  108. COOKIES:{'csrftoken': '102bc6e214b4272a803d0c0a1dd106aa',
  109. 'sessionid': 'c638950e34c02deba57b911be7833044'},
  110. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  111. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
  112. 'HTTP_CONNECTION': 'close',
  113. 'HTTP_COOKIE': 'sessionid=c638950e34c02deba57b911be7833044; csrftoken=102bc6e214b4272a803d0c0a1dd106aa',
  114. 'HTTP_DNT': '1',
  115. 'HTTP_HOST': '127.0.0.1:8000',
  116. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0',
  117. 'PATH_INFO': u'/wf/workflow/518ba26af3b6821e79ed4b9f/nodes/',
  118. 'QUERY_STRING': '_dc=1368217783525',
  119. 'REMOTE_ADDR': '127.0.0.1',
  120. 'REQUEST_METHOD': 'GET',
  121. 'SCRIPT_NAME': u'',
  122. 'SERVER_NAME': '127.0.0.1',
  123. 'SERVER_PORT': '8000',
  124. 'SERVER_PROTOCOL': 'HTTP/1.0',
  125. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x80450c0c0>,
  126. 'wsgi.input': <_io.BytesIO object at 0x8094259b0>,
  127. 'wsgi.multiprocess': True,
  128. 'wsgi.multithread': False,
  129. 'wsgi.run_once': False,
  130. 'wsgi.url_scheme': 'http',
  131. 'wsgi.version': (1, 0)}>
  132. to_log_api_call = False
  133. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  134. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  135. kwargs = {'wf_id': u'518ba26af3b6821e79ed4b9f'}
  136. app = <noc.wf.apps.workflow.views.WorkflowApplication object at 0x80887c150>
  137. ------------------------------------------------------------------------
  138. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement