403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/slip/util/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/slip/util/hookable.pyc
Ñò
CÂJc@sqdZddgZdefd„ƒYZdefd„ƒYZdefd„ƒYZdeefd„ƒYZd	S(
s[This module contains variants of certain base types which call registered
hooks on changes.tHookabletHookableSettHookableTypecBs eZd„Zed„ƒZRS(c
CsÃ|idƒoy|d}Wn]tj
oQd}xFtd„|ƒD]-}|otdt|ƒƒ‚qH|}qHWnXx,|dD]}ti||ƒ||<q‰Wnti	||||ƒS(Nt_hookable_change_methodst_hookable_base_classcSs
|tjS((R(tx((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt<lambda>$sstoo many base classes: %s(
thas_keytKeyErrortNonetfiltert	TypeErrortstrRtwrap_methodttypet__new__(tclstnametbasestdcttbasetbase_candidatet
methodname((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyRscs+t||ƒ‰‡fd†}||_|S(Ncs ˆ|||Ž}|iƒ|S(N(t
_run_hooks(tselftptktretval(tfunc(s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt
methodwrapper4s
(tgetattrt	func_name(RRRR((Rs6/usr/lib/python2.6/site-packages/slip/util/hookable.pyR
0s	(t__name__t
__module__RtclassmethodR
(((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyRs	t
_HookEntrycBs,eZd„Zd„Zd„Zd„ZRS(cCs||_||_||_dS(N(t_HookEntry__hookt_HookEntry__argst_HookEntry__kwargs(Rthooktargstkwargs((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt__init__?s		cCs6|i|ijo#|i|ijo|i|ijS(N(R$R%R&(Rtobj((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt__cmp__Es&cCs-|iiƒ|iiƒA|iiƒiƒAS(N(R$t__hash__R%R&t	iteritems(R((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyR-IscCs|i|i|iŽdS(N(R$R%R&(R((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pytrunMs(R R!R*R,R-R/(((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyR#=s			cBs’eZdZeZed„ƒZd„Zd„ZeeeƒZ	d„Z
d„Zee
eƒZd„Z
d„Zd„Zd	„Zd
„ZRS(s2An object which calls registered hooks on changes.cOs't|dƒptƒ|_n|iS(Nt__real_hooks__(thasattrtsetR0(RRR((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt	__hooks__WscCs$t|dƒp
t|_n|iS(Nt__hooks_enabled__(R1tTrueR4(R((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt_get_hooks_enabled]s
cCs
||_dS(N(R4(Rtenabled((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt_set_hooks_enabledbscCs$t|dƒp
t|_n|iS(Nt__hooks_frozen__(R1tFalseR9(R((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt_get_hooks_frozengs
cCs]||ijodS||_|otƒ|_n%x|iD]}|iƒq?W|`dS(N(thooks_frozenR9R2t__hooks_frozen_entries__R/(Rtfreezet	hookentry((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt_set_hooks_frozenls	
cCs
t|_dS(N(R5R<(R((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pytfreeze_hooks{scCs
t|_dS(N(R:R<(R((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt
thaw_hooks~scOs:t|ƒpt‚t|||ƒ}|ii|ƒdS(N(tcallabletAssertionErrorR#R3tadd(RR'R(R)R?((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pytadd_hookscOs |iit|||ƒƒdS(N(R3tremoveR#(RR'R(R)((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pytremove_hook‡scCsQ|ioC|ip"x2|iD]}|iƒqWqM|ii|iƒndS(N(t
hooks_enabledR<R3R/R=tupdate(RR?((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyR‹s


(R R!t__doc__Rt
__metaclass__tpropertyR3R6R8RIR;R@R<RARBRFRHR(((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyRQs				
				c	BseZdZdZd
„ZRS(s5A set object which calls registered hooks on changes.REtcleartdifference_updatetdiscardtintersection_updatetpopRGtsymmetric_difference_updateRJcCsti|ƒ}tƒ|_|S(N(R2tcopyR0(RR+((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyRTœs(	saddsclearsdifference_updatesdiscardsintersection_updatespopsremovessymmetric_difference_updatesupdate(R R!RKRRT(((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyR”s
N(	RKt__all__RRtobjectR#RR2R(((s6/usr/lib/python2.6/site-packages/slip/util/hookable.pyt<module>s
"C

Youez - 2016 - github.com/yon3zu
LinuXploit