[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/sequencewidget.py translate() already know how to handle MSGID's default values

Dmitry Vasiliev dima at hlabs.spb.ru
Tue Jul 26 10:02:02 EDT 2005


Log message for revision 37427:
  translate() already know how to handle MSGID's default values
  

Changed:
  U   Zope3/trunk/src/zope/app/form/browser/sequencewidget.py

-=-
Modified: Zope3/trunk/src/zope/app/form/browser/sequencewidget.py
===================================================================
--- Zope3/trunk/src/zope/app/form/browser/sequencewidget.py	2005-07-26 06:24:15 UTC (rev 37426)
+++ Zope3/trunk/src/zope/app/form/browser/sequencewidget.py	2005-07-26 14:02:02 UTC (rev 37427)
@@ -17,7 +17,6 @@
 """
 __docformat__ = 'restructuredtext'
 
-import re
 from zope.interface import implements
 from zope.i18n import translate
 
@@ -263,12 +262,10 @@
 
         # deal with special cases:
         if data == self.context.missing_value:
-            return translate(self._missingValueMessage, self.request,
-                             self._missingValueMessage.default)
+            return translate(self._missingValueMessage, self.request)
         data = list(data)
         if not data:
-            return translate(self._emptySequenceMessage, self.request,
-                             self._emptySequenceMessage.default)
+            return translate(self._emptySequenceMessage, self.request)
 
         parts = []
         for i, item in enumerate(data):



More information about the Zope3-Checkins mailing list