Package Ganga :: Package GPIDev :: Package Lib :: Package Registry :: Module RegistrySlice :: Class RegistrySlice
[hide private]
[frames] | no frames]

Class RegistrySlice

source code

object --+
         |
        RegistrySlice
Known Subclasses:

Instance Methods [hide private]
 
__init__(self, name, display_prefix)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_getColour(self, obj)
Override this function in derived slices to colorize your job/task/...
source code
 
do_collective_operation(self, keep_going, method, *args, **kwds) source code
 
ids(self, minid=None, maxid=None)
Get the list of job ids.
source code
 
clean(self, confirm=False, force=False)
Cleans the repository only if this slice represents the repository Returns True on success and False on failure
source code
 
select(self, minid=None, maxid=None, **attrs) source code
 
do_select(self, callback, minid=None, maxid=None, **attrs)
Get the slice of jobs.
source code
 
copy(self, keep_going) source code
 
__contains__(self, j) source code
 
__call__(self, id)
Retrieve an object by id.
source code
 
__iter__(self)
Iterator for the objects.
source code
 
__len__(self)
Number of objects in the registry
source code
 
__getitem__(self, x)
Retrieve the job object from the registry: registry[x].
source code
 
__getslice__(self, i1, i2) source code
 
_get_display_value(self, obj, item) source code
 
_display(self, interactive=0)
str(x)
source code
 
__str__(self, interactive=0)
str(x)
source code
 
_id(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, display_prefix)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_getColour(self, obj)

source code 

Override this function in derived slices to colorize your job/task/... list

ids(self, minid=None, maxid=None)

source code 

Get the list of job ids. 'minid' and 'maxid' specify optional (inclusive) slice range.

do_select(self, callback, minid=None, maxid=None, **attrs)

source code 

Get the slice of jobs. 'minid' and 'maxid' specify optional (inclusive) slice range. The returned slice object has the job registry interface but it is not connected to persistent storage.

__getitem__(self, x)
(Indexing operator)

source code 
Retrieve the job object from the registry: registry[x].
If 'x' is a job id (int) then a single job object is returned or IndexError.
If 'x' is a name (string) then a unique same name is returned, otherwise [].
If 'x' is a job object then it is returned if it belongs to the registry, otherwise None.
If 'x' is not of any of the types above, raise TypeError.
 or by name. If retrieved by name then the job must be unique, otherwise the RegistryKeyError is raised.
If the input is incorrect, RegistryAccessError is raised.

__str__(self, interactive=0)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)