Package lemon :: Package external :: Package Cheetah :: Package Tools :: Module CGITemplate
[show private | hide private]
[frames | no frames]

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 $

Classes
CGITemplate Methods useful in CGI scripts.

Variable Summary
str __author__ = 'Mike Orr <iron@mso.oz.net>'
str __revision__ = '1.1'

Variable Details

__author__

Type:
str
Value:
'Mike Orr <iron@mso.oz.net>'                                           

__revision__

Type:
str
Value:
'1.1'                                                                  

Generated by Epydoc 2.0 on Mon Nov 10 15:08:25 2003 http://epydoc.sf.net