[Zope-Checkins] CVS: Zope3/lib/python/Interface - Implements.py:1.1.2.5 Verify.py:1.1.2.4

Stephan Richter srichter@cbu.edu
Tue, 21 May 2002 16:32:09 -0400


Update of /cvs-repository/Zope3/lib/python/Interface
In directory cvs.zope.org:/tmp/cvs-serv11413/Interface

Modified Files:
      Tag: Zope-3x-branch
	Implements.py Verify.py 
Log Message:
- Fixed a little bug in Interface code, where they verify method would stop checking when finding an attribute. We simply continue now.

- Updated a doc strong of assertTypeImplements, whose doc string was totally off.

- Our little change caused a test in to fail, so we fixed it.


=== Zope3/lib/python/Interface/Implements.py 1.1.2.4 => 1.1.2.5 ===
 
 def assertTypeImplements(type, interfaces):
-    """Return the interfaces implemented by objects of the given type
+    """Assign a set of interfaces to a Python type such as int, str, tuple,
+       list and dict.
     """
     _typeImplements[type]=interfaces
 


=== Zope3/lib/python/Interface/Verify.py 1.1.2.3 => 1.1.2.4 ===
             meth = fromMethod(attr, n)
         else:
-            break # must be an attribute...
+            continue # must be an attribute...
 
         d=d.getSignatureInfo()
         meth = meth.getSignatureInfo()