[Zope] Aquiring question
Dieter Maurer
dieter@handshake.de
Fri, 8 Mar 2002 20:41:14 +0100
Antonio Beamud Montero writes:
Please be more careful when quoting examples.
> Suposse I have the next structure:
>
> A (Folder) with a dictionary with properties
> x = PersistenMapping()
Where is this assignment? Inside the class that also contains the
"get_property" definition?
> def get_property(self, y):
> return x[y]
Then, this will give you a "NameError: x"
> B inside A is another folder, and in a dmtl method of B I want to call
> get_property() not on B, but on A,
Usually:
<dtml-with "A"><dtml-var expr="get_property(...)"></dtml-with>
Dieter