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

# $Id: PythonEmbedded.py,v 1.3 2004/04/09 16:26:14 ods Exp $

 
Modules
       
re
string

 
Classes
       
Compiler
Engine
exceptions.Exception
Error
CompileError
ParseError
Parser
Writer

 
class CompileError(Error)
    
Method resolution order:
CompileError
Error
exceptions.Exception

Methods inherited from Error:
__init__(self, message='', filename='?', line=None)
__str__(self)

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

 
class Compiler
     Methods defined here:
__init__(self, source, filename)
process(self)
process_expr(self, s)
process_html(self, s)
process_suite(self, s)

 
class Engine
     Methods defined here:
compileFile(self, fp, template_name, get_template)
compileString(self, source, template_name, get_template)
dump(self, program)
interpret(self, program, fp, globals, locals, get_template)
load(self, s)

Data and other attributes defined here:
type = 'pyem'

 
class Error(exceptions.Exception)
     Methods defined here:
__init__(self, message='', filename='?', line=None)
__str__(self)

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

 
class ParseError(Error)
    
Method resolution order:
ParseError
Error
exceptions.Exception

Methods inherited from Error:
__init__(self, message='', filename='?', line=None)
__str__(self)

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

 
class Parser
     Methods defined here:
__init__(self, s, filename='?')
append(self, (state, s))
process(self)
process_expr(self)
process_html(self)
process_suite(self)
report_error(self, message, pos=None)

 
class Writer
     Methods defined here:
__call__(self, object)
__init__(self, fp)

 
Functions
       
expr_match = match(...)
suite_check_end = search(...)
suite_check_start = match(...)
suite_match = match(...)

 
Data
        double_re = r'"[^\n"\\]*(?:\\.[^\n"\\]*)*"'
single_re = r"'[^\n'\\]*(?:\\.[^\n'\\]*)*'"
string_re = '(\'\'\'[^\'\\\\]*(?:(?:\\\\.|\'(?!\'\'))[^\'\\\\]*)*\'\'\'|"""[^"...*(?:\\\\.[^\\n\'\\\\]*)*\'|"[^\\n"\\\\]*(?:\\\\.[^\\n"\\\\]*)*")'
triple_double_re = r'"""[^"\\]*(?:(?:\\.|"(?!""))[^"\\]*)*"""'
triple_single_re = r"'''[^'\\]*(?:(?:\\.|'(?!''))[^'\\]*)*'''"