/usr/lib64/python2.6/site-packages/Cheetah/Utils
NameSizeModeActions
htmlDecode.py4370644editdlrm
htmlDecode.pyc7620644editdlrm
htmlDecode.pyo7620644editdlrm
htmlEncode.py5080644editdlrm
htmlEncode.pyc8390644editdlrm
htmlEncode.pyo8390644editdlrm
Indenter.py41450644editdlrm
Indenter.pyc56190644editdlrm
Indenter.pyo56190644editdlrm
memcache.py186950644editdlrm
memcache.pyc215760644editdlrm
memcache.pyo215760644editdlrm
Misc.py22420644editdlrm
Misc.pyc28250644editdlrm
Misc.pyo28250644editdlrm
statprof.py101520644editdlrm
statprof.pyc104430644editdlrm
statprof.pyo103420644editdlrm
WebInputMixin.py38690644editdlrm
WebInputMixin.pyc32480644editdlrm
WebInputMixin.pyo32480644editdlrm
__init__.py20644editdlrm
__init__.pyc1470644editdlrm
__init__.pyo1470644editdlrm
Edit: /usr/lib64/python2.6/site-packages/Cheetah/Utils/WebInputMixin.pyo (3248B)
Ñò xT)Kc@s_dZdZddd!ZddklZdefd„ƒYZd d d „ƒYZd „Zd S(sùProvides helpers for Template.webInput(), a method for importing web transaction variables in bulk. See the docstring of webInput for full details. Meta-Data ================================================================================ Author: Mike Orr License: This software is released for unlimited distribution under the terms of the MIT license. See the LICENSE file. Version: $Revision: 1.10 $ Start Date: 2002/03/17 Last Revision Date: $Date: 2006/01/06 21:56:54 $ sMike Orr s$Revision: 1.10 $i iŝ˙˙˙i˙˙˙˙(t useOrRaisetNonNumericInputErrorcBseZRS((t__name__t __module__(((sA/usr/lib64/python2.6/site-packages/Cheetah/Utils/WebInputMixin.pyRst _ConvertercBseZdZd„ZRS(s"A container object for info about type converters. .name, string, name of this converter (for error messages). .func, function, factory function. .default, value to use or raise if the real value is missing. .error, value to use or raise if .func() raises an exception. cCs(||_||_||_||_dS(N(tnametfunctdefaultterror(tselfRRRR((sA/usr/lib64/python2.6/site-packages/Cheetah/Utils/WebInputMixin.pyt__init__s   (RRt__doc__R (((sA/usr/lib64/python2.6/site-packages/Cheetah/Utils/WebInputMixin.pyRsc Csè|idƒ}|djo#|}|| ||d}}n|}}d}||jo#||dƒp ||dƒ}n||dƒ}|djo g}nt|tƒo |g}ny||} Wn5tj o)d} ||f} t| | ƒ‚nX| idj o‰|} g}xy| D]m} y| i| ƒ} WnDttfj o2| i| f} d| }t | i |ƒ} nX|i | ƒq,Wn|o ||fSt |ƒdjo|t | i ƒfS||dfS( s Look up a Webware field/cookie/value/session value. Return '(realName, value)' where 'realName' is like 'name' but with any conversion suffix strips off. Applies numeric conversion and single vs multi values according to the comments in the source. t:i˙˙˙˙its*'%s' is not a valid converter name in '%s's#%s '%s' contains invalid charactersiN(tfindtNonet isinstancetstrtKeyErrort TypeErrorRt ValueErrorRRRtappendtlenR(RRtmultit converterstcolontlongNamet shortNametexttvaluest convertertfmtttupttmptelmterrmsg((sA/usr/lib64/python2.6/site-packages/Cheetah/Utils/WebInputMixin.pyt_lookup&sH    #      N(( R t __author__t __revision__tCheetah.Utils.MiscRRRRR$(((sA/usr/lib64/python2.6/site-packages/Cheetah/Utils/WebInputMixin.pyt s