On Thu, 27 May 1999 jhauser@ifm.uni-kiel.de wrote:
Tried to gather data remotely with a ZClient. There is the possibility to give type arguments to the name/keyword pairs. This does not function from the commandline, right? I get a string in every case. Example:
python Client.py http://localhost:9222/test/rinfo 'data=[1,2,3]'
hmm.. did you pass the type as data:<type>?
The real bug is with the file specifier. There is only an open in line 625, this should be an v=open(v).read()
or do I miss something?
It appears that files you upload are instances of the FileUpload class (lib/python/ZPublisher/HTTPRequest.py) You'll need to call .read() on these objects that are passed to you to get the full text. I'm assuming that through the magic of DTML they must get interpreted as strings when you use them in a #var statement for example. Hope this helps, -jordan.