Ñò ‚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+scCs;t|itƒo|iStii|iƒ|iƒSdS(N(t isinstancet _template_dirttupleR R tjoinR(R((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyt template_dir0scCs=|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ƒ} | ||iR?(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.pyREs 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_templatestFalseR>R3RR?RRRRR1RRRERR(((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#(RRRKR"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 RFRR"R#(R((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyt__repr__œs cCs*|iod|i|ifS|iSdS(Ns%s (%s)(RKR(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( tmaxtlenRRKR"RR$R#tTrue(tclsRR=R7tvtmax_nameR.((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyRE§s0  (RFR RPRRLR REt 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)RKs#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"( RFR RtsummaryR.RIRt staticmethodRR?(((s:/usr/lib/python2.6/site-packages/paste/script/templates.pyRUº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ÿÿÿÿtfiletbodyiRKR"(RtstrtunicodetCheetah.TemplateRthasattrRRgtinspectt getargspectlistROR&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     † '