[Zope-DB] Trouble with result objects traversal
    John Coleman 
    jcoleman at sbc.edu
       
    Wed Dec  3 13:49:49 EST 2003
    
    
  
Should have written back with this sooner...Thanksgiving and all.  :)
Here is my traceback from 
http://server:8080/registrar/schedule/course/crn/10002
Traceback (innermost last):
   Module ZPublisher.Publish, line 89, in publish
   Module ZPublisher.BaseRequest, line 358, in traverse
   Module Shared.DC.ZRDB.DA, line 569, in __getattr__
KeyError: _r
Am I misunderstanding a ZOPE fundamental here?  I am trying something 
explicitly stated to work in The ZOPE Book...
Thanks again,
John
Dieter Maurer wrote:
> 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")
> 
    
    
More information about the Zope-DB
mailing list