| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/zope/interface/ |
Upload File : |
ó
ÔËÞKc @ s§ d Z d d l m Z m Z d d l m Z d d l m Z m Z d d l m Z m
Z
m Z d d l Z e f Z
d d d „ Z d d „ Z d d
„ Z d „ Z d S( sW Verify interface implementations
$Id: verify.py 110699 2010-04-09 08:16:17Z regebro $
iÿÿÿÿ( t BrokenImplementationt DoesNotImplement( t BrokenMethodImplementation( t FunctionTypet
MethodType( t
fromMethodt fromFunctiont MethodNi c
C sÕ | d k r | j } n | j } | rD | | ƒ rD t | ƒ ‚ n xŠ| j d ƒ D]y\ } } y t | | ƒ } WnB t k
r· t | t ƒ r¥ | d k r¥ qT n t | | ƒ ‚ n Xt | t ƒ sÍ qT n t | t ƒ r4t
j d d k rt | t ƒ rt
| | d | d d ƒ} qŽt
| | d | ƒ} nZ t | t ƒ rmt | j ƒ t k rmt | | | ƒ } n! t | ƒ sT t | d ƒ ‚ qT qT | j ƒ } | j ƒ } t | | ƒ } | rT t | | ƒ ‚ qT qT Wt S( sÍ 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.
t ci i t 3t namet imlevels Not a method( t
implementedByt
providedByR t namesAndDescriptionst getattrt AttributeErrort
isinstanceR R R t syst versiont typeR t MethodTypest im_funcR t callableR t getSignatureInfot _incompatt True(
t ifacet candidatet tentativet vtypet testerR
t desct attrt metht mess( ( s9 /usr/lib/python2.7/dist-packages/zope/interface/verify.pyt _verify s<