[Checkins] SVN: z3c.form/trunk/src/z3c/form/interfaces.py * Some clean up.

Stephan Richter srichter at gmail.com
Sat Jun 13 22:10:50 EDT 2009


Log message for revision 100925:
  * Some clean up.
  
  * For some reason the message factory was not available as _ and 
  failed hard.
  

Changed:
  U   z3c.form/trunk/src/z3c/form/interfaces.py

-=-
Modified: z3c.form/trunk/src/z3c/form/interfaces.py
===================================================================
--- z3c.form/trunk/src/z3c/form/interfaces.py	2009-06-14 02:08:19 UTC (rev 100924)
+++ z3c.form/trunk/src/z3c/form/interfaces.py	2009-06-14 02:10:48 UTC (rev 100925)
@@ -16,14 +16,14 @@
 $Id$
 """
 __docformat__ = "reStructuredText"
-
+import zope.i18nmessageid
 import zope.interface
 import zope.schema
 from zope.interface.common import mapping
 from zope.location.interfaces import ILocation
 from zope.publisher.interfaces.browser import IBrowserRequest
 
-from z3c.form.i18n import MessageFactory as _
+MessageFactory = _ = zope.i18nmessageid.MessageFactory('z3c.form')
 
 INPUT_MODE = 'input'
 DISPLAY_MODE = 'display'
@@ -32,15 +32,15 @@
 class NOT_CHANGED(object):
     def __repr__(self):
         return '<NOT_CHANGED>'
-NOT_CHANGED = NOT_CHANGED() 
+NOT_CHANGED = NOT_CHANGED()
 
 class NO_VALUE(object):
     def __repr__(self):
         return '<NO_VALUE>'
 NO_VALUE = NO_VALUE()
+# BBB: the object was renamed to follow common naming style
+NOVALUE = NO_VALUE
 
-NOVALUE = NO_VALUE # BBB: the object was renamed to follow common naming style
-
 # ----[ Layer Declaration ]--------------------------------------------------
 
 class IFormLayer(IBrowserRequest):



More information about the Checkins mailing list