Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2013-01-23 11:21:51.065267)
- Working directory: /opt/noc
- <type 'exceptions.TypeError'>
- cannot concatenate 'str' and 'int' objects
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/inv/apps/map/views.py (Line: 80)
- Function: view_chart
- 73 # Restore state
- 74 state = chart.get_state("mo", mo.id)
- 75 y = state.get("y")
- 76 shape = self.get_object_shape(mo)
- 77 h = shape.height
- 78 if y is None:
- 79 y = dy
- 80 ==> dy += h + ds
- 81 n = {
- 82 "type": "node",
- 83 "id": mo.id,
- 84 "x": state.get("x", dx),
- 85 "y": y,
- 86 "w": shape.width,
- Variables:
- links = [<Link: (bb-niickd...
- request = <WSGIRequest
- path:/inv/map/chart/4/,
- GET:<QueryDict: {u'_dc': [u'1358925691959']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '6KDOcaokLaPx9crdyhosHYbSe2priW1z',
- 'sessionid': '8bc7810361f62fe6c42029e25f555e0e'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=8bc7810361f62fe6c42029e25f555e0e; csrftoken=6KDOcaokLaPx9crdyhosHYbSe2priW1z',
- 'HTTP_DNT': '1',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0',
- 'PATH_INFO': u'/inv/map/chart/4/',
- 'QUERY_STRING': '_dc=1358925691959',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8044c60c0>,
- 'wsgi.input': <_io.BytesIO object at 0x8092e5d10>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- if_ids = set([ObjectId('50dbfc6ff3b6824ede001bc8'), ...
- shape = <noc.lib.stencil.Stencil object at 0x807cbad50>
- mo_links = defaultdict(<type 'list'>, {<ManagedObject: ...
- self = <noc.inv.apps.map.views.MapAppplication object at 0x8087650d0>
- state = {}
- dh = 50
- mos = [<ManagedObject: 7304>, <ManagedObject: ...
- interfaces = [<Interface: cat-: Fa 0/24>]
- chart = <NetworkChart: MEN_Full>
- link = <Link: (cat-: Fa 0/24, rtr: Fa 0/0)>
- dx = 10
- dy = 10
- chart_id = u'4'
- dw = 100
- ds = 20
- mo_ids = [470, 283, ...
- i = <Interface: arzamas: Fa 0/0>
- h = '40'
- linked_ports = defaultdict(<type 'list'>, {<Link: (cat-...
- p_id = '193:50fa1cc5f3b682d12c0031d1'
- o = <ManagedObject: zav>
- n = {'collapsed': False, 'shape': 'Cisco/layer_3_switch', 'address': ...
- r = [{'collapsed': True, 'shape': 'Cisco/layer_3_switch', 'address': ...
- y = 10
- mo = <ManagedObject: cat-avrora3g>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/site.py (Line: 232)
- Function: inner
- 225 for k, v in request.POST.lists())
- 226 elif request.method == "GET":
- 227 a = dict((k, v[0] if len(v) == 1 else v)
- 228 for k, v in request.GET.lists())
- 229 logging.debug("API %s %s %s" % (request.method,
- 230 request.path, a))
- 231 # Call handler
- 232 ==> r = v(request, *args, **kwargs)
- 233 # Dump SQL statements
- 234 if self.log_sql_statements:
- 235 from django.db import connections
- 236 tsc = 0
- 237 sc = defaultdict(int)
- 238 for conn in connections.all():
- Variables:
- args = ()
- 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>>}
- Form = <class 'django.forms.forms.Form'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x8066f6290>
- v = <bound method MapAppplication.view_chart of <noc.inv.apps.map.views.MapAppplication object at 0x8087650d0>>
- request = <WSGIRequest
- path:/inv/map/chart/4/,
- GET:<QueryDict: {u'_dc': [u'1358925691959']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': '6KDOcaokLaPx9crdyhosHYbSe2priW1z',
- 'sessionid': '8bc7810361f62fe6c42029e25f555e0e'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru,en-us;q=0.7,en;q=0.3',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=8bc7810361f62fe6c42029e25f555e0e; csrftoken=6KDOcaokLaPx9crdyhosHYbSe2priW1z',
- 'HTTP_DNT': '1',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0',
- 'PATH_INFO': u'/inv/map/chart/4/',
- 'QUERY_STRING': '_dc=1358925691959',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x8044c60c0>,
- 'wsgi.input': <_io.BytesIO object at 0x8092e5d10>,
- '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 = {'chart_id': u'4'}
- app = <noc.inv.apps.map.views.MapAppplication object at 0x8087650d0>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement