[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/translation - exportimport.py:1.1.2.2
Fred L. Drake, Jr.
fred@zope.com
Tue, 24 Dec 2002 01:28:26 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services/translation
In directory cvs.zope.org:/tmp/cvs-serv14153
Modified Files:
Tag: NameGeddon-branch
exportimport.py
Log Message:
- remove unused imports
- fix broken imports
- normalize whitespace
=== Zope3/src/zope/app/browser/services/translation/exportimport.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/services/translation/exportimport.py:1.1.2.1 Mon Dec 23 14:31:15 2002
+++ Zope3/src/zope/app/browser/services/translation/exportimport.py Tue Dec 24 01:28:25 2002
@@ -2,44 +2,38 @@
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
-#
+#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
-#
+#
##############################################################################
"""Message Export/Import View
$Id$
"""
-
from zope.component import getAdapter
+from zope.interfaces.i18n import IMessageExportFilter, IMessageImportFilter
-from Zope.App.PageTemplate import ViewPageTemplateFile
-from zope.interfaces.i18n import IMessageExportFilter
-from zope.interfaces.i18n import IMessageImportFilter
+from zope.app.browser.services.translation.basetranslationserviceview \
+ import BaseTranslationServiceView
+from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
-from zope.app.browser.services.translation.basetranslationserviceview import BaseTranslationServiceView
class ExportImport(BaseTranslationServiceView):
- """ """
-
- exportImportForm = ViewPageTemplateFile('exportImport.pt')
+ exportImportForm = ViewPageTemplateFile('exportImport.pt')
def exportMessages(self, domains, languages):
self.request.response.setHeader('content-type',
'application/x-gettext')
filter = getAdapter(self.context, IMessageExportFilter)
return filter.exportMessages(domains, languages)
-
-
+
def importMessages(self, domains, languages, file):
filter = getAdapter(self.context, IMessageImportFilter)
filter.importMessages(domains, languages, file)
return self.request.response.redirect(self.request.URL[-1])
-
-