[Zope-Checkins] CVS: Packages/ZPublisher - Converters.py:1.23.2.4
Florent Guillaume
fg at nuxeo.com
Tue Nov 16 08:05:56 EST 2004
Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv18919/lib/python/ZPublisher
Modified Files:
Tag: Zope-2_7-branch
Converters.py
Log Message:
Collector #1577: Fixed cryptic error message in ZPublisher if a
non-ASCII string is passed to a date property.
=== Packages/ZPublisher/Converters.py 1.23.2.3 => 1.23.2.4 ===
--- Packages/ZPublisher/Converters.py:1.23.2.3 Mon Nov 8 01:49:18 2004
+++ Packages/ZPublisher/Converters.py Tue Nov 16 08:05:56 2004
@@ -105,7 +105,7 @@
try:
v = DateTime(v)
except DateTime.SyntaxError, e:
- raise DateTime.SyntaxError, escape(e)
+ raise DateTime.SyntaxError, "Invalid DateTime "+escape(`v`)
return v
def field2date_international(v):
@@ -113,7 +113,7 @@
try:
v = DateTime(v, datefmt="international")
except DateTime.SyntaxError, e:
- raise DateTime.SyntaxError, escape(e)
+ raise DateTime.SyntaxError, "Invalid DateTime "+escape(`v`)
return v
def field2boolean(v):
More information about the Zope-Checkins
mailing list