Module gnue.navigator.external.zope.interface.verify
Verify interface implementations
$Id: verify.py 37426 2005-07-26 06:24:15Z hdima $
| Function Summary |
| |
_incompat(required,
implemented)
|
| |
_verify(iface,
candidate,
tentative,
vtype)
Verify that 'candidate' might correctly implements 'iface'. |
| |
verifyClass(iface,
candidate,
tentative)
|
| |
verifyObject(iface,
candidate,
tentative)
|
| Variable Summary |
tuple |
MethodTypes = (<type 'instancemethod'>,)
|
_incompat(required,
implemented)
-
|
_verify(iface,
candidate,
tentative=0,
vtype=None)
Verify that 'candidate' might correctly implements 'iface'.
This involves:
o Making sure the candidate defines all the necessary methods
o Making sure the methods have the correct signature
o Making sure the candidate asserts that it implements the interface
Note that this isn't the same as verifying that the class does
implement the interface.
If optional tentative is true, suppress the "is implemented by" test.
-
|
verifyClass(iface,
candidate,
tentative=0)
-
|
verifyObject(iface,
candidate,
tentative=0)
-
|
MethodTypes
-
- Type:
-
tuple
- Value:
(<type 'instancemethod'>,)
|
|