[Zope-CVS] CVS: Products/Ape/lib/apelib/zope2 - ofsserial.py:1.11
    Shane Hathaway 
    shane at zope.com
       
    Wed Mar 24 23:28:24 EST 2004
    
    
  
Update of /cvs-repository/Products/Ape/lib/apelib/zope2
In directory cvs.zope.org:/tmp/cvs-serv10156/lib/apelib/zope2
Modified Files:
	ofsserial.py 
Log Message:
Fixed boolean properties of fixed schemas.
Storing a boolean as "yes" vs. "" doesn't work in an integer column.
=== Products/Ape/lib/apelib/zope2/ofsserial.py 1.10 => 1.11 ===
--- Products/Ape/lib/apelib/zope2/ofsserial.py:1.10	Sat Mar 20 01:34:25 2004
+++ Products/Ape/lib/apelib/zope2/ofsserial.py	Wed Mar 24 23:28:23 2004
@@ -201,6 +201,8 @@
             data = obj.getProperty(name)
             if t == 'lines':
                 v = '\n'.join(data)
+            elif t == 'boolean':
+                v = data and '1' or '0'
             elif string_repr_types.get(t):
                 v = str(data)
             else:
    
    
More information about the Zope-CVS
mailing list