Home | Trees | Index | Help |
|
---|
Module servlet :: Class _servlets_manager |
|
Method Summary | |
---|---|
__init__(self)
| |
Given a filename, return a Servlet class and cached instances, or raise an exception | |
Given a mps filename, return an instance of Servlet | |
Put a servlet back into the cache for reuse. | |
string |
Verify that the request is for a legal file and return its name. |
Method Details |
---|
_servlets_manager__load_servlet(self, fname)Given a filename, return a Servlet class and cached instances, or raise an exception |
get_servlet(self, filename)Given a mps filename, return an instance of Servlet |
put_servlet(self, servlet)Put a servlet back into the cache for reuse. |
verify_filename(self, req)Verify that the request is for a legal file and return its name. If the request specifies a directory, do a brute-force redirect to a file in the directory named index. This may result in a 404 error. File names beginning with a dot (.) or underscore (_) will result in a 403 error (FORBIDDEN). This, in effect, reserves such files for internal use by an application (for example, to name database or configuration files). This function will return req.filename if it has an extension and the extension is not MPS (an empty string will be returned if req.filename has a MPS extension: this enforces clean URLS) or "%s%s" % (req.filename, MPS) if req.filename has no extension and the MPS file exists or req.filename in all other cases.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Tue Mar 15 08:20:21 2005 | http://epydoc.sf.net |