[Zope] Set _allowed_meta_types on folder instances without creating a new product?
Dieter Maurer
dieter@handshake.de
Thu, 2 May 2002 21:50:35 +0200
Jeff Kowalczyk writes:
> > I told you how to define "_allowed_meta_types" on a per instance
> > basis but did not check that "_allowed_meta_types" has the desired
> effect.
> > When your message above arrived, I tried to find a use
> > of "_allowed_meta_types", but the Zope sources do not
> > reference it. Where do you know about it?
>
> I've been using it in mxmObjectManager derived product classes to limit
> the Metatype list.
> ...
> It works exactly as expected, but it would be very useful to apply this
> to existing folders which are specialized in purpose, but require no
> special class of their own.
To apply it to existing folder, you need to redefine their
"all_meta_types" method - in a similar spirit the "mxmObjectManager" did...
Dieter