[Zope-Checkins] CVS: Zope/lib/python/ZTUtils - Zope.py:1.10.6.3

Brian Lloyd brian at zope.com
Mon Jan 26 11:20:15 EST 2004


Update of /cvs-repository/Zope/lib/python/ZTUtils
In directory cvs.zope.org:/tmp/cvs-serv8601/lib/python/ZTUtils

Modified Files:
      Tag: Zope-2_6-branch
	Zope.py 
Log Message:
fix collector 1203


=== Zope/lib/python/ZTUtils/Zope.py 1.10.6.2 => 1.10.6.3 ===
--- Zope/lib/python/ZTUtils/Zope.py:1.10.6.2	Thu Jan  8 15:12:12 2004
+++ Zope/lib/python/ZTUtils/Zope.py	Mon Jan 26 11:20:14 2004
@@ -26,6 +26,11 @@
 from AccessControl.ZopeGuards import guarded_getitem
 from AccessControl import Unauthorized
 
+try:
+    from types import BooleanType
+except ImportError:
+    BooleanType = None
+
 class LazyFilter(Lazy):
     # A LazyFilter that checks with the security policy
 
@@ -244,6 +249,8 @@
 def simple_marshal(v):
     if isinstance(v, StringType):
         return ''
+    if BooleanType and isinstance(v, BooleanType):
+        return ':boolean'
     if isinstance(v, IntType):
         return ':int'
     if isinstance(v, FloatType):




More information about the Zope-Checkins mailing list