Ñò ˆ_‚Jc @sìddklZddklZddklZlZlZlZl Z l Z l Z ddk l Z ddkZddklZdefd„ƒYZd efd „ƒYZd „Zddd „Zd „Zd„Zd„Zd„ZdS(iÿÿÿÿ(t quote_plus(tXML(t app_globalstconfigtsessiont tmpl_contexttrequesttresponset templating(t predicatesN(tBunchtMissingRendererErrorcBseZd„ZRS(cCs0tt|ƒidtd|ƒƒ||_dS(Ns£The renderer for '%(template_engine)s' templates is missing. Try adding the following line in you app_cfg.py: "base_config.renderers.append('%(template_engine)s')"ttemplate_engine(tsuperR t__init__tdictR (tselfR ((s-/usr/lib/python2.6/site-packages/tg/render.pyR s  (t__name__t __module__R(((s-/usr/lib/python2.6/site-packages/tg/render.pyR stDeprecatedFlashVariablecBs#eZd„Zd„Zd„ZRS(cCs||_||_dS(N(tcallabletmsg(RRR((s-/usr/lib/python2.6/site-packages/tg/render.pyRs cCs2ddk}|i|itdƒt|iƒƒS(Niÿÿÿÿi(twarningstwarnRtDeprecationWarningtunicodeR(RR((s-/usr/lib/python2.6/site-packages/tg/render.pyt __unicode__s cCs2ddk}|i|itdƒt|iƒƒS(Niÿÿÿÿi(RRRRtboolR(RR((s-/usr/lib/python2.6/site-packages/tg/render.pyt __nonzero__s (RRRRR(((s-/usr/lib/python2.6/site-packages/tg/render.pyRs  cCsCtdtidtidtd„dƒdtd„dƒd td tid tii d ƒd t dtii i ƒdt tdhƒdt tdhƒdtiddtiijdtƒ}ti dƒp ti dƒ}tdtdtdtdtd tid|d|ƒ}ti ddƒ}|o|i|ƒƒn|S( sÎCreate a Bunch of variables that should be available in all templates. These variables are: WARNING: This function should not be called from outside of the render() code. Please consider this function as private. quote_plus the urllib quote_plus function url the turbogears.url function for creating flexible URLs identity the current visitor's identity information session the current beaker.session if the session_filter.on it set in the app.cfg configuration file. If it is not set then session will be None. locale the default locale inputs input values from a form errors validation errors request the WebOb Request Object config the app's config object auth_stack_enabled A boolean that determines if the auth stack is present in the environment predicates The :mod:`repoze.what.predicates` module. Rt flash_objtflashcSs tiiS((ttgRtmessage(((s-/usr/lib/python2.6/site-packages/tg/render.pytKssbflash is deprecated, please use flash_obj.message instead or use the new flash_obj.render() methodt flash_statuscSsdtiiS(tstatus_(RRtstatus(((s-/usr/lib/python2.6/site-packages/tg/render.pyR!Psshflash_status is deprecated, please use flash_obj.status instead or use the new flash_obj.render() methodRturltidentitysrepoze.who.identityRtlocaleterrorst form_errorstinputst form_valuesRtauth_stack_enabledsrepoze.who.pluginsR spylons.hspylons.helperstcRRthelpersRtvariable_providerN(R RRRRRR%RtenvirontgetRtaccept_languaget best_matchestgetattrRR RtNonetupdate(ttg_varsR.t root_varsR/((s-/usr/lib/python2.6/site-packages/tg/render.pyt _get_tg_vars$s@#         cKs›|dj o4tdi|ƒ}|djot|ƒ‚qAn|p h}ntƒ}|i|ƒ|}|ptdtd}n||||S(Ntrender_functionstdefault_renderer(R5RR1R R9R6(t template_varsR t template_nametkwargstrender_functionR7((s-/usr/lib/python2.6/site-packages/tg/render.pytrenderus     cKsVt|d((s-/usr/lib/python2.6/site-packages/tg/render.pytrender_chameleon_genshis  cKsVt|d((s-/usr/lib/python2.6/site-packages/tg/render.pyRGs  cKsLtidtƒo#tidii|ddƒ}nti|d||S(NRAspylons.app_globalsRBs.makRC(RR1RDRRERFRt render_mako(R=R<R>((s-/usr/lib/python2.6/site-packages/tg/render.pyRI«s  cKsti|d||S(NRC(Rt render_jinja2(R=R<R>((s-/usr/lib/python2.6/site-packages/tg/render.pyt render_jinjaµs(turllibRtgenshiRtpylonsRRRRRRRt repoze.whatR Rttg.configurationR t ExceptionR tobjectRR9R5R@RHRGRIRK(((s-/usr/lib/python2.6/site-packages/tg/render.pyts4   Q