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

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


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

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/File/configure.zcml 1.8 => 1.9 ===
--- Zope3/lib/python/Zope/App/OFS/Content/File/configure.zcml:1.8	Thu Jul 25 18:09:31 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/File/configure.zcml	Fri Oct  4 16:02:02 2002
@@ -1,38 +1,37 @@
 <zopeConfigure xmlns='http://namespaces.zope.org/zope'>
 
-<!-- File Directives -->
-
 <content class=".File.">
+
   <factory
       id="File"
       permission="Zope.ManageContent"
       title="File"
       description="A File" />
+
   <require
       permission="Zope.View"
       interface=".IFile.IReadFile" />
+
   <require
       permission="Zope.ManageContent"
       interface=".IFile.IWriteFile" />
-</content>
 
-<adapter
-    factory="Zope.App.OFS.Annotation.AttributeAnnotations."
-    provides="Zope.App.OFS.Annotation.IAnnotations."
-    for=".IFile." />
+  <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
 
-<!-- NaiveFile Directives -->
+</content>
 
 <content class=".NaiveFile.">
+
   <factory
       id="NaiveFile"
       permission="Zope.ManageContent"
       title="Naive File"
       description="This is a simple file" />
   <require like_class=".File." />
-</content>
 
-<!-- I18n File Directives -->
+  <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
+
+</content>
 
 <content class=".I18nFile.">
   <factory
@@ -52,10 +51,10 @@
   <require
       permission="Zope.ManageContent"
       attributes="setDefaultLanguage removeLanguage" />
-</content>
 
+  <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
 
-<!-- Further Directives -->
+</content>
 
 <include package=".Views" />