ó bòNc@s0defd„ƒYZdefd„ƒYZdS(tclassinstancemethodcBs#eZdZd„Zdd„ZRS(s÷ Acts like a class method when called from a class, like an instance method when called by an instance. The method should take two arguments, 'self' and 'cls'; one of these will be None depending on how the method was called. cCs||_|j|_dS(N(tfunct__doc__(tselfR((sI/opt/alt/python27/lib/python2.7/site-packages/paste/util/classinstance.pyt__init__ s cCst|jd|d|ƒS(Ntobjttype(t_methodwrapperR(RRR((sI/opt/alt/python27/lib/python2.7/site-packages/paste/util/classinstance.pyt__get__sN(t__name__t __module__RRtNoneR(((sI/opt/alt/python27/lib/python2.7/site-packages/paste/util/classinstance.pyRs RcBs#eZd„Zd„Zd„ZRS(cCs||_||_||_dS(N(RRR(RRRR((sI/opt/alt/python27/lib/python2.7/site-packages/paste/util/classinstance.pyRs  cOsL|jdƒ r |jdƒ s,tdƒ‚|j|j|jf||ŽS(NRtclssAYou cannot use 'self' or 'cls' arguments to a classinstancemethod(thas_keytAssertionErrorRRR(Rtargstkw((sI/opt/alt/python27/lib/python2.7/site-packages/paste/util/classinstance.pyt__call__s# cCsM|jdkr)d|jj|jjfSd|jj|jj|jfSdS(Nss(RR RR Rt func_name(R((sI/opt/alt/python27/lib/python2.7/site-packages/paste/util/classinstance.pyt__repr__ s (R R RRR(((sI/opt/alt/python27/lib/python2.7/site-packages/paste/util/classinstance.pyRs  N(tobjectRR(((sI/opt/alt/python27/lib/python2.7/site-packages/paste/util/classinstance.pyts