Package wtf :: Package app :: Package services :: Module resources :: Class Locator
[hide private]
[frames] | no frames]

Class Locator

source code

object --+
         |
        Locator

Resource locator
Instance Methods [hide private]
 
__init__(self, config)
Initialization
source code
Resource
__call__(self, spec, isfile=False)
Locate a particular resource
source code

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

Instance Variables [hide private]
wtf.config.Config _config
Configuration
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, config)
(Constructor)

source code 
Initialization
Parameters:
Overrides: object.__init__

__call__(self, spec, isfile=False)
(Call operator)

source code 
Locate a particular resource
Parameters:
  • spec (str) - The specification
  • isfile (bool) - Does spec refer to a file?
Returns: Resource
A resource Container