Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.56 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2013-01-23 11:21:51.065267)
  2. Working directory: /opt/noc
  3. <type 'exceptions.TypeError'>
  4. cannot concatenate 'str' and 'int' objects
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/inv/apps/map/views.py (Line: 80)
  8. Function: view_chart
  9. 73 # Restore state
  10. 74 state = chart.get_state("mo", mo.id)
  11. 75 y = state.get("y")
  12. 76 shape = self.get_object_shape(mo)
  13. 77 h = shape.height
  14. 78 if y is None:
  15. 79 y = dy
  16. 80 ==> dy += h + ds
  17. 81 n = {
  18. 82 "type": "node",
  19. 83 "id": mo.id,
  20. 84 "x": state.get("x", dx),
  21. 85 "y": y,
  22. 86 "w": shape.width,
  23. Variables:
  24. links = [<Link: (bb-niickd...
  25. request = <WSGIRequest
  26. path:/inv/map/chart/4/,
  27. GET:<QueryDict: {u'_dc': [u'1358925691959']}>,
  28. POST:<QueryDict: {}>,
  29. COOKIES:{'csrftoken': '6KDOcaokLaPx9crdyhosHYbSe2priW1z',
  30. 'sessionid': '8bc7810361f62fe6c42029e25f555e0e'},
  31. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  32. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  33. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  34. 'HTTP_CONNECTION': 'close',
  35. 'HTTP_COOKIE': 'sessionid=8bc7810361f62fe6c42029e25f555e0e; csrftoken=6KDOcaokLaPx9crdyhosHYbSe2priW1z',
  36. 'HTTP_DNT': '1',
  37. 'HTTP_HOST': '127.0.0.1:8000',
  38. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0',
  39. 'PATH_INFO': u'/inv/map/chart/4/',
  40. 'QUERY_STRING': '_dc=1358925691959',
  41. 'REMOTE_ADDR': '127.0.0.1',
  42. 'REQUEST_METHOD': 'GET',
  43. 'SCRIPT_NAME': u'',
  44. 'SERVER_NAME': '127.0.0.1',
  45. 'SERVER_PORT': '8000',
  46. 'SERVER_PROTOCOL': 'HTTP/1.0',
  47. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8044c60c0>,
  48. 'wsgi.input': <_io.BytesIO object at 0x8092e5d10>,
  49. 'wsgi.multiprocess': True,
  50. 'wsgi.multithread': False,
  51. 'wsgi.run_once': False,
  52. 'wsgi.url_scheme': 'http',
  53. 'wsgi.version': (1, 0)}>
  54. if_ids = set([ObjectId('50dbfc6ff3b6824ede001bc8'), ...
  55. shape = <noc.lib.stencil.Stencil object at 0x807cbad50>
  56. mo_links = defaultdict(<type 'list'>, {<ManagedObject: ...
  57. self = <noc.inv.apps.map.views.MapAppplication object at 0x8087650d0>
  58. state = {}
  59. dh = 50
  60. mos = [<ManagedObject: 7304>, <ManagedObject: ...
  61. interfaces = [<Interface: cat-: Fa 0/24>]
  62. chart = <NetworkChart: MEN_Full>
  63. link = <Link: (cat-: Fa 0/24, rtr: Fa 0/0)>
  64. dx = 10
  65. dy = 10
  66. chart_id = u'4'
  67. dw = 100
  68. ds = 20
  69. mo_ids = [470, 283, ...
  70. i = <Interface: arzamas: Fa 0/0>
  71. h = '40'
  72. linked_ports = defaultdict(<type 'list'>, {<Link: (cat-...
  73. p_id = '193:50fa1cc5f3b682d12c0031d1'
  74. o = <ManagedObject: zav>
  75. n = {'collapsed': False, 'shape': 'Cisco/layer_3_switch', 'address': ...
  76. r = [{'collapsed': True, 'shape': 'Cisco/layer_3_switch', 'address': ...
  77. y = 10
  78. mo = <ManagedObject: cat-avrora3g>
  79. ------------------------------------------------------------------------
  80. File: /opt/noc/lib/app/site.py (Line: 232)
  81. Function: inner
  82. 225 for k, v in request.POST.lists())
  83. 226 elif request.method == "GET":
  84. 227 a = dict((k, v[0] if len(v) == 1 else v)
  85. 228 for k, v in request.GET.lists())
  86. 229 logging.debug("API %s %s %s" % (request.method,
  87. 230 request.path, a))
  88. 231 # Call handler
  89. 232 ==> r = v(request, *args, **kwargs)
  90. 233 # Dump SQL statements
  91. 234 if self.log_sql_statements:
  92. 235 from django.db import connections
  93. 236 tsc = 0
  94. 237 sc = defaultdict(int)
  95. 238 for conn in connections.all():
  96. Variables:
  97. args = ()
  98. view_map = {'POST': <bound method MapAppplication.save_chart of <noc.inv.apps.map.views.MapAppplication object at 0x8087650d0>>, 'GET': <bound method MapAppplication.view_chart of <noc.inv.apps.map.views.MapAppplication object at 0x8087650d0>>}
  99. Form = <class 'django.forms.forms.Form'>
  100. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  101. self = <noc.lib.app.site.Site object at 0x8066f6290>
  102. v = <bound method MapAppplication.view_chart of <noc.inv.apps.map.views.MapAppplication object at 0x8087650d0>>
  103. request = <WSGIRequest
  104. path:/inv/map/chart/4/,
  105. GET:<QueryDict: {u'_dc': [u'1358925691959']}>,
  106. POST:<QueryDict: {}>,
  107. COOKIES:{'csrftoken': '6KDOcaokLaPx9crdyhosHYbSe2priW1z',
  108. 'sessionid': '8bc7810361f62fe6c42029e25f555e0e'},
  109. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  110. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  111. 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
  112. 'HTTP_CONNECTION': 'close',
  113. 'HTTP_COOKIE': 'sessionid=8bc7810361f62fe6c42029e25f555e0e; csrftoken=6KDOcaokLaPx9crdyhosHYbSe2priW1z',
  114. 'HTTP_DNT': '1',
  115. 'HTTP_HOST': '127.0.0.1:8000',
  116. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0',
  117. 'PATH_INFO': u'/inv/map/chart/4/',
  118. 'QUERY_STRING': '_dc=1358925691959',
  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 0x8044c60c0>,
  126. 'wsgi.input': <_io.BytesIO object at 0x8092e5d10>,
  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 = {'chart_id': u'4'}
  136. app = <noc.inv.apps.map.views.MapAppplication object at 0x8087650d0>
  137. ------------------------------------------------------------------------
  138. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement