Ñò ‚Ic @sËddkZddkZddkZddkZddkZddklZdefd„ƒYZei Z defd„ƒYZ defd„ƒYZ d d d d d ddgZ d„Z ed„ZdS(iÿÿÿÿN(tpaste_script_template_renderertTemplatecBsŒeZgZgZgZeZeZd Z d„Z d„Z d„Z d„Z d„Zd d„Zd„Zdd„Zd „Zd „ZRS( cCs||_d|_dS(N(tnametNonet _read_vars(tselfR((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyt__init__'s cCs&ti|ii}tii|iƒS(s.Returns the module directory of this template.(tsystmodulest __class__t __module__tostpathtdirnamet__file__(Rtmod((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyt module_dir+scCsY|idj ptd|‚t|itƒo|iStii|iƒ|iƒSdS(Ns$Template %r didn't set _template_dir( t _template_dirRtAssertionErrort isinstancettupleR R tjoinR(R((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyt template_dir0s  cCs=|i|||ƒ|i|||ƒ|i|||ƒdS(N(tpret write_filestpost(Rtcommandt output_dirtvars((s:/usr/lib/python2.6/site-packages/paste/script/templates.pytrun8sc Cs:|i|ƒ}|p|Sh}|iƒ}g}x¿|D]·}|i|joˆ|io<d|iƒ}|i||i|iƒ} | ||iR5R@(RRRRR((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyRos         icCs|iƒ}ti|ƒdS(N(RR/t print_vars(RR?R((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyRFs cCsdS(s4 Called before template is applied. N((RRRR((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyR…scCsdS(s3 Called after template is applied. N((RRRR((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyR‹sN(t__name__R Rt egg_pluginstrequired_templatestFalseR5R4RR@RRRRR2RRRFRR(((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyR s          R/cBsAeZded„Zd„Zd„Zdd„ZeeƒZRS(tcCs(||_||_||_||_dS(N(Rt descriptionR#R$(RRRLR#R$((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyR•s   cCs#d|ii|i|i|ifS(Ns!<%s %s default=%r should_echo=%s>(R RGRR#R$(R((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyt__repr__œs cCs*|iod|i|ifS|iSdS(Ns%s (%s)(RLR(R((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyR!¡s ic CsÓtg}|D]}|t|iƒq~ƒ}x›|D]“}|io4dd||id|t|iƒ|ifGHn d|iGH|itij od|iGHn|itjod|iGHq7q7WHdS(Ns %s%s%s %st s %ss default: %rs should_echo: %s( tmaxtlenRRLR#RR%R$tTrue(tclsRR?R9tvtmax_nameR/((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyRF§s0  (RGR RQRRMR!RFt classmethod(((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyR/“s    t BasicPackagec Bs˜eZdZdZeddƒeddƒeddƒedd ƒed d ƒed d ƒeddƒeddƒedddeƒg ZeeƒZ RS(spaster-templates/basic_packages"A basic setuptools-enabled packagetversionsVersion (like 0.1)RLs#One-line description of the packagetlong_descriptions Multi-line description (in reST)tkeywordssSpace-separated keywords/tagstauthors Author namet author_emails Author emailturlsURL of homepaget license_names License nametzip_safes<True/False: if the package can be distributed as a .zip fileR#( RGR RtsummaryR/RJRt staticmethodRR@(((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyRVºs        tVFNt currentTimeRtVFFSLt dummyTranstgetmtimettransc Cst|ttfƒo%ddk}|iid|ƒ}nt|dƒpdS|i}ti |ƒ\}}}}t |pgƒ}g}xƒ|o{t |ƒt |ƒjo|i dƒ}n t i}|i dƒ} | tjoqn|it| ddd|ƒƒqW|S(NiÿÿÿÿtfiletbodyiRLR#(RtstrtunicodetCheetah.TemplateRthasattrRRhtinspectt getargspectlistRPR'RR%t_skip_variablesR&R/( ttemplatetCheetahtmethodtargstvarargstvarkwtdefaultsRR#targ((s:/usr/lib/python2.6/site-packages/paste/script/templates.pytfind_args_in_templateÏs*    c Cs,h}xti|ƒD]}|idƒp|djp |djoqntii||ƒ}tii|ƒot|ƒ}np|idƒo\h}t|ƒ}|djo|o d|GHqqnx"|D]}|||i s     † '