[Zope3-Users] Traverse to nearest site in menu action
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Apr 1 21:36:23 EST 2005
On Thursday 31 March 2005 09:23, Florian Lindner wrote:
> How can I make one of my objects able to be contain a site. Using
> zope.app.component.interfaces.IPossibleSite as a marker interface (like
> <implements interface="zope.app.component.interfaces.IPossibleSite" />
> in the <content> directive) does not make it. There is a link to add a
> site, but I get a system error when trying to add it.
Can you send the traceback? Though I think you simply forgot the security
declarations, so that the necessary methods are not publically available.
<allow
attributes="getSiteManager"
/>
<require
permission="zope.ManageServices"
attributes="setSiteManager"
/>
> Or directly inherit from zope.app.folder.interfaces.IFolder?
That would work too, but it might have unwanted side-effects.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list