Package tdi :: Package integration :: Module wtf_service :: Class DirectoryTemplateLister
[frames] | no frames]

Class DirectoryTemplateLister

source code

object --+
         |
        DirectoryTemplateLister

Directory Template Lister
Instance Methods
 
__init__(self, directories, extensions, ignore=None)
Initialization
source code
iterable
__call__(self)
Walk the directories and yield all template names
source code

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

Class Variables
tuple DEFAULT_IGNORE = ('.svn', 'CVS', '.git', '.bzr', '.hg')
Default list of directory names to ignore
Properties

Inherited from object: __class__

Method Details

__init__(self, directories, extensions, ignore=None)
(Constructor)

source code 
Initialization
Parameters:
  • directories (iterable) - List of base directories to scan
  • extensions (iterable) - List of extensions to consider
  • ignore (iterable) - List of directory names to ignore. If omitted or None, DEFAULT_IGNORE is applied.
Overrides: object.__init__

__call__(self)
(Call operator)

source code 
Walk the directories and yield all template names
Returns: iterable
Iterator over template names

Class Variable Details

DEFAULT_IGNORE

Default list of directory names to ignore
Type:
tuple
Value:
('.svn', 'CVS', '.git', '.bzr', '.hg')