Package tdi :: Module template :: Class OverlayTemplate
[frames] | no frames]

Class OverlayTemplate

source code

object --+    
         |    
  Template --+
             |
            OverlayTemplate

Overlay template representation
Instance Methods
 
__init__(self, original, overlay, keep=False)
Initialization
source code
 
template(self)
Return a clean template
source code
Template
reload(self, force=False)
Reload template(s) if possible and needed
source code
bool
update_available(self)
Check for update
source code

Inherited from Template: __str__, overlay, render, render_string

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Instance Variables

Inherited from Template: factory, filename, loader, mtime

Properties

Inherited from Template: encoding, source_overlay_names, target_overlay_names, tree, virgin_tree

Inherited from object: __class__

Method Details

__init__(self, original, overlay, keep=False)
(Constructor)

source code 
Initialization
Parameters:
  • original (Template) - Original template
  • overlay (Template) - Overlay template
  • keep (Template) - Keep original templates?
Overrides: object.__init__

template(self)

source code 
Return a clean template
Overrides: Template.template

reload(self, force=False)

source code 
Reload template(s) if possible and needed
Parameters:
  • force (bool) - Force reload (if possible)?
Returns: Template
The reloaded template or self
Overrides: Template.reload

update_available(self)

source code 
Check for update
Returns: bool
Update available?
Overrides: Template.update_available