[Zope3-checkins] CVS: Zope3/src/zope/app/dublincore/browser -
metadataedit.py:1.3
Jim Fulton
jim at zope.com
Sat Mar 6 11:50:53 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/dublincore/browser
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/dublincore/browser
Modified Files:
metadataedit.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/dublincore/browser/metadataedit.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/dublincore/browser/metadataedit.py:1.2 Mon Mar 1 10:02:50 2004
+++ Zope3/src/zope/app/dublincore/browser/metadataedit.py Sat Mar 6 11:50:22 2004
@@ -20,7 +20,6 @@
from zope.app.event.objectevent import ObjectAnnotationsModifiedEvent
from zope.app.i18n import ZopeMessageIDFactory as _
from zope.app.dublincore.interfaces import IZopeDublinCore
-from zope.component import getAdapter
__metaclass__ = type
@@ -30,7 +29,7 @@
def edit(self):
request = self.request
formatter = self.request.locale.dates.getFormatter('dateTime', 'medium')
- dc = getAdapter(self.context, IZopeDublinCore)
+ dc = IZopeDublinCore(self.context)
message=''
if 'dctitle' in request:
More information about the Zope3-Checkins
mailing list