RE: [Zope] ZClasses and automatic sub-objects
Yes, it is possible. I do it all day. My lines in the constructor are as follows: <dtml-call expr="propertysheets.StreamingEventProperties.manage_editProperties(REQUEST) "> <dtml-call expr="manage_addProduct['OFSP'].manage_addFolder('logs', 'Log Files')"> <dtml-call expr="manage_addProduct['OFSP'].manage_addFolder('analysis', 'Log File Analysis')"> If I may, I'll piggyback on your question. I have an ObjectManager derived ZClass. It has a folder 'logs' as above. Is it possible to Catalog the contents ('data') of a DTML method contained therein? -----Original Message----- From: Tim Moore [mailto:tmoore@tembel.org] Sent: Thursday, February 15, 2001 4:17 PM To: zope@zope.org Subject: [Zope] ZClasses and automatic sub-objects I have an ObjectManager-derived ZClass. I would like all instances of this ZClass to have a subobject added to them automatically at creation time. This subobject has a fixed id in each instance (in this case, I want to add Image objects with an id of "logo"). Preferably, this object would a permanent part of each instance...you wouldn't be able to delete or rename it in any instance, but you would be able to edit it (e.g., upload image data). So, essentially it would act analogously to a property sheet. Is this even possible? I asked this question a couple of weeks ago and never got a response. -- Tim Moore _______________________________________________ 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 )
participants (1)
-
Farrell, Troy