[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/ZPTPage - configure.zcml:1.9

Jim Fulton jim@zope.com
Fri, 4 Oct 2002 16:02:04 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/ZPTPage
In directory cvs.zope.org:/tmp/cvs-serv7461/lib/python/Zope/App/OFS/Content/ZPTPage

Modified Files:
	configure.zcml 
Log Message:
Changed the configuration to simple say that the content component
implements IAttributeAnnotatable. With that, the content gets the
needed adapter to IAnnotations and the config file need not register
one.



=== Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/configure.zcml 1.8 => 1.9 ===
--- Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/configure.zcml:1.8	Thu Aug  1 12:06:41 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/ZPTPage/configure.zcml	Fri Oct  4 16:02:03 2002
@@ -4,24 +4,26 @@
 >
 
   <content class=".ZPTPage.">
+
     <factory
         id="ZPTPage"
         permission="Zope.ManageContent"
         title="ZPT Page"
         description="A simple, content-based Page Template" />
+
     <require permission="Zope.View"
                       attributes="content_type __call__" />
+
     <require permission="Zope.ManageContent"
                       interface=".ZPTPage.IZPTPage" />
+
     <require permission="Zope.View"
                       interface=".ZPTPage.IRenderZPTPage" />
-  </content>
 
+    <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
+
+  </content>
 
-  <adapter
-      factory="Zope.App.OFS.Annotation.AttributeAnnotations."
-      provides="Zope.App.OFS.Annotation.IAnnotations."
-      for=".ZPTPage.IZPTPage" />
 
 
   <include package=".Views" />