Ñò ˆ_‚Jc @ s– d Z d d k Z d d k Z d d k Z d d k l Z d d k l Z y d d k Z Wn e j o d d k Z n Xd e f d „ ƒ YZ d S( sJ a reimplementation of the mako template loader that supports dotted names iÿÿÿÿN( t Template( t asboolt DottedTemplateLookupc B s; e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s Mako template lookup emulation that supports zipped applications and dotted filenames. This is an emulation of the Mako template lookup that will handle get_template and support dotted names in Python path notation to support zipped eggs. This is necessary because Mako asserts that your project will always be installed in a zip-unsafe manner with all files somewhere on the hard drive. This is not the case when you want your application to be deployed in a single zip file (zip-safe). If you want to deploy in a zip file _and_ use the dotted template name notation then this class is necessary because it emulates files on the filesystem for the underlying Mako engine while they are in fact in your zip file. c C sO | | _ | | _ | | _ | | _ t ƒ | _ t ƒ | _ t i ƒ | _ d S( N( t input_encodingt output_encodingt importst default_filterst dictt template_cachet template_filenames_cachet threadingt Lockt _mutex( t selfR R R R ( ( s8 /usr/lib/python2.6/site-packages/tg/dottednamesupport.pyt __init__% s c C sa d | j oJ t i d i i d | d d ƒ } | i i | ƒ p | | i |