[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore - annotatableadapter.py:1.8

Jim Fulton jim at zope.com
Sat Mar 6 11:50:52 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/dublincore
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/dublincore

Modified Files:
	annotatableadapter.py 
Log Message:
Converted most getAdapter calls to use interface calls instead.


=== Zope3/src/zope/app/dublincore/annotatableadapter.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/dublincore/annotatableadapter.py:1.7	Thu Mar  4 17:42:01 2004
+++ Zope3/src/zope/app/dublincore/annotatableadapter.py	Sat Mar  6 11:50:21 2004
@@ -17,7 +17,6 @@
 
 __metaclass__ = type
 
-from zope.component import getAdapter
 from zope.fssync.server.entryadapter import ObjectEntryAdapter
 from zope.fssync.server.interfaces import IObjectFile
 from zope.interface import implements
@@ -37,7 +36,7 @@
     annotations = None
 
     def __init__(self, context):
-        annotations = getAdapter(context, IAnnotations)
+        annotations = IAnnotations(context)
         dcdata = annotations.get(DCkey)
         if dcdata is None:
             self.annotations = annotations




More information about the Zope3-Checkins mailing list