[Zope-Checkins] CVS: Packages/ZPublisher - Converters.py:1.24

Evan Simpson cvs-admin at zope.org
Fri Oct 24 16:16:09 EDT 2003


Update of /cvs-repository/Packages/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv11418/lib/python/ZPublisher

Modified Files:
	Converters.py 
Log Message:
Support Python 2.3 BooleanType in ZTUtils.


=== Packages/ZPublisher/Converters.py 1.23 => 1.24 ===
--- Packages/ZPublisher/Converters.py:1.23	Fri May  2 17:43:05 2003
+++ Packages/ZPublisher/Converters.py	Fri Oct 24 16:16:08 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