----- Original Message ----- From: "Brett Carter" <bacarter@kavi.com> To: <zope-dev@zope.org> Sent: Tuesday, March 14, 2000 1:32 PM Subject: [Zope-dev] Adding zclasses to subfolders
I am trying to add a zclass programmatically to a subfolder in another zclass - I've checked the archives and documentation, and haven't been able to figure this out. If I am inside ZClassA and want to create a new instance of ZClassB inside the folder 'bar' which is in ZClassA, it seems you would do something like this (from inside ZClassA): <dtml-with "manage_addProduct['DocumentAppProduct']"> <dtml-call "bar.ZClassB_add(_.None, _, NoRedir=1)"> </dtml-with>
I believe this should actually be: <dtml-with "bar.manage_addProduct['DocumentAppProduct']"> <dtml-call "ZClassB_add(_.None, _, NoRedir=1)"> </dtml-with> or <dtml-with bar> <dtml-with "manage_addProduct['DocumentAppProduct']"> <dtml-call "ZClassB_add(_.None, _, NoRedir=1)"> </dtml-with> </dtml-with> Kevin