[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore - creatorannotator.py:1.2
Christian Theune
ct@gocept.com
Thu, 27 Mar 2003 11:09:33 -0500
Update of /cvs-repository/Zope3/src/zope/app/dublincore
In directory cvs.zope.org:/tmp/cvs-serv3382
Modified Files:
creatorannotator.py
Log Message:
- Using queryAdapter now so we can fallback to not annotating the
object.
=== Zope3/src/zope/app/dublincore/creatorannotator.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/dublincore/creatorannotator.py:1.1 Thu Mar 27 07:51:46 2003
+++ Zope3/src/zope/app/dublincore/creatorannotator.py Thu Mar 27 11:09:33 2003
@@ -17,7 +17,7 @@
"""
__metaclass__ = type
-from zope.component import getAdapter
+from zope.component import queryAdapter
from zope.app.interfaces.dublincore import IZopeDublinCore
from zope.app.interfaces.event import ISubscriber
from zope.security.management import getSecurityManager
@@ -28,7 +28,7 @@
__implements__ = ISubscriber
def notify(self, event):
- dc = getAdapter(event.object, IZopeDublinCore)
+ dc = queryAdapter(event.object, IZopeDublinCore)
if dc is None:
return