|
def | _cmd_for (self, args, fp, ctx) |
|
def | _cmd_format (self, valref, args, fp, ctx) |
|
def | _cmd_if_any (self, args, fp, ctx) |
|
def | _cmd_if_index (self, args, fp, ctx) |
|
def | _cmd_include (self, valref, reader, fp, ctx) |
|
def | _cmd_is (self, args, fp, ctx) |
|
def | _cmd_print (self, valref, fp, ctx) |
|
def | _do_if (self, value, t_section, f_section, fp, ctx) |
|
def | _execute (self, program, fp, ctx) |
|
def | _parse (self, reader, for_names=None, file_args=()) |
|
Definition at line 209 of file ezt.py.
def OpenRTM_aist.utils.rtc-template.ezt.Template.__init__ |
( |
|
self, |
|
|
|
fname = None , |
|
|
|
compress_whitespace = 1 |
|
) |
| |
def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_for |
( |
|
self, |
|
|
|
args, |
|
|
|
fp, |
|
|
|
ctx |
|
) |
| |
|
private |
def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_format |
( |
|
self, |
|
|
|
valref, |
|
|
|
args, |
|
|
|
fp, |
|
|
|
ctx |
|
) |
| |
|
private |
def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_if_any |
( |
|
self, |
|
|
|
args, |
|
|
|
fp, |
|
|
|
ctx |
|
) |
| |
|
private |
def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_if_index |
( |
|
self, |
|
|
|
args, |
|
|
|
fp, |
|
|
|
ctx |
|
) |
| |
|
private |
def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_include |
( |
|
self, |
|
|
|
valref, |
|
|
|
reader, |
|
|
|
fp, |
|
|
|
ctx |
|
) |
| |
|
private |
def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_is |
( |
|
self, |
|
|
|
args, |
|
|
|
fp, |
|
|
|
ctx |
|
) |
| |
|
private |
def OpenRTM_aist.utils.rtc-template.ezt.Template._cmd_print |
( |
|
self, |
|
|
|
valref, |
|
|
|
fp, |
|
|
|
ctx |
|
) |
| |
|
private |
def OpenRTM_aist.utils.rtc-template.ezt.Template._do_if |
( |
|
self, |
|
|
|
value, |
|
|
|
t_section, |
|
|
|
f_section, |
|
|
|
fp, |
|
|
|
ctx |
|
) |
| |
|
private |
def OpenRTM_aist.utils.rtc-template.ezt.Template._execute |
( |
|
self, |
|
|
|
program, |
|
|
|
fp, |
|
|
|
ctx |
|
) |
| |
|
private |
This private helper function takes a 'program' sequence as created
by the method '_parse' and executes it step by step. strings are written
to the file object 'fp' and functions are called.
Definition at line 344 of file ezt.py.
def OpenRTM_aist.utils.rtc-template.ezt.Template._parse |
( |
|
self, |
|
|
|
reader, |
|
|
|
for_names = None , |
|
|
|
file_args = () |
|
) |
| |
|
private |
text -> string object containing the HTML template.
This is a private helper function doing the real work for method parse.
It returns the parsed template as a 'program'. This program is a sequence
made out of strings or (function, argument) 2-tuples.
Note: comment directives [# ...] are automatically dropped by _re_parse.
Definition at line 238 of file ezt.py.
def OpenRTM_aist.utils.rtc-template.ezt.Template.generate |
( |
|
self, |
|
|
|
fp, |
|
|
|
data |
|
) |
| |
def OpenRTM_aist.utils.rtc-template.ezt.Template.parse |
( |
|
self, |
|
|
|
text_or_reader |
|
) |
| |
Parse the template specified by text_or_reader.
The argument should be a string containing the template, or it should
specify a subclass of ezt.Reader which can read templates.
Definition at line 221 of file ezt.py.
def OpenRTM_aist.utils.rtc-template.ezt.Template.parse_file |
( |
|
self, |
|
|
|
fname |
|
) |
| |
OpenRTM_aist.utils.rtc-template.ezt.Template.compress_whitespace |
OpenRTM_aist.utils.rtc-template.ezt.Template.program |
The documentation for this class was generated from the following file: