[Zope3-checkins] CVS: Zope3/lib/python/Zope/ContextWrapper - SimpleMethodWrapper.py:1.12

Steve Alexander steve@cat-box.net
Tue, 17 Dec 2002 14:02:32 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ContextWrapper
In directory cvs.zope.org:/tmp/cvs-serv2577/lib/python/Zope/ContextWrapper

Modified Files:
	SimpleMethodWrapper.py 
Log Message:
changed 0 to false when it really is boolean.


=== Zope3/lib/python/Zope/ContextWrapper/SimpleMethodWrapper.py 1.11 => 1.12 ===
--- Zope3/lib/python/Zope/ContextWrapper/SimpleMethodWrapper.py:1.11	Thu Dec  5 11:55:23 2002
+++ Zope3/lib/python/Zope/ContextWrapper/SimpleMethodWrapper.py	Tue Dec 17 14:02:32 2002
@@ -61,10 +61,10 @@
 def wrapperCreator(object, context=None, **data):
     has_call = (hasattr(object, '__call__') and 
                 getattr(object.__call__,
-                        '__Zope_ContextWrapper_contextful_get__', 0))
+                        '__Zope_ContextWrapper_contextful_get__', False))
     has_getitem = (hasattr(object, '__getitem__') and
                    getattr(object.__getitem__,
-                           '__Zope_ContextWrapper_contextful_get__', 0))
+                           '__Zope_ContextWrapper_contextful_get__', False))
     if has_call and has_getitem:
         factory = SimpleCallableGetitemMethodWrapper
     elif has_call:
@@ -85,7 +85,7 @@
         class_value = getattr(class_, name, None)
         if hasattr(class_value, '__get__'):
             if getattr(class_value,
-                       '__Zope_ContextWrapper_contextful_get__', 0):
+                       '__Zope_ContextWrapper_contextful_get__', False):
                 return class_value.__get__(self, class_)
             
         return Wrapper.__getattribute__(self, name)
@@ -97,7 +97,7 @@
         class_value = getattr(class_, name, None)
         if hasattr(class_value, '__set__'):
             if getattr(class_value,
-                       '__Zope_ContextWrapper_contextful_set__', 0):
+                       '__Zope_ContextWrapper_contextful_set__', False):
                 class_value.__set__(self, value)
                 return
         setattr(obj, name, value)