--On Thursday, May 27, 2004 12:13 PM -0500 sathya <sathya@zeomega.com> wrote:
at first glance it seems like your python code is not indented properly ur return statement is not within the if block
The copy/paste into my mail client screwed it up a bit. but it is correct: Here it is better indented: def __bobo_traverse__(self,REQUEST=None,NAME=None): if NAME == 'foobar': #gettattr_str = str(getattr(self, 'viewDomain')) #self_str = str(self) #err_str = "gettattr_str:%s \n self_str:%s"%(gettattr_str,self_str) #raise 'Ooops', err_str return getattr(self, 'viewDomain') else: # probably from unrestrictedTraverse return getattr(self, NAME) One more thing, this works as expected: <http://10.0.10.28:8080/yspanel/foobar> Meaning that is does call my viewDomain method which displays the REQUEST dict. But this fails: <http://10.0.10.28:8080/yspanel/foobar/1/2> Error: Zope has encountered a problem publishing your object. Cannot locate object at: http://10.0.10.28:8080/yspanel/foobar/1