[Zope] Subclassing (Was Re: [Zope] Restricting Z-Class Creation)
Stephen Pitts
smpitts@midsouth.rr.com
Sun, 28 Nov 1999 08:28:51 -0600
On Sun, Nov 28, 1999 at 09:30:30AM +0200, Itamar Shtull-Trauring wrote:
> Stephen Pitts wrote:
> >
> > How can I restrict the folders that a Z-Class can be created in?
>
> If a ZClass ItemClass is created inside an ObjectManager or Folder ZClass -
> FolderClass, you'll only be able to add ItemCLass instances in
> FOlderclasses.
>
> > Also, I've subclassed from Folder to create a folderish Z-Class; how do I
> > control what can be added to it?
>
> You can do it on an instance by instance basis using permissions. If you
> want to set this for all instances you need to subclass from ObjectManager
> instead, and then there's a "Subobjects" tab that lets you set this.
>
> --
> Itamar S.T. itamars@ibm.net
>
Thanks for the info! Is there any way to change the classes a ZClass
subclasses from without recreating the ZClass?
--
Stephen Pitts
smpitts@midsouth.rr.com
webmaster - http://www.mschess.org