[Zope] restrict Add drop-down list in Folder Contents view

Florent Guillaume fg@nuxeo.com
Sun, 24 Mar 2002 19:57:13 +0000 (UTC)


That's one of the features of OrderedFolder.
http://dev.zope.org/Members/srichter/Products/OrderedFolder

Florent


John Hunter  <jdhunter@ace.bsd.uchicago.edu> wrote:
> 
> I have a Folder and I want to restrict the types of objects the
> managers of that folder can add to it.  In the Security tab, I can
> limit the kinds of objects that can be added, and this works fine, but
> the forbidden objects still show up in the drop down list in the
> Contents view.
> 
> I know I can create a ZClass derived from ObjectManager and just
> select the limited set of Subobjects, but this imposes extra overhead
> and a proliferation of specialized container ZClasses.  I would really
> just like a Folder where the manager sees only the kinds of objects he
> has the permission to add in the 'Add' select list.
> 
> Any suggestions on how I can do this?
-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 10  http://nuxeo.com  mailto:fg@nuxeo.com