More ZSQL weirdness (this time with Python Scripts ;-)
Hi, I had the following line in a dtml method, x_report, generated by 'Add Z Search Interface': <dtml-in x> ...where x is a ZSQL Method that takes one parameter: sec Now, when I try to call x_report from a python script, my_ps, as follows: return container.x_report(context,context.REQUEST,sec='XXX') ...I get the following: Error Type: Bad Request Error Value: ['sec'] ...and the only way I can stop it doing that is to change the line in x_report to read: <dtml-in "x(sec=_.getitem('sec'))"> ...which isn't very nice :-( Has anyone seen anything similar or should I stick this in the collector? cheers, Chris PS: Traceback (innermost last): File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: my_ps) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: my_ps) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: my_ps) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: my_ps) File /usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py, line 336, in _exec (Object: my_ps) (Info: ({'script': <PythonScript instance at 9067f20>, 'context': <Folder instance at 90325e8>, 'container': <Folder instance at 90325e8>, 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 2, in my_ps (Object: <lambda>) File /usr/zope/zope-2_3_1b3/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: x_report) File /usr/zope/zope-2_3_1b3/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: x_report) File /usr/zope/zope-2_3_1b3/lib/python/DocumentTemplate/DT_In.py, line 646, in renderwob (Object: x) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/ZRDB/DA.py, line 476, in __call__ (Object: x) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/ZRDB/Aqueduct.py, line 150, in _argdata (Object: x) Bad Request: (see above)
participants (1)
-
Chris Withers