On Monday 20 June 2005 12:05, KIRSCHHOFFER Yannick wrote:
> I created a "folderish" component roughly based on the MessageBoard
> example. I'd like to prevent the menu from displaying some object types to
> restrict objects that can be added in this folder.
> I tried to set some _setitem_ preconditions. It seemed to forbit
> unauthorized insertions, but did not affect the menu.
> Can anyone help me with this one ??
It should have affected the menu. Does the messageboard demo work as expected?
IOW, does the message board allow you only to add messages? If so, you can
just change the example to you likings. Note that you need conditions on the
container and the contained object.
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
Zope3-dev mailing list