This, or some variation of this, may do the trick (untested): <dtml-with toys> <dtml-with "manage_addProduct['YourProduct']"> <dtml-call "REQUEST.set('id', 'newid')"> <dtml-call "YourZClass_add(_.None, _)"> </dtml-with> </dtml-with> Kevin ----- Original Message ----- From: "Patrick J.M. Keane" <keane@danet.com> To: <zope@zope.org> Sent: Sunday, May 28, 2000 6:33 PM Subject: [Zope] Another question
By default, when a new instance of a ZClass is created, it is dropped into the same directory as the calling forms and instance creation methods... Is there an easy way to designate the final location for the instance. Say, as an example that I had administrative methods and documents all under foo/admin, but wanted new products to be placed in a parallel directory such as foo/toys, so that the permissions could be properly set for admin, allow just managers to access those methods, while letting the results show publicly in foo/toys?
Thanks pk
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )