Ganga Registry Base class providing a dict-like locked and
lazy-loading interface to a Ganga repository
|
__init__(self,
name,
doc,
dirty_flush_counter=10,
update_index_time=30)
Registry constructor, giving public name and documentation |
source code
|
|
|
|
|
__len__(self)
Returns the current number of root objects |
source code
|
|
|
__contains__(self,
id)
Returns True if the given ID is in the registry |
source code
|
|
|
ids(self)
Returns the list of ids of this registry |
source code
|
|
|
|
|
iteritems(self)
Return the items (ID,obj) in this registry. |
source code
|
|
|
keys(self)
Returns the list of ids of this registry |
source code
|
|
|
|
|
|
|
find(self,
obj)
Returns the id of the given object in this registry, or Raise
ObjectNotInRegistryError if the Object is not found |
source code
|
|
|
clean(self,
force=False)
Deletes all elements of the registry, if no other sessions are
present. |
source code
|
|
|
_add(self,
obj,
force_index=None)
Add an object to the registry and assigns an ID to it. |
source code
|
|
|
_remove(self,
obj,
auto_removed=0)
Private method removing the obj from the registry. |
source code
|
|
|
|
|
_flush(self,
objs=[ ] )
Flush a set of objects to the persistency layer immediately Raise
RepositoryError Raise RegistryAccessError Raise RegistryLockError |
source code
|
|
|
|
|
|
|
|
|
|
|
getIndexCache(self,
obj)
Returns a dictionary to be put into obj._index_cache This can and
should be overwritten by derived Registries to provide more index
values. |
source code
|
|
|
|
|
|
|
info(self,
full=False)
Returns an informative string onFlush and disconnect the repository. |
source code
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|