[Zope3-checkins]
CVS: Zope3/src/zope/app/browser/services/translation
- exportimport.py:1.6
Jim Fulton
jim at zope.com
Sat Mar 6 11:50:46 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/services/translation
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/browser/services/translation
Modified Files:
exportimport.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/browser/services/translation/exportimport.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/services/translation/exportimport.py:1.5 Thu Aug 7 13:41:34 2003
+++ Zope3/src/zope/app/browser/services/translation/exportimport.py Sat Mar 6 11:50:15 2004
@@ -16,7 +16,6 @@
$Id$
"""
from zope.app.browser.services.translation import BaseView
-from zope.component import getAdapter
from zope.i18n.interfaces import IMessageExportFilter, IMessageImportFilter
@@ -25,10 +24,10 @@
def exportMessages(self, domains, languages):
self.request.response.setHeader('content-type',
'application/x-gettext')
- filter = getAdapter(self.context, IMessageExportFilter)
+ filter = IMessageExportFilter(self.context)
return filter.exportMessages(domains, languages)
def importMessages(self, domains, languages, file):
- filter = getAdapter(self.context, IMessageImportFilter)
+ filter = IMessageImportFilter(self.context)
filter.importMessages(domains, languages, file)
return self.request.response.redirect(self.request.URL[-1])
More information about the Zope3-Checkins
mailing list