%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/227033/root/opt/alt/python27/lib/python2.7/site-packages/mako/ext/
Upload File :
Create Path :
Current File : //proc/227033/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$

Zerion Mini Shell 1.0