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
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to