| Home | Trees | Indices | Help |
|
|---|
|
|
mod_python->WSGI Framework utilities
This code has been taken from mod_python original source code and rearranged here to easying the migration from mod_python to wsgi.
The code taken from mod_python is under the following License.
|
|||
| table | |||
| metaCookie | |||
|
Cookie This class implements the basic Cookie functionality. |
|||
| Field | |||
|
StringField This class is basically a string with added attributes for compatibility with std lib cgi.py. |
|||
| FieldList | |||
| FieldStorage | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| (string, string) |
|
||
|
|||
_path_cache =
|
|||
_path_cache_lock = threading.Lock()
|
|||
_cookiePattern = re.compile(r'
|
|||
readBlockSize = 65368The classes below are a (almost) a drop-in replacement for the standard cgi.py FieldStorage class. |
|||
RE_CDISPOSITION_FILENAME = re.compile(r'filename=
|
|||
__package__ =
|
|||
|
|||
A shorthand for retrieveing and parsing cookies given a Cookie class. The class must be one of the classes from this module. |
Parse a Content-type like header. Return the main content-type and a dictionary of options. |
Apply FieldStorage data to an object - the object must be callable. Examine the args, and match then with fs data, then call the object, return the result. |
Handle the POST of a file.
|
|
|||
_cookiePattern
|
readBlockSizeThe classes below are a (almost) a drop-in replacement for the standard cgi.py FieldStorage class. They should have pretty much the same functionality. These classes differ in that unlike cgi.FieldStorage, they are not recursive. The class FieldStorage contains a list of instances of Field class. Field class is incapable of storing anything in it. These objects should be considerably faster than the ones in cgi.py because they do not expect CGI environment, and are optimized specifically for Apache and mod_python.
|
RE_CDISPOSITION_FILENAME
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Wed Feb 8 14:59:26 2012 | http://epydoc.sourceforge.net |