[Zope-DB] Error on traversing to ZSQL?
Dieter Maurer
dieter at handshake.de
Thu Jul 22 13:56:11 EDT 2004
Qingliang Li wrote at 2004-7-21 18:48 +0800:
>When I try: http://localhost:8080/employee_by_id/emp_id/42/viewEmployee
>The traceback goes like this:
>
>Traceback (innermost last):
> Module ZPublisher.Publish, line 91, in publish
> Module ZPublisher.BaseRequest, line 361, in traverse
> Module Shared.DC.ZRDB.DA, line 575, in __getattr__
>KeyError: '_r'
>
>I try to omit "emp_id" and it really works ONLY IF I select the checkbox of "Allow "simple" direct traversal" in the "Advanced" tab of employee_by_id.
>But that way I can only traverse one parameter to the Z SQL, that means if the Z SQL contains more than one parameters, this method won't work!
As far as I know, direct traversal always works only for SQL
methods with a single argument -- whether or not you use simple
direct traversal.
That non-"simple" direct traversal does not work seems
to be a bug. Please file a bug report to
<http://www.zope.org/Collectors/Zope>
--
Dieter
More information about the Zope-DB
mailing list