[Zope] Properties in a ZClass

Lars Heber Lars.Heber@t-systems.de
Fri, 19 Oct 2001 13:06:58 +0200


Casey Duncan wrote:

> On Thursday 18 October 2001 02:25 pm, Behrens Matt - Grand Rapids allegedly
> wrote:
> > Casey Duncan wrote:
> > >
> > > That depends. Do you want users to be able to add properties to the
> > > instances or to the entire class?
> >
> > I'm interested in this, even if Lars isn't... to the instances.
>
> Actually that's the eaiser of the two. Just make your ZClass subclass
> something with a property sheet (such as File, Folder or DTML Document), and
> then you can use the standard calls such as: manage_addProperty,
> manage_changeProperties, etc. on the instances.

That's fine! But I want the users (managers in their own folders) to use the
standard Zope interface. So, all I want is that "Add" button in the property
sheet view of my ZClass, so that users are able to add their own properties to
my ZClass.
It's necessary for a kind of indexing, btw. Otherwise, I'd have to put my ZClass
in a separate folder and give that folder the desired properties.

Any idea how to get that "Add" button in the property sheet view?

Thanks.

--
Lars Heber, mailto:Lars.Heber@t-systems.de

T-Systems, debis Systemhaus GEI GmbH, Geschaeftsstelle Sachsen