GangaRepository is the base class for repository backend
implementations. It provides an interface for developers of new backends.
The base class implements a transient Ganga Repository for testing
purposes.
|
|
|
_internal_del__(self,
id)
Internal function for repository classes to (logically) delete items
to the repository. |
source code
|
|
|
|
|
|
|
add(self,
objs,
force_ids=None)
add(objects) --> list of object IDs in this repository Add the
given objects to the repository and return their IDs After
successfully determining the id call _internal_setitem__(id,obj) for
each id/object pair. |
source code
|
|
|
clean(self)
clear() --> None Remove the Repository completely (rm -rf) and set
it up again. |
source code
|
|
|
delete(self,
ids)
delete(ids) --> None Delete the objects specified by the ids from
the repository. |
source code
|
|
|
flush(self,
ids)
flush(ids) --> None Writes the objects specified by the ids to the
persistency layer. |
source code
|
|
|
get_lock_session(id)
Tries to determine the session that holds the lock on id for
information purposes, and return an informative string. |
source code
|
|
|
get_other_sessions()
Tries to determine the other sessions that are active and returns an
informative string for each of them. |
source code
|
|
|
load(self,
ids)
load(ids) --> None Load the objects specified by the ids from the
persistency layer. |
source code
|
|
|
lock(self,
ids)
lock(ids) --> bool Locks the specified IDs against modification
from other Ganga sessions Raise RepositoryError Returns successfully
locked ids |
source code
|
|
|
reap_locks(self)
reap_locks() --> True/False Remotely clear all foreign locks from
the session. |
source code
|
|
|
|
|
|
|
unlock(self,
ids)
unlock(ids) --> None Unlock the specified IDs to allow another
Ganga session to modify them EXPERIMENTAL - does not have to be
implemented. |
source code
|
|
|
update_index(self,
id=None)
update_index(id = None) --> iterable of ids Read the index
containing the given ID (or all indices if id is None). |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|