Re: [Zope] How to call ancestral method in ZClass method?
Hi Steve, Well, if my rack object is stored persistently, I guess no skinscript would get fired, am I right? In that case, I need to override manage_delete, and call it in this statement: dtml-call "PortalMember.manage_delete()" Zope complains NameError of PortalMember. If I changed to: dtml-call "_ZClass_for_DataSkin.manage_delete()" Zope refuses the upload of the dtml method all together! Any clues? Dirksen --- Steve Spicklemire [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] 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 ) __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] How to call ancestral method in ZClass method?
Hi Steve, Well, if my rack object is stored persistently, I guess no skinscript would get fired, am I right? In that case, I need to override manage_delete, and call it in this statement: dtml-call "PortalMember.manage_delete()" Zope complains NameError of PortalMember. If I changed to: dtml-call "_ZClass_for_DataSkin.manage_delete()" Zope refuses the upload of the dtml method all together! Any clues? Dirksen --- Steve Spicklemire [EMAIL PROTECTED] 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 __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/ ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] How to call ancestral method in ZClass method?
Hi Dirksen, Are you deleting a Rack? or an instance of a DataSkin that is managed by a Rack? -steve "Dirksen" == Dirksen [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] 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/ ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] How to call ancestral method in ZClass method?
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 [EMAIL PROTECTED] 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 - [EMAIL PROTECTED] 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 ) ___ Zope maillist - [EMAIL PROTECTED] 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 )