[Zope] ZClasses & inheriting property(sheets) : yes/no?

zope@concision.com zope@concision.com
01 Dec 2000 12:58:36 -0500


I've been struggling with this problem myself. In particular I can't
get the parent propertysheet management method to appear on the Views
method list. Is it necessary that the subclass also be contained in
the parent? In my design, there is no containment or acquiring
relationship between the parent class and the subclass.

Jim Washington <jwashin@vt.edu> writes:

> If your parent ZClass is constructed properly, you should be able to add
> the parent class's management tabs by setting a "view". On the "Views"
> tab, look in the Method list for
> propertysheets/[ParentClassPropertySheetName]/manage.  The properties on
> that sheet are accessible just like any of the child class's properties.
> 
> Aaron Straup Cope wrote:
> > 
> > Hi,
> > 
> > If I create a ZClass that inherits another ZClass, do I also inherit the
> > latter's properties/propertysheet? From what I've read so far, I thought
> > the answer was yes but I can't seem to figure out how to *get* at them.
> > 
> > I created a ZClass called "Foo" that inherits a ZClass named "Meta". Meta
> > had two properties : author and title but neither appear to be set when
> > I create a new Foo object.