[Zope-Checkins] CVS: Packages/ZPublisher - Converters.py:1.23.2.1
Evan Simpson
cvs-admin at zope.org
Fri Oct 24 16:13:37 EDT 2003
Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv11069/lib/python/ZPublisher
Modified Files:
Tag: Zope-2_7-branch
Converters.py
Log Message:
Make Python 2.3 BooleanType work with ZTUtils marshalling.
=== Packages/ZPublisher/Converters.py 1.23 => 1.23.2.1 ===
--- Packages/ZPublisher/Converters.py:1.23 Fri May 2 17:43:05 2003
+++ Packages/ZPublisher/Converters.py Fri Oct 24 16:13:36 2003
@@ -101,7 +101,6 @@
return field2text(v).split('\n')
def field2date(v):
-
v = field2string(v)
try:
v = DateTime(v)
@@ -118,6 +117,8 @@
return v
def field2boolean(v):
+ if v == 'False':
+ return not 1
return not not v
class _unicode_converter:
More information about the Zope-Checkins
mailing list