[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Image - configure.zcml:1.9
Jim Fulton
jim@zope.com
Thu, 1 Aug 2002 12:07:12 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Image
In directory cvs.zope.org:/tmp/cvs-serv10436/lib/python/Zope/App/OFS/Content/Image
Modified Files:
configure.zcml
Log Message:
Added type checks to registration functions to make sure interfaces
are passed where expected. A common annoying error is to pass the
module containing an interface, rather than the interface.
Interestingly, this change revealed 4 such errors in the check-in
sources.
=== Zope3/lib/python/Zope/App/OFS/Content/Image/configure.zcml 1.8 => 1.9 ===
<adapter
factory="Zope.App.OFS.Annotation.AttributeAnnotations."
provides="Zope.App.OFS.Annotation.IAnnotations."
- for=".Image." />
+ for=".Image.IImage" />
<content class=".I18nImage.">
<factory
@@ -52,7 +52,7 @@
<adapter
factory="Zope.App.OFS.Annotation.AttributeAnnotations."
provides="Zope.App.OFS.Annotation.IAnnotations."
- for=".I18nImage." />
+ for=".I18nImage.II18nImage" />
<!-- Further Directives -->