[Zope3-checkins] CVS: Zope3/src/zope/app/browser/content - i18n.py:1.1.2.2
Fred L. Drake, Jr.
fred@zope.com
Tue, 24 Dec 2002 02:15:39 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/content
In directory cvs.zope.org:/tmp/cvs-serv21318
Modified Files:
Tag: NameGeddon-branch
i18n.py
Log Message:
- fix & clean up imports
- general cleanup, normalize whitespace
=== Zope3/src/zope/app/browser/content/i18n.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/content/i18n.py:1.1.2.1 Mon Dec 23 14:31:04 2002
+++ Zope3/src/zope/app/browser/content/i18n.py Tue Dec 24 02:15:39 2002
@@ -2,22 +2,23 @@
#
# 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.
-#
+#
##############################################################################
"""
$Id$
"""
-from zope.publisher.browser import BrowserView
+from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
from zope.i18n.negotiator import negotiator
+from zope.publisher.browser import BrowserView
class I18nFileView(BrowserView):
@@ -38,16 +39,6 @@
return self.context.getData(language)
-"""
-Revision information:
-$Id$
-"""
-
-from zope.publisher.browser import BrowserView
-from Zope.App.PageTemplate import ViewPageTemplateFile
-
-
-
class I18nFileEdit(BrowserView):
__implements__ = BrowserView.__implements__
@@ -74,4 +65,3 @@
self.context.edit(data, contentType, language)
return self.request.response.redirect(self.request.URL[-1] +
"/editForm.html?language=%s" % language) # XXX url_quote
-