[Zope] How to call ancestral method in ZClass method?
Steve Spicklemire
steve@spvi.com
Fri, 5 Jan 2001 06:10:02 -0500 (EST)
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 )