Ñò MDóJc@s×ddkZddklZddklZddkZddkZddklZddkl Z ddk l Z ddk l Z dZd„Zd efd „ƒYZd „Zddd eedddd „ZdS(iÿÿÿÿN(t utf_8_decode(t utf_8_encode(t get_cookies(tauth_tkt(t implements(t IIdentifiercCstdj otStiiƒS(N(t _NOW_TESTINGtNonetdatetimetnow(((s?/usr/lib/python2.6/site-packages/repoze/who/plugins/auth_tkt.pyt_nows tAuthTktCookiePlugincBs¤eZeeƒhed6d„d6Zhdefe6defe6dd„fe6Z de e d d d d„Z d„Z d d„Zd„Zd „Zd „ZRS( tintcCst|ƒdS(i(R(tx((s?/usr/lib/python2.6/site-packages/repoze/who/plugins/auth_tkt.pytstunicodecCst|ƒdS(i(R(R ((s?/usr/lib/python2.6/site-packages/repoze/who/plugins/auth_tkt.pyR sRcCso||_||_||_||_|o%| p ||jotdƒ‚n||_||_||_dS(NsDWhen timeout is specified, reissue_time must be set to a lower value(tsecrett cookie_namet include_iptsecuret ValueErrorttimeoutt reissue_timetuserid_checker(tselfRRRRRRR((s?/usr/lib/python2.6/site-packages/repoze/who/plugins/auth_tkt.pyt__init__#s      cCs³t|ƒ}|i|iƒ}|djp |i odS|io|d}nd}y+ti|i|i|ƒ\}}}}Wnti j odSX|i o|i |ƒ odS|i o||i t i ƒjodSd} |i dƒ} xdtd| ƒD]S} | i| ƒo=| t| ƒ} |ii| ƒ} | o| |ƒ}q_q q W||d<||d(t __class__t__name__tid(R((s?/usr/lib/python2.6/site-packages/repoze/who/plugins/auth_tkt.pyt__repr__³s N(R`t __module__RRR R,tstrtlongRRJtFalseRRR8RERGR^Rb(((s?/usr/lib/python2.6/site-packages/repoze/who/plugins/auth_tkt.pyR s      ,   8cCs%t|tƒo|iƒdjS|S(Ntyesttruet1(RgRhRi(RLRMtlower(R$((s?/usr/lib/python2.6/site-packages/repoze/who/plugins/auth_tkt.pyt_bool·sRc CsEddkl}|djo|djotdƒ‚n|dj o|dj otdƒ‚n|oatiitii|ƒƒ}tii|ƒptd|ƒ‚nt |ƒi ƒi ƒ}n|ot |ƒ}n|ot |ƒ}n|dj o||ƒ}nt ||t|ƒt|ƒ|||ƒ} | S(Niÿÿÿÿ(t resolveDotteds1One of 'secret' or 'secretfile' must not be None.s-Specify only one of 'secret' or 'secretfile'.sNo such 'secretfile': %s(trepoze.who.utilsRlRRtostpathtabspatht expandusertexiststopentreadtstripR R Rk( Rt secretfileRRRRRRRltplugin((s?/usr/lib/python2.6/site-packages/repoze/who/plugins/auth_tkt.pyt make_plugin¼s0     (RtcodecsRRRnR't paste.requestRt paste.authRtzope.interfaceRtrepoze.who.interfacesRRRR tobjectR RkRfRx(((s?/usr/lib/python2.6/site-packages/repoze/who/plugins/auth_tkt.pyts(    £