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

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


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

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/Image/configure.zcml 1.9 => 1.10 ===
--- Zope3/lib/python/Zope/App/OFS/Content/Image/configure.zcml:1.9	Thu Aug  1 12:06:41 2002
+++ Zope3/lib/python/Zope/App/OFS/Content/Image/configure.zcml	Fri Oct  4 16:02:02 2002
@@ -5,26 +5,28 @@
   <permission id="Zope.AddImages" title="Add Images" />
 
   <content class=".Image.">
+
     <factory
         id="Image"
         permission="Zope.ManageContent"
         title="Image"
         description="An Image" />
+
     <require
         permission="Zope.View"
         interface="Zope.App.OFS.Content.File.IFile.IReadFile" />
+
     <require
         permission="Zope.View"
         interface=".Image.IImage" />
+
     <require
         permission="Zope.ManageContent"
         interface="Zope.App.OFS.Content.File.IFile.IWriteFile" />
-  </content>
 
-  <adapter
-      factory="Zope.App.OFS.Annotation.AttributeAnnotations."
-      provides="Zope.App.OFS.Annotation.IAnnotations."
-      for=".Image.IImage" />
+    <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
+
+  </content>
 
   <content class=".I18nImage.">
     <factory
@@ -47,14 +49,10 @@
     <require
         permission="Zope.ManageContent"
         attributes="setDefaultLanguage removeLanguage" />
-  </content>
 
-  <adapter
-      factory="Zope.App.OFS.Annotation.AttributeAnnotations."
-      provides="Zope.App.OFS.Annotation.IAnnotations."
-      for=".I18nImage.II18nImage" />
+    <implements interface="Zope.App.OFS.Annotation.IAttributeAnnotatable." />
 
-  <!-- Further Directives -->
+  </content>
 
   <include package=".Views" />