[Zope] question about inheriting attributes

Dieter Maurer dieter@handshake.de
Wed, 3 Jul 2002 20:09:59 +0200

Mark A. Lilly writes:
 > I am hoping to use ZClasses to setup a base class, with attributes which i
 > would like to be available to ZClass instances of subclasses of that base
 > class. But it doesn't seem that ZClass attributes are inheritable?
They are, although you do not see it in the management interface
of the derive ZClass.

  The derived ZClass inherits both the property sheets and the
  properties from the base class. They are not listed
  in the derive class' PropertySheets tab but you can
  create views for them.

 > Can i do this with python classes?
You can, but you need to be careful in defining "_properties"
in the derived class.