[Zope3-checkins] SVN: Zope3/trunk/src/zwiki/ Don't use
IContentContainer but explicit containerViews zcml directive
Julien Anguenot
ja at nuxeo.com
Sat Jun 18 12:31:21 EDT 2005
Log message for revision 30848:
Don't use IContentContainer but explicit containerViews zcml directive
Changed:
U Zope3/trunk/src/zwiki/browser/configure.zcml
U Zope3/trunk/src/zwiki/configure.zcml
U Zope3/trunk/src/zwiki/interfaces.py
-=-
Modified: Zope3/trunk/src/zwiki/browser/configure.zcml
===================================================================
--- Zope3/trunk/src/zwiki/browser/configure.zcml 2005-06-18 16:24:40 UTC (rev 30847)
+++ Zope3/trunk/src/zwiki/browser/configure.zcml 2005-06-18 16:31:20 UTC (rev 30848)
@@ -21,6 +21,12 @@
permission="zope.ManageContent"
view="AddWiki.html" />
+ <browser:containerViews
+ for="zwiki.interfaces.IWiki"
+ contents="zwiki.AddWikiPage"
+ add="zwiki.AddWikiPage"
+ />
+
<browser:page
name="toc.html"
for="zwiki.interfaces.IWiki"
Modified: Zope3/trunk/src/zwiki/configure.zcml
===================================================================
--- Zope3/trunk/src/zwiki/configure.zcml 2005-06-18 16:24:40 UTC (rev 30847)
+++ Zope3/trunk/src/zwiki/configure.zcml 2005-06-18 16:31:20 UTC (rev 30848)
@@ -91,8 +91,6 @@
<content class=".wiki.Wiki">
- <implements interface="zope.app.container.interfaces.IContentContainer" />
-
<implements
interface="zope.app.annotation.interfaces.IAttributeAnnotatable" />
Modified: Zope3/trunk/src/zwiki/interfaces.py
===================================================================
--- Zope3/trunk/src/zwiki/interfaces.py 2005-06-18 16:24:40 UTC (rev 30847)
+++ Zope3/trunk/src/zwiki/interfaces.py 2005-06-18 16:31:20 UTC (rev 30848)
@@ -22,7 +22,7 @@
from zope.schema import Field
from zope.app.container.interfaces import IContained
-from zope.app.container.interfaces import IContainer, IContentContainer
+from zope.app.container.interfaces import IContainer
from zope.app.container.constraints import ContainerTypesConstraint
from zope.app.container.constraints import ItemTypePrecondition
from zope.app.event.interfaces import IObjectEvent
@@ -56,7 +56,7 @@
vocabulary = "SourceTypes")
-class IWikiPage(IContainer, IContentContainer):
+class IWikiPage(IContainer):
"""A single Wiki Page content object.
The Wiki page is a simple content object that stores the content
More information about the Zope3-Checkins
mailing list