Hi Dirksen, Are you deleting a Rack? or an instance of a DataSkin that is managed by a Rack? -steve
"Dirksen" == Dirksen <dirksen_lau@yahoo.com> writes:
Dirksen> Hi Steve, Dirksen> Well, if my rack object is stored persistently, I guess Dirksen> no skinscript would get fired, am I right? In that case, Dirksen> I need to override manage_delete, and call it in this Dirksen> statement: Dirksen> <dtml-call "PortalMember.manage_delete()"> Dirksen> Zope complains NameError of PortalMember. If I changed Dirksen> to: Dirksen> <dtml-call "_ZClass_for_DataSkin.manage_delete()"> Dirksen> Zope refuses the upload of the dtml method all together! Dirksen> Any clues? Dirksen> Dirksen Dirksen> --- Steve Spicklemire <steve@spvi.com> wrote: >> Hi Dirksen, >> >> In python you would normally do: >> >> super_class_object.manage_delete(self) >> >> but it might be easier/better in the case of a DataSkin to use >> a SkinScript 'WHEN OBJECT DELETED xxx '. >> >> -steve >> >> >>>>> "Dirksen" == Dirksen <dirksen_lau@yahoo.com> writes: >> Dirksen> I have a ZClass 'stuff' which is a subclass of Dirksen> DataSkin. 'stuff' overrides 'manage_delete' method, so as Dirksen> to do some extra clean-up jobs. After that, it will call Dirksen> its ancestor's 'manage_delete' method to wipe itself Dirksen> off. In java, you can do this by calling Dirksen> 'super.manage_delete()', but how to do it in zope? >> Dirksen> Dirksen >> Dirksen> __________________________________________________ Do You Dirksen> Yahoo!? Yahoo! Photos - Share your holiday photos Dirksen> online! http://photos.yahoo.com/ >> Dirksen> _______________________________________________ Zope Dirksen> maillist - Zope@zope.org Dirksen> http://lists.zope.org/mailman/listinfo/zope ** No cross Dirksen> posts or HTML encoding! ** (Related lists - Dirksen> http://lists.zope.org/mailman/listinfo/zope-announce Dirksen> http://lists.zope.org/mailman/listinfo/zope-dev ) >> Dirksen> __________________________________________________ Do You Dirksen> Yahoo!? Yahoo! Photos - Share your holiday photos Dirksen> online! http://photos.yahoo.com/