Package Products :: Package PageTemplates :: Module PageTemplate :: Class PageTemplate
[show private | hide private]
[frames | no frames]

Type PageTemplate

object --+    
         |    
      Base --+
             |
            PageTemplate

Known Subclasses:
ZopePageTemplate

Page Templates using TAL, TALES, and METAL
Method Summary
  __call__(self, *args, **kwargs)
  html(self)
  pt_edit(self, text, content_type)
  pt_errors(self)
  pt_getContext(self)
  pt_macros(self)
  pt_render(self, source, extra_context)
Render this Page Template
  pt_source_file(self)
  pt_warnings(self)
  read(self)
  StringIO(self)
  write(self, text)
  _cook(self)
Compile the TAL and METAL statments.
  _cook_check(self)
Inherited from Base: __getattribute__, __getnewargs__, __getstate__, __new__, __reduce__, __setstate__
Inherited from object: __init__, __delattr__, __hash__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variable Summary
str content_type = 'text/html'
int expand = 0                                                                     
str id = '(unknown)'
ComputedAttribute macros = <ComputedAttribute object at 0x42600>
str _error_start = '<!-- Page Template Diagnostics'
str _text = ''
int _v_cooked = 0                                                                     
tuple _v_errors = ()
NoneType _v_macros = None                                                                  
NoneType _v_program = None                                                                  
tuple _v_warnings = ()

Method Details

pt_render(self, source=0, extra_context={})

Render this Page Template

_cook(self)

Compile the TAL and METAL statments.

Cooking must not fail due to compilation errors in templates.

Class Variable Details

content_type

Type:
str
Value:
'text/html'                                                            

expand

Type:
int
Value:
0                                                                     

id

Type:
str
Value:
'(unknown)'                                                            

macros

Type:
ComputedAttribute
Value:
<ComputedAttribute object at 0x42600>                                  

_error_start

Type:
str
Value:
'<!-- Page Template Diagnostics'                                       

_text

Type:
str
Value:
''                                                                     

_v_cooked

Type:
int
Value:
0                                                                     

_v_errors

Type:
tuple
Value:
()                                                                     

_v_macros

Type:
NoneType
Value:
None                                                                  

_v_program

Type:
NoneType
Value:
None                                                                  

_v_warnings

Type:
tuple
Value:
()                                                                     

Generated by Epydoc 2.1 on Thu Aug 16 09:55:08 2007 http://epydoc.sf.net