Home | Trees | Index | Help |
|
---|
Package lemon :: Package external :: Package Cheetah :: Package Tools :: Module CGITemplate :: Class CGITemplate |
|
BaseServlet
--+ |Servlet
--+ |_SettingsCollector
--+ | | |SettingsManager
--+ |WebInputMixin
--+ |Template
--+ | CGITemplate
Methods useful in CGI scripts. Any class that inherits this mixin must also inherit Cheetah.Servlet.
Method Summary | |
---|---|
Outputs the CGI headers if this is a CGI script. | |
Override if you want to customize the CGI headers. | |
Is this a CGI script?... | |
Inherited from Template | |
Reads in the template definition, sets up the namespace searchList, processes settings, then compiles. | |
Compile the template. | |
Return a reference to the current errorCatcher... | |
Return the class code the compiler generated, or None if no compilation took place. | |
Return the module code the compiler generated, or None if no compilation took place. | |
A hook for getting the contents of a file. | |
Get a variable from the searchList. | |
Test if a variable name exists in the searchList. | |
Refresh a cache item. | |
Allows enable the Template to function as a standalone command-line program for static page generation. | |
Return a reference to the searchlist... | |
Break reference cycles before discarding a servlet. | |
Test if a variable name exists in the searchList. | |
Inherited from SettingsManager | |
Returns a shallow copy of the settings dictionary... | |
Returns a deep copy of the settings dictionary... | |
Return a string with the settings in .ini file format. | |
True/False... | |
Set a setting in self._settings. | |
Get a setting from self._settings, with or without a default value. | |
Return a reference to the settings dictionary... | |
Update the settings with a selective merge or a complete overwrite. | |
Update the settings from a text file using the syntax accepted by Python's standard ConfigParser module (like Windows .ini files). | |
See the docstring for .updateSettingsFromConfigFile() The caller of this method is responsible for closing the inFile file object. | |
See the docstring for .updateSettingsFromConfigFile()... | |
Update the settings from variables in a Python source file. | |
Update the settings from a code in a Python src string. | |
Write all the settings that can be represented as strings to an .ini style config file. | |
Inherited from Servlet | |
| |
| |
| |
| |
| |
Inherited from WebInputMixin | |
Import web transaction variables in bulk. |
Class Variable Summary | |
---|---|
Inherited from Servlet | |
NoneType |
application = None |
NoneType |
request = None |
NoneType |
session = None |
NoneType |
transaction = None |
Method Details |
---|
cgiHeaders(self)Outputs the CGI headers if this is a CGI script. Usage: $cgiHeaders#slurp Override .cgiHeadersHook() if you want to customize the headers. |
cgiHeadersHook(self)Override if you want to customize the CGI headers. |
isCgi(self)Is this a CGI script? |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Nov 10 15:07:55 2003 | http://epydoc.sf.net |