[Zope] Passing arg by URL
Lee Marzke
lmarzke@kns.com
Mon, 12 Mar 2001 18:29:11 -0500 (EST)
Why doesn't calling dir/request_by_id/requestid/7
work with the following ZSQL method ?
== request_by_id ZSQL method ==
<params>requestid:int</params>
select * from table WHERE
requestid=<dtml-sqlvar requestid type=int >
I get the following error:
Invalid integer value for requestid
Traceback (innermost last):
File /sw/scm/usr/var/Zope230/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
File /sw/scm/usr/var/Zope230/lib/python/ZPublisher/Publish.py, line 187, in
publish
File /sw/scm/usr/var/Zope230/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: request_by_id)
File /sw/scm/usr/var/Zope230/lib/python/ZPublisher/Publish.py, line 162, in
publish
File /sw/scm/usr/var/Zope230/lib/python/ZPublisher/BaseRequest.py, line 363,
in traverse
File /sw/scm/usr/var/Zope230/lib/python/Shared/DC/ZRDB/DA.py, line 519, in
__getitem__
(Object: request_by_id)
File /sw/scm/usr/var/Zope230/lib/python/Shared/DC/ZRDB/DA.py, line 482, in
__call__
(Object: request_by_id)
File /sw/scm/usr/var/Zope230/lib/python/DocumentTemplate/DT_String.py, line
538, in __call__
(Object: <string>)
File /sw/scm/usr/var/Zope230/lib/python/Shared/DC/ZRDB/sqlvar.py, line 183,
in render
(Object: requestid)
ValueError: (see above)