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

Class AutoUpdate

source code

object --+
         |
        AutoUpdate

Autoupdate wrapper
Instance Methods
 
__init__(self, template)
Initialization
source code
any
__getattr__(self, name)
Pass through every request to the original template
source code
Template
overlay(self, other)
Overlay this template with another one
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, template)
(Constructor)

source code 
Initialization
Parameters:
  • template (Template) - The template to autoupdate
Overrides: object.__init__

__getattr__(self, name)
(Qualification operator)

source code 

Pass through every request to the original template

The template is checked before and possibly replaced if it changed.

Parameters:
  • name (str) - Name to lookup
Returns: any
The requested value
Raises:
  • AttributeError - not found

overlay(self, other)

source code 
Overlay this template with another one
Parameters:
  • other (Template) - The template layed over self
Returns: Template
The combined template