Module lemon.external.Cheetah.Tools.CGITemplate
A subclass of Cheetah.Template for use in CGI scripts.
Usage in a template:
#extends Cheetah.Template.CGIMixin
#implements respond
$cgiHeaders#slurp
Usage in a template inheriting a Python class:
1. The template
#extends MyPythonClass
#implements respond
$cgiHeaders#slurp
2. The Python class
from Cheetah.Tools import CGITemplate
class MyPythonClass(CGITemplate):
def cgiHeadersHook(self):
return "Content-Type: text/html; charset=koi8-r
"
To read GET/POST variables, use the .webInput method defined in
Cheetah.Utils.WebInputMixin (available in all templates without importing
anything), use Python's 'cgi' module, or make your own arrangements.
This class inherits from Cheetah.Template to make it usable in Cheetah's
single-inheritance model.
Meta-Data
================================================================================
Author: Mike Orr <iron@mso.oz.net>
License: This software is released for unlimited distribution under the
terms of the Python license.
Version: $Revision: 1.1 $
Start Date: 2001/10/03
Last Revision Date: $Date: 2003/08/12 09:17:11 $
__author__
-
- Type:
-
str
- Value:
'Mike Orr <iron@mso.oz.net>'
|
|
__revision__
-
- Type:
-
str
- Value:
|