You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
DataTable.ToResponse
In certain cases the argument tqx end with a Semicolon causing the the
following traceback
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/cherrypy/_cprequest.py", line 645, in respond
response.body = self.handler()
File "/usr/lib/python2.6/site-packages/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/cherrypy/_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "/opt/sandbox/IDIPYT/trunk/src/py/_RECVIEW/Ajax.py", line 101, in timeLine
return table.ToResponse(tqx = tqx)
File "/usr/local/lib/python2.6/site-packages/gviz_api.py", line 1041, in ToResponse
tqx_dict = dict(opt.split(":") for opt in tqx.split(";"))
ValueError: dictionary update sequence element #1 has length 1; 2 is required
adding at line 1033 solves the issue
if tqx.endswith(";") :
tqx = tqx[:-1]
Original issue reported on code.google.com by rudolf.h...@gmail.com on 17 Oct 2011 at 11:15