[Zope] ZSQL method from python script
Kerekes Lajos
lkerekes@xperts.hu
Mon, 30 Jul 2001 14:36:30 +0200
Kerekes Lajos wrote:
> Hello!
>
> How can I call ZSQL method, from python script?
> And how can I use the result set of the ZSQL method?
>
> Thanks:
>
> Lajos Kerekes
>
Since this email, I found some help in Zope Book, but still I have
error.
I have an "update" ZSQL method, the argument is 'id'.
If I call it from python script in this way:
------------------
for result in context.updateState(id):
------------------
I get an error.
-----------
Error Type: Bad Request
Error Value: ['id']
.
.
.
.
File
/usr/local/zope/Zope-2.3.3-linux2-x86/lib/python/Shared/DC/ZRDB/Aqueduct.py,
line 150, in _argdata
(Object: updateMLState)
Bad Request: (see above)
-----------
What is the problem.
Thanks:
Lajos