[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/renderer/ clean
imports, remove zope.app.i18n dep
Bernd Dorn
bernd.dorn at lovelysystems.com
Tue Mar 27 03:52:13 EDT 2007
Log message for revision 73674:
clean imports, remove zope.app.i18n dep
Changed:
U Zope3/trunk/src/zope/app/renderer/__init__.py
A Zope3/trunk/src/zope/app/renderer/i18n.py
U Zope3/trunk/src/zope/app/renderer/plaintext.py
U Zope3/trunk/src/zope/app/renderer/rest.py
U Zope3/trunk/src/zope/app/renderer/stx.py
U Zope3/trunk/src/zope/app/renderer/tests/test_vocabulary.py
-=-
Modified: Zope3/trunk/src/zope/app/renderer/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/renderer/__init__.py 2007-03-27 07:46:54 UTC (rev 73673)
+++ Zope3/trunk/src/zope/app/renderer/__init__.py 2007-03-27 07:52:12 UTC (rev 73674)
@@ -17,7 +17,6 @@
"""
from zope.component.interfaces import IFactory
from zope.interface import implements, directlyProvides, Declaration
-from zope.publisher.browser import BrowserView
from interfaces import ISource, IHTMLRenderer
Added: Zope3/trunk/src/zope/app/renderer/i18n.py
===================================================================
--- Zope3/trunk/src/zope/app/renderer/i18n.py 2007-03-27 07:46:54 UTC (rev 73673)
+++ Zope3/trunk/src/zope/app/renderer/i18n.py 2007-03-27 07:52:12 UTC (rev 73674)
@@ -0,0 +1,22 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Customization of zope.i18n for the Zope application server
+
+$Id$
+"""
+__docformat__ = 'restructuredtext'
+
+# import this as _ to create i18n messages in the zope domain
+from zope.i18nmessageid import MessageFactory
+ZopeMessageFactory = MessageFactory('zope')
Property changes on: Zope3/trunk/src/zope/app/renderer/i18n.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Modified: Zope3/trunk/src/zope/app/renderer/plaintext.py
===================================================================
--- Zope3/trunk/src/zope/app/renderer/plaintext.py 2007-03-27 07:46:54 UTC (rev 73673)
+++ Zope3/trunk/src/zope/app/renderer/plaintext.py 2007-03-27 07:52:12 UTC (rev 73674)
@@ -20,7 +20,7 @@
from zope.interface import implements
from zope.publisher.browser import BrowserView
-from zope.app.i18n import ZopeMessageFactory as _
+from zope.app.renderer.i18n import ZopeMessageFactory as _
from zope.app.renderer.interfaces import ISource, IHTMLRenderer
from zope.app.renderer import SourceFactory
Modified: Zope3/trunk/src/zope/app/renderer/rest.py
===================================================================
--- Zope3/trunk/src/zope/app/renderer/rest.py 2007-03-27 07:46:54 UTC (rev 73673)
+++ Zope3/trunk/src/zope/app/renderer/rest.py 2007-03-27 07:52:12 UTC (rev 73674)
@@ -17,15 +17,14 @@
"""
__docformat__ = 'restructuredtext'
-import docutils.core, docutils.io
-from docutils import nodes, writers
+import docutils.core
from docutils.writers.html4css1 import HTMLTranslator
from docutils.writers.html4css1 import Writer
from zope.interface import implements
from zope.publisher.browser import BrowserView
-from zope.app.i18n import ZopeMessageFactory as _
+from zope.app.renderer.i18n import ZopeMessageFactory as _
from zope.app.renderer.interfaces import ISource, IHTMLRenderer
from zope.app.renderer import SourceFactory
Modified: Zope3/trunk/src/zope/app/renderer/stx.py
===================================================================
--- Zope3/trunk/src/zope/app/renderer/stx.py 2007-03-27 07:46:54 UTC (rev 73673)
+++ Zope3/trunk/src/zope/app/renderer/stx.py 2007-03-27 07:52:12 UTC (rev 73674)
@@ -24,7 +24,7 @@
from zope.structuredtext.html import HTML
from zope.publisher.browser import BrowserView
-from zope.app.i18n import ZopeMessageFactory as _
+from zope.app.renderer.i18n import ZopeMessageFactory as _
from zope.app.renderer.interfaces import ISource, IHTMLRenderer
from zope.app.renderer import SourceFactory
Modified: Zope3/trunk/src/zope/app/renderer/tests/test_vocabulary.py
===================================================================
--- Zope3/trunk/src/zope/app/renderer/tests/test_vocabulary.py 2007-03-27 07:46:54 UTC (rev 73673)
+++ Zope3/trunk/src/zope/app/renderer/tests/test_vocabulary.py 2007-03-27 07:52:12 UTC (rev 73674)
@@ -17,15 +17,13 @@
"""
import unittest
-from zope.app import zapi
from zope.app.testing import ztapi
from zope.app.renderer import SourceFactory
from zope.app.renderer.interfaces import ISource
from zope.app.renderer.vocabulary import SourceTypeVocabulary
from zope.component.interfaces import IFactory
from zope.app.testing.placelesssetup import PlacelessSetup
-from zope.schema.interfaces import \
- ITokenizedTerm, IVocabulary, IVocabularyTokenized
+from zope.schema.interfaces import IVocabulary, IVocabularyTokenized
class IFoo(ISource):
More information about the Zope3-Checkins
mailing list