Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

traceback if argument tqx ends semicolon in function toResponse #17

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions