[Zope] Instance within Instance
Tim Cook
twcook@iswt.com
Sun, 26 Nov 2000 16:12:12 -0600
Daryl Stultz wrote:
> I want class2 to be created INSIDE of the class 1 instance. Instead,
> class2 (always with an id of "myClass2") is created at the same level as
> the class1 instance. How do I change the namespace to get the class2
> instance inside class1?
NOT TESTED, but simialr to something I do:
<dtml-call expr="class1.createInObjectManager(REQUEST['id'],
REQUEST)">
<dtml-with "_.getitem(id)">
<dtml-call "REQUEST.set('id', 'myClass2')">
<dtml-call "class2_add(_.None, _, NoRedir=1)">
</dtml-with>
HTH,
-- Tim Cook, President --
Free Practice Management,Inc. | http://FreePM.com
Office: (901) 884-4126
Censorship: The reaction of the ignorant to freedom.