Package Bio :: Package config :: Module Registry :: Class Registry
[hide private]
[frames] | no frames]

Class Registry

source code

Known Subclasses:

This is a dictionary-like object for storing and retrieving
objects in a registry.

Methods:
register    Add a RegisterableObject into the Registry.
    Dictionary interface:
__getitem__
get
keys
values
items

Instance Methods [hide private]
 
__getitem__(self, name) source code
 
__init__(name, load_path=...)
Create a new registry.
source code
 
__repr__(self) source code
 
__str__(self) source code
 
_autoload(self) source code
 
_load(self, path) source code
 
get(self, name, default=None) source code
 
items(self) source code
 
keys(self) source code
 
register(S, obj)
Add an object to the registry.
source code
 
values(self) source code
Method Details [hide private]

__init__(name, load_path=...)
(Constructor)

source code 

Create a new registry. name is the name of the registry. load_path is an optional path (e.g. Bio.config.dbdefs) that contains objects for the registry.

register(S, obj)

source code 

Add an object to the registry. obj must be a RegisterableObject object.