HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/mako/ext/autohandler.pyc
�
�ǚPc@sCdZddlZddlZddlZdd�Zd�ZdS(s�adds autohandler functionality to Mako templates.

requires that the TemplateLookup class is used with templates.

usage:

<%!
    from mako.ext.autohandler import autohandler
%>
<%inherit file="${autohandler(template, context)}"/>


or with custom autohandler filename:

<%!
    from mako.ext.autohandler import autohandler
%>
<%inherit file="${autohandler(template, context, name='somefilename')}"/>

i����NtautohandlercCs,|j}|jj}|jsMy|jt||fSWqMtk
rIqMXntjdt	j
|��|g}x�t|�r�ddj|�}||kr�t
||�r�|js�|jjt||f|�S|Snt|�dkr�Pn|g|d)qrW|js$|jjt||fd�SdSdS(Ns([^/]+)t/ii����(tlookuptmodulet
_template_uritfilesystem_checkst
_uri_cacheRtKeyErrortretfindallt	posixpathtdirnametlentjoint_file_existst
setdefaulttNone(ttemplatetcontexttnameRRttokenstpath((sE/opt/alt/python27/lib/python2.7/site-packages/mako/ext/autohandler.pyRs,		
"				cCsOtjdd|�}x3|jD]$}tjj|d|�rtSqWtSdS(Ns^/tR(RtsubtdirectoriestosRtexiststTruetFalse(RRtpsubtd((sE/opt/alt/python27/lib/python2.7/site-packages/mako/ext/autohandler.pyR:s
(t__doc__R
RRRR(((sE/opt/alt/python27/lib/python2.7/site-packages/mako/ext/autohandler.pyt<module>s$