Copying a dtml method when creating a ZClass instance
Hi, I need some help. I have a DTML method at the root of Zope called 'Template'. How can I make the constructor of a ZClass (folderish) to copy this method to each of its instances ? Can someone provide me with a complete snippet to add in the ZClass constructor ? Many thanks. Kamon _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.
kamon ayeva wrote:
I need some help. I have a DTML method at the root of Zope called 'Template'. How can I make the constructor of a ZClass (folderish) to copy this method to each of its instances ? Can someone provide me with a complete snippet to add in the ZClass constructor ?
It might be easier to move the the DTML document to the Product your ZClass is in. Then you could use the examples from the ZCMG and ZDG on zope.org/Documentation about factories and cloning... HTH, Chris PS: I think something like manage_clone is what you're after...
Hi Kamon, kamon ayeva wrote:
Hi,
I need some help. I have a DTML method at the root of Zope called 'Template'. How can I make the constructor of a ZClass (folderish) to copy this method to each of its instances ? Can someone provide me with a complete snippet to add in the ZClass constructor ?
Copy? Why? aquisition should make it 'visible' in every subfolder automatically. Regards Tino
participants (3)
-
Chris Withers -
kamon ayeva -
Tino Wildenhain