[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/ Collector
#1888: Adjust call to 'engine.translate' to accomodate new
signature.
Tres Seaver
tseaver at palladion.com
Tue Oct 4 20:14:43 EDT 2005
Log message for revision 38760:
Collector #1888: Adjust call to 'engine.translate' to accomodate new signature.
Changed:
U Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
U Zope/branches/Zope-2_8-branch/lib/python/TAL/TALInterpreter.py
-=-
Modified: Zope/branches/Zope-2_8-branch/doc/CHANGES.txt
===================================================================
--- Zope/branches/Zope-2_8-branch/doc/CHANGES.txt 2005-10-04 21:40:46 UTC (rev 38759)
+++ Zope/branches/Zope-2_8-branch/doc/CHANGES.txt 2005-10-05 00:14:42 UTC (rev 38760)
@@ -33,6 +33,9 @@
Bugs Fixed
+ - Collector #1888: Adjust call to 'engine.translate' to accomodate
+ change in its signature.
+
- Collector #1863: Prevent possibly sensitive information to leak via
the TransientObject's __repr__ method.
Modified: Zope/branches/Zope-2_8-branch/lib/python/TAL/TALInterpreter.py
===================================================================
--- Zope/branches/Zope-2_8-branch/lib/python/TAL/TALInterpreter.py 2005-10-04 21:40:46 UTC (rev 38759)
+++ Zope/branches/Zope-2_8-branch/lib/python/TAL/TALInterpreter.py 2005-10-05 00:14:42 UTC (rev 38760)
@@ -506,8 +506,8 @@
return
if isinstance(text, MessageID):
# Translate this now.
- text = self.engine.translate(text.domain, text,
- text.mapping, text.default)
+ text = self.engine.translate(text.domain, text, text.mapping,
+ default=text.default)
s = escape(text)
self._stream_write(s)
i = s.rfind('\n')
More information about the Zope-Checkins
mailing list