[Zope] Strange behavior in folderish class
Daniel Talas
Daniel Talas <daniel@talasweb.com>
Thu, 6 Feb 2003 03:10:00 -0500
Howdy -
I have a python product, with a simple class MyClass derived from Folder. It has a simple
method myMethod with the following code:
def myMethod(self):
return self.id
I have several nested instances of myClass on my site, but here is a
simplest case:
myClassInstanceA
|
|__myClassInstanceB
I also have a simple template (zpt), with the following code:
<span tal:content="here/myMethod"/>
Here is the problem: when I go to
http://mysite/myClassInstanceA/myClassInstaceB, the output of my zpt
is always 'myClassInstanceA', where I would expect it to be
'myClassInstanceB'. What am I missing? Do I need to do more than
just inherit from Folder class? Do I need anything special in my
__init__ method?
Thanks,
Daniel.