Hello all: Suposse I have the next structure: A (Folder) with a dictionary with properties x = PersistenMapping() def get_property(self, y): return x[y] 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, (this manner I can use the x dicctionary, i.e. acquire the x dicctionary too)... How I can do this? Is it possible? In the dtml method get_property is evaluated on B, and it doesn't find a dictionary instance... Greetings -- Microsoft merges technologoies: Windows CE + Windows ME + Windows NT = Windows CEMENT ---- Antonio Beamud Montero Agora Systems S.A. http://www.agoratechnologies.com
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
participants (2)
-
Antonio Beamud Montero -
Dieter Maurer