Ńņ 4Mc@s@dZdZdZddkTddkZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk Z ddk Z ddkZdZdZdZd ZdZdZd fd „ƒYZd fd „ƒYZdfd„ƒYZdfd„ƒYZdefd„ƒYZdefd„ƒYZdS(s> A templating engine for separation of code and HTML. The documentation of this templating engine is separated to two parts: 1. Description of the templating language. 2. Documentation of classes and API of this module that provides a Python implementation of the templating language. All the documentation can be found in 'doc' directory of the distribution tarball or at the homepage of the engine. Latest versions of this module are also available at that website. You can use and redistribute this module under conditions of the GNU General Public License that can be found either at [ http://www.gnu.org/ ] or in file "LICENSE" contained in the distribution tarball of this module. Copyright (c) 2001 Tomas Styblo, tripie@cpan.org @name htmltmpl @version 1.22 @author-name Tomas Styblo @author-email tripie@cpan.org @website http://htmltmpl.sourceforge.net/ @license-name GNU GPL @license-url http://www.gnu.org/licenses/gpl.html g…ėQø…ó?sTomas Styblo (tripie@cpan.org)i’’’’(t*NtinciiitTemplateManagercBsheZdZddddddd„Zd„Zd„Zd„Zd„Zd „Zd „Z d „Z RS( s{ Class that manages compilation and precompilation of templates. You should use this class whenever you work with templates that are stored in a file. The class can create a compiled template and transparently manage its precompilation. It also keeps the precompiled templates up-to-date by modification times comparisons. iiicCsG||_||_||_||_||_||_|idƒdS(sŁ Constructor. @header __init__(include=1, max_include=5, precompile=1, comments=1, gettext=0, debug=0) @param include Enable or disable included templates. This optional parameter can be used to enable or disable TMPL_INCLUDE inclusion of templates. Disabling of inclusion can improve performance a bit. The inclusion is enabled by default. @param max_include Maximum depth of nested inclusions. This optional parameter can be used to specify maximum depth of nested TMPL_INCLUDE inclusions. It defaults to 5. This setting prevents infinite recursive inclusions. @param precompile Enable or disable precompilation of templates. This optional parameter can be used to enable or disable creation and usage of precompiled templates. A precompiled template is saved to the same directory in which the main template file is located. You need write permissions to that directory. Precompilation provides a significant performance boost because it's not necessary to parse the templates over and over again. The boost is especially noticeable when templates that include other templates are used. Comparison of modification times of the main template and all included templates is used to ensure that the precompiled templates are up-to-date. Templates are also recompiled if the htmltmpl module is updated. The TemplateErrorexception is raised when the precompiled template cannot be saved. Precompilation is enabled by default. @param comments Enable or disable template comments. This optional parameter can be used to enable or disable template comments. Disabling of the comments can improve performance a bit. Comments are enabled by default. @param gettext Enable or disable gettext support. @param debug Enable or disable debugging messages. This optional parameter is a flag that can be used to enable or disable debugging messages which are printed to the standard error output. The debugging messages are disabled by default. s INIT DONEN(t_includet _max_includet _precompilet _commentst_gettextt_debugtDEB(tselftincludet max_includet precompiletcommentstgettexttdebug((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyt__init__Ks7      cCs:d}|io |i|ƒoĶy|i|ƒ}WnBtj o6}tid|IJ|i|ƒ}|i|ƒqX|i |i ƒ|i |i |i |if}|i|ƒo|idƒ|}q|idƒ|i|ƒ}q6|idƒ|i|ƒ}|i|ƒn|idƒ|i|ƒ}|S(sĆ Preprocess, parse, tokenize and compile the template. If precompilation is enabled then this method tries to load a precompiled form of the template from the same directory in which the template source file is located. If it succeeds, then it compares modification times stored in the precompiled form to modification times of source files of the template, including source files of all templates included via the TMPL_INCLUDE statements. If any of the modification times differs, then the template is recompiled and the precompiled form updated. If precompilation is disabled, then this method parses and compiles the template. @header prepare(file) @return Compiled template. The methods returns an instance of the Template class which is a compiled form of the template. This instance can be used as input for the TemplateProcessor. @param file Path to the template file to prepare. The method looks for the template file in current directory if the parameter is a relative path. All included templates must be placed in subdirectory 'inc' of the directory in which the main template file is located. s/Htmltmpl: bad precompiled template '%s' removedsPRECOMPILED: UPTODATEsPRECOMPILED: NOT UPTODATEsPRECOMPILED: NOT PRECOMPILEDsPRECOMPILATION DISABLEDN(tNoneRtis_precompiledtload_precompiledtPrecompiledErrortsyststderrtcompiletsave_precompiledRRRRRRt is_uptodateR tupdate(R tfiletcompiledt precompiledttemplatetcompile_params((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pytprepare‹s0        cCsA|idƒ|i|iƒƒ}|io|i|ƒn|S(sć Update (recompile) a compiled template. This method recompiles a template compiled from a file. If precompilation is enabled then the precompiled form saved on disk is also updated. @header update(template) @return Recompiled template. It's ensured that the returned template is up-to-date. @param template A compiled template. This parameter should be an instance of the Template class, created either by the TemplateManager or by the TemplateCompiler. The instance must represent a template compiled from a file on disk. tUPDATE(R RRRR(R Rtupdated((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRÅs   cCs|ioti|IJndS(sY Print debugging message to stderr if debugging is enabled. @hidden N(RRR(R tstr((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR įs cCs.t|i|i|i|i|iƒi|ƒS(s3 Compile the template. @hidden (tTemplateCompilerRRRRRR(R R((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRēs cCs*|d}tii|ƒodSdSdS(sŗ Return true if the template is already precompiled on the disk. This method doesn't check whether the compiled template is uptodate. @hidden tciiN(tostpathtisfile(R Rtfilename((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRļs c Cs|d}|idƒz°d}d}y5t|dƒ}ti|tiƒti|ƒ}Wndtj o%\}}t d|||f‚n9ti j od}t |‚nd}‚nX|SWd|oti |ƒ|i ƒn|o$tii|ƒoti|ƒnXdS(sŅ Load precompiled template from disk. Remove the precompiled template file and recompile it if the file contains corrupted or unpicklable data. @hidden R&sLOADING PRECOMPILEDitrbs3IO error in load precompiled template '%s': (%d) %siN(R Rtopent portalockertlocktLOCK_SHtcPickletloadtIOErrort TemplateErrortUnpicklingErrorRtunlocktcloseR'R(R)tremove(R RR*t remove_badRterrnoterrstr((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRūs0    c Cs¦|iƒd}tiitii|ƒƒ}ti|tiƒptd|‚nzüd}d }yft |dƒ}t i |t i ƒd}d}|i oti|||ƒnti|||ƒWnvtj o+\}} d}td||| f‚nNtij o"} d}td|| f‚nd}‚nX|idƒWd |ot i|ƒ|iƒn|o$tii|ƒoti|ƒnXd S( sż Save compiled template to disk in precompiled form. Associated metadata is also saved. It includes: filename of the main template file, modification time of the main template file, modification times of all included templates and version of the htmltmpl module which compiled the template. The method removes a file which is saved only partially because of some error. @hidden R&sCCannot save precompiled templates to '%s': write permission denied.itwbis8IO error while saving precompiled template '%s': (%d) %ss9Pickling error while saving precompiled template '%s': %ssSAVING PRECOMPILEDN(RR'R(tdirnametabspathtaccesstW_OKR3RR,R-R.tLOCK_EXRR0tdumpR2t PicklingErrorR R5R6R)R7( R RR*t template_dirR8RtBINARYtREADABLER9R:terror((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR sB    ( t__name__t __module__t__doc__RR!RR RRRR(((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRAs ? :    %tTemplateProcessorcBsweZdZddddd„Zd„Zdd„Zd d„Zd„Zd d„Z d „Z d d „Z d „Z RS(sŻ Fill the template with data and process it. This class provides actual processing of a compiled template. Use it to set template variables and loops and then obtain result of the processing. iicCsC||_||_||_||_h|_d|_d|_dS(sų Constructor. @header __init__(html_escape=1, magic_vars=1, global_vars=0, debug=0) @param html_escape Enable or disable HTML escaping of variables. This optional parameter is a flag that can be used to enable or disable automatic HTML escaping of variables. All variables are by default automatically HTML escaped. The escaping process substitutes HTML brackets, ampersands and double quotes with appropriate HTML entities. @param magic_vars Enable or disable loop magic variables. This parameter can be used to enable or disable "magic" context variables, that are automatically defined inside loops. Magic variables are enabled by default. Refer to the language specification for description of these magic variables. @param global_vars Globally activate global lookup of variables. This optional parameter is a flag that can be used to specify whether variables which cannot be found in the current scope should be automatically looked up in enclosing scopes. Automatic global lookup is disabled by default. Global lookup can be overriden on a per-variable basis by the GLOBAL parameter of a TMPL_VAR statement. @param debug Enable or disable debugging messages. iiN(t _html_escapet _magic_varst _global_varsRt_varst _current_partt _current_pos(R t html_escapet magic_varst global_varsR((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRds!      cCs¢|i|ƒo"|iƒptd|‚qznIt|ƒtjo(||iƒjotd|‚qzntd|‚||i|<|idt|ƒƒdS(s Associate a value with top-level template variable or loop. A template identifier can represent either an ordinary variable (string) or a loop. To assign a value to a string identifier pass a scalar as the 'value' parameter. This scalar will be automatically converted to string. To assign a value to a loop identifier pass a list of mappings as the 'value' parameter. The engine iterates over this list and assigns values from the mappings to variables in a template loop block if a key in the mapping corresponds to a name of a variable in the loop block. The number of mappings contained in this list is equal to number of times the loop block is repeated in the output. @header set(var, value) @return No return value. @param var Name of template variable or loop. @param value The value to associate. sInvalid variable name '%s'.sInvalid loop name '%s'.sBValue of toplevel variable '%s' must be either a scalar or a list.s VALUE SET: N( tis_ordinary_vartislowerR3ttypetListTypet capitalizeRNR R$(R tvartvalue((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pytset”s  cCs;d|_d|_|p|iiƒn|idƒdS(sŽ Reset the template data. This method resets the data contained in the template processor instance. The template processor instance can be used to process any number of templates, but this method must be called after a template is processed to reuse the instance, @header reset(keep_data=0) @return No return value. @param keep_data Do not reset the template data. Use this flag if you do not want the template data to be erased. This way you can reuse the data contained in the instance of the TemplateProcessor. iitRESETN(RORPRNtclearR (R t keep_data((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pytreset½s   cCsg|idƒ|ioti|itiƒn|d2jo*|djp||ijo td‚nd}g}d}d}g}g}g} g} |i ƒ} t | ƒ} d} |i }xy|| joPn|od}|t 7}qĀn| |}|i dƒp|i dƒo÷|djo§| |t}|p td ‚n| |t}| |t}d}||joRt|i|||| |ƒƒ}| |i||ƒ7} |id t|ƒƒqq.|d joā| |t}|p td ‚nd}|i|||| ƒ}|p d}n| i|ƒ| i|ƒ|idƒ|i|ƒ|djo(|i|ƒ|id t|ƒƒq|i|ƒ|id||fƒq.|djo¢| |t}|p td‚n| |t}d}|i|||| |ƒo(|i|ƒ|idt|ƒƒq|i|ƒ|idt|ƒƒq.|djo¢| |t}|p td‚n| |t}d}|i|||| |ƒo(|i|ƒ|idt|ƒƒq|i|ƒ|idt|ƒƒq.|djo²d}|p td‚n| ddjo|dcd7Template class created either by the TemplateManager or by the TemplateCompiler. @param part The part of a multipart template to process. This parameter can be used only together with a multipart template. It specifies the number of the part to process. It must be greater than zero, because the parts are numbered from one. The parts must be processed in the right order. You cannot process a part which precedes an already processed part. If this parameter is not specified, then the whole template is processed, or all remaining parts are processed. s APP INPUT:isprocess() - invalid part numberits.sVAR: s .sLOOP: DISABLE: sLOOP: FIRST PASS: %s TOTAL: %ds.s IF: ENABLE: s IF: DISABLE: s .sUNLESS: DISABLE: sUNLESS: ENABLE: s .i’’’’s LOOP: ENDsLOOP: NEXT PASSs .sIF: ENDs .s UNLESS: ENDs .s ELSE: ENABLEs ELSE: DISABLEsBUG: ELSE: INVALID FLAGs

HTMLTMPL WARNING:
Cannot include template: %s


sCANNOT INCLUDE WARNINGs .sMissing .s$Missing or N(R RtpprintRNRRRROR3ttokenstlenRPt PARAMS_NUMBERt startswitht PARAM_NAMEt PARAM_ESCAPEt PARAM_GLOBALR$t find_valuetescapetappendtpoptPARAM_GETTEXT_STRINGR(R Rtpartt skip_paramstoutput_controlt ENABLE_OUTPUTtDISABLE_OUTPUTt loop_namet loop_passt loop_startt loop_totalRbt len_tokenstouttittokenRYRjtglobalpRZt passtotalR*ttext((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pytprocessÓs,  *                                                              cCs|ioti|IJndS(sX Print debugging message to stderr if debugging is enabled. @hidden N(RRR(R R$((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR Źs c Cs|io3|idƒo#|o|i||d|dƒS|i}g}xøtt|ƒƒD]¤}|io |djp |djo9|i|ƒo)|i||ƒo|i ||ƒn|i||ƒo)|||o|||||}q_dSq_W|i|ƒo2t ||ƒt jot||ƒS||SnQ|o/|io |djp |djo |i ƒS|di ƒodSdSdS(s  Search the self._vars data structure to find variable var located in currently processed pass of a loop which is currently being processed. If the variable is an ordinary variable, then return it. If the variable is an identificator of a loop, then return the total number of times this loop will be executed. Return an empty string, if the variable is not found at all. @hidden t__i’’’’t0t1R`iN(RLRet magic_varRNtrangeRcRMthas_keyRTRkRVRWRltisupper( R RYRsRtRvtglobal_overridetscopetglobalsRy((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRiŠs0! #   cCsĀ|id|||fƒ|djo|djodSdSn~|djo||djodSdSnS|djo+|djo||djodSdSn|djo |dS|djo|S|d jo"|dd djodSdSnÄ|id ƒo¦|djo‘||djo€yt|d ƒ}Wntj otd ‚q­X|p td‚q­|d|djo|idt|ƒƒdSdSq¾dSntd|‚dS(s” Resolve and return value of a magic variable. Raise an exception if the magic variable is not recognized. @hidden s MAGIC: '%s', PASS: %d, TOTAL: %dt __FIRST__iit__LAST__t __INNER__t__PASS__t __PASSTOTAL__t__ODD__it __EVERY__i s/Magic variable __EVERY__x: Invalid pass number.s6Magic variable __EVERY__x: Pass number cannot be zero.sMAGIC: EVERY: sInvalid magic variable '%s'.N(R Retintt ValueErrorR3R$(R RYRtRvtevery((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR‚ sH          R`cCs…d}|io'|djo|djo |djp|djp |djoti||ƒS|djoti|ƒS|SdS(sY Escape a string either by HTML escaping or by URL escaping. @hidden itNONER€tURLtHTMLRN(RKtcgiRjturllibt quote_plus(R R$toverridet ESCAPE_QUOTES((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRjJs$' cCsYt|ƒtjp9t|ƒtjp&t|ƒtjpt|ƒtjodSdSdS(sW Return true if var is a scalar. (not a reference to loop) @hidden iiN(RVt StringTypetIntTypetLongTypet FloatType(R RY((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRTWs&&N( RGRHRIRR[R_RR~R RiR‚RjRT(((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRJ\s0 )  ÷  < = R%cBs¤eZdZdddddd„Zd„Zd„Zd„Zd„Zd „Zd „Z d „Z d „Z d „Z d„Z d„Zd„Zd„Zd„ZRS(s¦ Preprocess, parse, tokenize and compile the template. This class parses the template and produces a 'compiled' form of it. This compiled form is an instance of the Template class. The compiled form is used as input for the TemplateProcessor which uses it to actually process the template. This class should be used direcly only when you need to compile a template from a string. If your template is in a file, then you should use the TemplateManager class which provides a higher level interface to this class and also can save the compiled template to disk in a precompiled form. iiicCsC||_||_||_||_||_g|_d|_dS(s² Constructor. @header __init__(include=1, max_include=5, comments=1, gettext=0, debug=0) @param include Enable or disable included templates. @param max_include Maximum depth of nested inclusions. @param comments Enable or disable template comments. @param gettext Enable or disable gettext support. @param debug Enable or disable debugging messages. iN(RRRRRt_include_filest_include_level(R R R RRR((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRus      cCsŠ|id|ƒtiitii|ƒtƒ|_|i|i|ƒƒ}|i |i |i |i f}t t||i|||iƒS(s€ Compile template from a file. @header compile(file) @return Compiled template. The return value is an instance of the Template class. @param file Filename of the template. See the prepare() method of the TemplateManager class for exaplanation of this parameter. sCOMPILING FROM FILE: (R R'R(tjoinR<t INCLUDE_DIRt _include_pathtparsetreadRRRRtTemplatet __version__RŸR(R RRbR ((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR‘s $ cCs_|idƒd|_|i|ƒ}|i|i|i|if}ttdd|||i ƒS(sŚ Compile template from a string. This method compiles a template from a string. The template cannot include any templates. TMPL_INCLUDE statements are turned into warnings. @header compile_string(data) @return Compiled template. The return value is an instance of the Template class. @param data String containing the template data. sCOMPILING FROM STRINGiN( R RR¤RRRR¦R§RR(R tdataRbR ((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pytcompile_string¦s   cCs|ioti|IJndS(sX Print debugging message to stderr if debugging is enabled. @hidden N(RRR(R R$((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR Ąs c Cs|id|ƒzad}yt|dƒ}|iƒ}Wn1tj o%\}}td|||f‚nX|SWd|o|iƒnXdS(sq Read content of file and return it. Raise an error if a problem occurs. @hidden s READING: trs-IO error while reading template '%s': (%d) %sN(R RR,R„R2R3R6(R R*tfRØR9R:((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR„ĘscCse|io |idƒ|i|ƒ}n|i|ƒ}|io|idƒ|i|ƒn|S(s» Parse the template. This method is recursively called from within the include_templates() method. @return List of processing tokens. @hidden sPREPROCESS: COMMENTSsPREPROCESS: INCLUDES(RR tremove_commentsttokenizeRtinclude_templates(R t template_dataRb((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR¤Łs    cCsd}ti|d|ƒS(sE Remove comments from the template data. @hidden s### .*R`(tretsub(R RÆtpattern((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR¬ésc Cs~d}d}d}xB|t|ƒjoPn|od}|t7}qn||}|djoč||t}|p td‚n|id7_|i|ijod}|id|ƒqJd}tii |i |ƒ}|i i |ƒ|i |ƒ}|i|ƒ} | |||td+|t| ƒ}|id|ƒqn|d7}q|idjo|id8_n|S(sŅ Process TMPL_INCLUDE statements. Use the include_level counter to prevent infinite recursion. Record paths to all included templates to self._include_files. @hidden iR`s .isINCLUDE: LIMIT REACHED: s INCLUDED: (RcRdRfR3R RR R'R(R”R£RŸRkR„R¤( R RbRyRxRoRzR*t include_filet include_datatinclude_tokens((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR®šs@     cCs[|idƒdti}ti|titiBƒ}|i|ƒ}g}x |D]}|idƒp0|idƒp |idƒp|idƒoƒ|i |ƒ}tid|ƒ}|i |i |ƒƒ|i |i |ƒƒ|i |i d|ƒƒ|i |i d |ƒƒqR|io!|id ƒ|i||ƒqR|i |ƒqRW|S( s  Split the template into tokens separated by template statements. The statements itself and associated parameters are also separately included in the resulting list of tokens. Return list of the tokens. @hidden sTOKENIZING TEMPLATEsŽ (?:^[ \t]+)? # eat spaces, tabs (opt.) (< (?:!--[ ])? # comment start + space (opt.) /?TMPL_[A-Z]+ # closing slash / (opt.) + statement [ a-zA-Z0-9""/.=:_\\-]* # this spans also comments ending (--) >) [%s]? # eat trailing newline (opt.) s '%s's%TOKENIZER: PARAM: '%s' => NOT DEFINEDN(R»R3R R(R tparamRĆtpairRĪRZt ret_value((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRæ»s   (RGRHRIRRR©R R„R¤R¬R®R­RĄRĘR¼R½R¾Ræ(((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR%fs"          2 , @ R¦cBs\eZdZdd„Zd d„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( s% This class represents a compiled template. This class provides storage and methods for the compiled template and associated metadata. It's serialized by pickle if we need to save the compiled template to disk in a precompiled form. You should never instantiate this class directly. Always use the TemplateManager or TemplateCompiler classes to create the instances of this class. The only method which you can directly use is the is_uptodate method. icCsš||_||_||_||_||_d|_h|_|p|idƒdSt i i |ƒot i i |ƒ|_nt d|‚xK|D]C}t i i |ƒot i i |ƒ|i|TemplateManager. sTEMPLATE COMPILED FROM A STRINGisTEMPLATE: VERSION NOT UPTODATEs&TEMPLATE: DIFFERENT COMPILATION PARAMSsTEMPLATE: NOT UPTODATE: sTEMPLATE: UPTODATEiN( RŌR RÓR§RRÖR'R(R)R×RŁRŲtkeys(R R RÜ((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRs,       cCs|iS(s: Get tokens of this template. @hidden (RÕ(R ((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRb7scCs|iS(sM Get filename of the main file of this template. @hidden (RŌ(R ((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR=scCs ||_dS(s2 Get debugging state. @hidden N(R(R R((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRCscCsti|iƒ}|d=|S(s‰ Used by pickle when the class is serialized. Remove the 'debug' attribute before serialization. @hidden R(tcopyt__dict__(R tdict((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyt __getstate__MscCsd|d<||_dS(ss Used by pickle when the class is unserialized. Add the 'debug' attribute. @hidden iRN(Rß(R Rą((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyt __setstate__Vs cCs|ioti|IJndS(s@ Print debugging message to stderr. @hidden N(RRR(R R$((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR _s N( RGRHRIRRRRbRRRįRāR (((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR¦Õs  2   R3cBseZdZd„ZRS(sŽ Fatal exception. Raised on runtime or template syntax errors. This exception is raised when a runtime error occurs or when a syntax error in the template is found. It has one parameter which always is a string containing a description of the error. All potential IOError exceptions are handled by the module and are converted to TemplateError exceptions. That means you should catch the TemplateError exception if there is a possibility that for example the template file will not be accesssible. The exception can be raised by constructors or by any method of any class. The instance is no longer usable when this exception is raised. cCsti|d|ƒdS(s* Constructor. @hidden sHtmltmpl error: N(t ExceptionR(R RF((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR|s(RGRHRIR(((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyR3jsRcBseZdZd„ZRS(s@ This exception is _PRIVATE_ and non fatal. @hidden cCsti||ƒdS(s* Constructor. @hidden N(RćR(R R((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRˆs(RGRHRIR(((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyRƒs(RIR§t __author__ttypesR°R'tos.pathRaRRŽR–R—R0RR-R¢RdRfRgRhRmRRJR%R¦RćR3R(((sC/home/sa3ruby/intertwingly.net/code/venus/planet/vendor/htmltmpl.pyts<            ’’’ ’p•