[Zope3-dev] Re: Death to IContentContainer

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jan 3 13:28:12 EST 2006


On Wednesday 14 December 2005 10:05, S.Martin wrote:
> There's another important last reference within
>
> zope.app.container.browser.configure.zcml
>
>    <view
>        for="zope.app.container.interfaces.IContentContainer"
>        name="+"
>        menu="zmi_actions" title="Add"
>        class="zope.app.container.browser.adding.ContentAdding"
>        permission="zope.ManageContent"
>        allowed_attributes="addingInfo isSingleMenuItem hasCustomAddView">
>
>      <page name="index.html"  template="add.pt" />
>      <page name="action.html" attribute="action" />
>
>    </view>
>
> It should be fixed by
>
>    <view
>        for="zope.app.container.interfaces.IWriteContainer"

The correct fix is to remove that directive. The entire point of 
IContentContainer was to provide an easy method for registering the add view 
for a given container without generically having it for all containers. See 
rev. 41106.

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-dev mailing list