Package SPyRO :: Module codepools :: Class ServerObjectPool
[hide private]
[frames] | no frames]

Class ServerObjectPool

source code

Known Subclasses:
ModulePool

The pool of objects interface. This class is a basic pool implemented with a dictionary. To create a different pool of objects is necessary to create a class that implement every method in this interface.

Instance Methods [hide private]
 
__init__(self, objects=None)
Init the ServerObjectPool object with a
source code
 
setobj(self, name, obj, authobj=None)
Register an object |obj| with the ID |name|
source code
 
getobj(self, name)
Get an object and its authorization data, it must raise a KeyError exception if |name| is not present in the pool
source code
 
delobj(self, name)
Remove an object with name |name|
source code
 
setsend(self, newid, ret, auth=None)
Register an object (to send by reference)
source code