Ñò †°Ic@s]dZddkZddklZddgZd„Zed„Zdefd „ƒYZdS( s Module to rename form fields iÿÿÿÿN(tRewritingParsertrenamet add_prefixcCs-t|ƒ}|i|ƒ|iƒ|iƒS(sº Rename all the form fields in the form (a string), using rename_func rename_func will be called with one argument, the name of the field, and should return a new name. (tRenamingParsertfeedtclosettext(tformt rename_functp((s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pyR s   cs‡‡fd†}t||ƒS(sË Add the given prefix to all the fields in the form. If dotted is true, then add a dot between prefix and the previous name. Empty fields will use the prefix as the name (with no dot). cs/ˆo|o ˆd|SˆSn ˆ|SdS(Nt.((t field_name(tprefixtdotted(s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pyRs  (R(RR R R((R R s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pyRsRcBsAeZd„Zd„Zd„Zed„Zd„Zd„ZRS(cCsti|ƒ||_dS(N(Rt__init__R(tselfR((s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pyR)s cCs-|idƒti|ƒ|iƒ|_dS(N(t handle_misctNoneRRt _get_textt_text(R((s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pyR-s  cCs1y |iSWntj otdƒ‚nXdS(NsCYou must .close() a parser instance before getting the text from it(RtAttributeErrort Exception(R((s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pyR2s  cCs6|iƒ|djo|i|||ƒndSdS(Ntinputttextareatselect(sinputRR(t write_post handle_field(Rttagtattrststartend((s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pythandle_starttag:s  cCs|i||tƒS(N(RtTrue(RRR((s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pythandle_startendtagAscCsu|i|ddƒ}|i|ƒ}|djo|i|dƒn|i|d|ƒ|i||ƒt|_dS(Ntnamet(tget_attrRRtdel_attrtset_attrt write_tagRt skip_next(RRRRR!tnew_name((s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pyRDs ( t__name__t __module__RRRtFalseRR R(((s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pyR's      ( t__doc__t HTMLParsertformencode.rewritingparserRt__all__RR+RR(((s9/usr/lib/python2.6/site-packages/formencode/htmlrename.pyts