Package tdi :: Package tools :: Module template :: Class TemplateList
[frames] | no frames]

Class TemplateList

source code

object --+    
         |    
      list --+
             |
            TemplateList

Container for template names

This class contains the resulting template list, generated by the layout code.

Instance Methods
new empty list

__init__(*args, **kwargs)
Initialization
source code
str
__repr__(self)
Debug representation
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Methods
TemplateList
discover(cls, loader, names, use=None, ignore=None)
Disover templates and create a new template list
source code
Class Variables

Inherited from list: __hash__

Instance Variables
list or None missing = None
Missing overlays
Properties

Inherited from object: __class__

Method Details

__init__(*args, **kwargs)
(Constructor)

source code 
Initialization
Parameters:
  • MISSING (iterable) - Missing overlay list
Returns:
new empty list

Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 
Debug representation
Returns: str
The debug string
Overrides: object.__repr__

discover(cls, loader, names, use=None, ignore=None)
Class Method

source code 
Disover templates and create a new template list
Parameters:
  • loader (Loader) - Template loader
  • names (iterable) - Base names. These templates are always added first, in order and define the initial list of overlays to discover.
  • use (dict) - Extra target mapping (overlay name -> template name). This is used, before the global overlay mapping is asked. Pass ambiguous overlay decisions here, or disable certain overlays by passing None as name.
  • ignore (iterable) - List of template names to ignore completely.
Returns: TemplateList
Template list
Raises:

Instance Variable Details

missing

Missing overlays
Type:
list or None
Value:
None