[Zope-DB] Trouble with result objects traversal
Dieter Maurer
dieter at handshake.de
Fri Nov 21 17:13:16 EST 2003
John Coleman wrote at 2003-11-21 11:28 -0500:
> Howdy gang...I think I might have gone crazy (seems to happen a lot with
> ZOPE, being the mindbender that it is!), but I can't get this result
> object traversal thing down. I'm using Zope 2.7 (perhaps that's the
> problem?) and python 2.2.3 on RedHat.
>
> I have a zsql method named "course" that works fine on it's own, when
> called from the test tab. However, when I try to access it directly
> from a url, such as
>
> http://server:8080/registrar/schedule/course/10002
>
> I get the old "Cannot locate object at:
> http://server:8080/registrar/schedule/course/10002" error. And of
> course any python scripts will not run on the result objects.
>
> When I put the ZSQL parameter in the url like
>
> http://server:8080/registrar/schedule/course/crn/10002
>
> I get a KeyError: _r. WTF?!?
Did you look at the traceback? (--> "http://<yourZope>/error_log")
--
Dieter
More information about the Zope-DB
mailing list