On Sunday 07 January 2007 08:10, Christophe Combelles wrote:
> I understand there is an inconsistency between these two interfaces, and
> this is not a correct solution.
> But using just containers() on content objects doesn't prevent their
> containers from displaying everything in the Add Menu.
> It just prevents from adding these objects in other containers.
I just always use both, which is architecturally the right thing to do.
> Is there a way to restrict the Add Menu list of a specific container?
No, the constraints are the correct way. However, the menu code is really
slow; I hope you are not planning to use it in production.
> (actually maybe I shouldn't bother with this, since the zmi and the addmenu
> is not an end solution for an application?).
Yep. :-) I agree.
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-users mailing list