PPA.Template.Controller
index
/home/ods/SF-PPA/homepage/API/PPA/Template/Controller.py

# $Id: Controller.py,v 1.1.1.1 2004/04/09 13:18:10 ods Exp $

 
Modules
       
sys

 
Classes
       
exceptions.Exception
TemplateRecursionLimitExceeded
TemplateController
TemplateDependencyRegistrar
TemplateWrapper

 
class TemplateController
    Control communication between application, template engines, cache,
template source finder.
 
  Methods defined here:
__init__(self, source_finder, engine_importer=None, template_cache=None, template_wrapper_class=<class PPA.Template.Controller.TemplateWrapper>, compile_dep_reg_class=<class PPA.Template.Controller.TemplateDependencyRegistrar>, interpret_dep_reg_class=<class PPA.Template.Controller.TemplateDependencyRegistrar>)
getEngine(self, template_type)
Import, create and return engine (cached).
getTemplate(self, template_name, template_type=None, _recursion_limit=10)
Dispatch the request to template engine and return compiled
template object.

 
class TemplateDependencyRegistrar
    Register dependecies
 
  Methods defined here:
__init__(self, get_template, _recursion_limit)
getDependencies(self)
getTemplate(self, template_name, template_type=None)

 
class TemplateRecursionLimitExceeded(exceptions.Exception)
     Methods defined here:
__init__(self, stack)
__str__(self)

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class TemplateWrapper
    # XXX Problem with this class and related code: it breaks incapsulation. On the
# other hand serialization always breaks incapsulation.
 
  Methods defined here:
__init__(self, engine, program, compile_deps, create_interpret_dep_reg)
getProgram(self)
interpret(self, fp=<open file '<stdout>', mode 'w'>, globals={}, locals={}, _recursion_limit=10)

 
Data
        TEMPLATE_RECURSION_LIMIT = 10