Ńň -!Lc@sCdZddkZddkZddkZdd„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˙˙˙˙Nt autohandlercCs;|i}|ii}|ip2y|it||fSWqQtj oqQXntidt i |ƒƒ|g}x–t |ƒoˆddi |ƒ}||jo?t ||ƒo/|ip|iit||f|ƒS|Snt |ƒdjoPn|g|d)qvW|ip|iit||fdƒSdSdS(Ns([^/]+)t/iiţ˙˙˙(tlookuptmodulet _template_uritfilesystem_checkst _uri_cacheRtKeyErrortretfindallt posixpathtdirnametlentjoint _file_existst setdefaulttNone(ttemplatetcontexttnameRRttokenstpath((s8/usr/lib/python2.6/site-packages/mako/ext/autohandler.pyRs*    "   cCsQtidd|ƒ}x5|iD]&}tii|d|ƒotSqWtSdS(Ns^/tR(Rtsubt directoriestosRtexiststTruetFalse(RRtpsubtd((s8/usr/lib/python2.6/site-packages/mako/ext/autohandler.pyR2s   (t__doc__R RRRR(((s8/usr/lib/python2.6/site-packages/mako/ext/autohandler.pyts$