[Zope] Getting Propertysheets of Baseclasses

Dieter Maurer dieter@handshake.de
Fri, 6 Jun 2003 20:39:10 +0200


Andreas Pakulat wrote at 2003-6-5 19:41 +0200:
 > ...
 > I have a ZClass with a property sheet named Attributes and then I derive
 > a ZClass from the first one. This new ZClass gets a propertysheet
 > NewAttr, but in it's _add script I need to set some properties which are
 > only in the base class' property sheet. How do I acces it, as
 > .Attributes.manage_editiProperties doesn`t work

You access the inherited property sheet in the same way you
access a property sheet directly defined in your class.

It looks like:

   instance.propertysheets.name_of_your_sheet....


Dieter