Ñò †°Ic@sedZddkZdddgZddd„Zd deddd „Zdeifd „ƒYZdS( sÐ Takes GET/POST variable dictionary, as might be returned by ``cgi``, and turns them into lists and dictionaries. Keys (variable names) can have subkeys, with a ``.`` and can be numbered with ``-``, like ``a.b-3=something`` means that the value ``a`` is a dictionary with a key ``b``, and ``b`` is a list, the third(-ish) element with the value ``something``. Numbers are used to sort, missing numbers are ignored. This doesn't deal with multiple keys, like in a query string of ``id=10&id=20``, which returns something like ``{'id': ['10', '20']}``. That's left to someplace else to interpret. If you want to represent lists in this model, you use indexes, and the lists are explicitly ordered. If you want to change the character that determines when to split for a dict or list, both variable_decode and variable_encode take dict_char and list_char keyword args. For example, to have the GET/POST variables, ``a_1=something`` as a list, you would use a list_char='_'. iÿÿÿÿNtvariable_decodetvariable_encodetNestedVariablest.t-cCs,h}h}h}x¶|iƒD]¨\}}|i|ƒ}g} t} xÀ|D]¸}|idƒo?|tdƒ }| i|ƒt|ƒ|t| ƒ|D]6}|}d}d}x$|D]}|}|}||}q W|idƒoOg}|dD]}|d|fqL~}|d=|i|iƒƒ|}n |iƒ}|iƒg}|D]\}}||q­~}|i|ƒoAt|ƒ||jo&|idg||t|ƒƒqn|||RsitN(titemstsplittFalsetendswithRtappendtintttupletTruetranget isinstancetdicttNonetKeyErrorthas_keytlisttextendtkeystsort(tdt dict_chart list_chartresultt dicts_to_sortt known_lengthstkeytvalueRtnew_keystwas_repetition_counttindextplacetit to_sort_keystto_sorttsourcetlast_keytsub_keyt_[1]txtnoneValst_[2]tktv((s=/usr/lib/python2.6/site-packages/formencode/variabledecode.pyRsŽ    !  +   '*R c CsM|djo h}nt|tƒo{x|iƒD]f\}}|djo |}n%|p |}nd|||f}t||||d|d|ƒq4Wn¨t|tƒoxJtt|ƒƒD]6} t|| d||| f||d|d|ƒqÅW|o5|od|} nd} tt|ƒƒ|| R?(((s=/usr/lib/python2.6/site-packages/formencode/variabledecode.pyRŠs  ( t__doc__tapit__all__RRRRtFancyValidatorR(((s=/usr/lib/python2.6/site-packages/formencode/variabledecode.pyts  P