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

Class ServerObjectPool


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.
Method Summary
  __init__(self, objects)
Init the ServerObjectPool object with a
  delobj(self, name)
Remove an object with name |name|
  getobj(self, name)
Get an object and its authorization data, it must raise a KeyError exception if |name| is not present in the pool
  setobj(self, name, obj, authobj)
Register an object |obj| with the ID |name|
  setsend(self, ret, auth)
Register an object (to send by reference)

Method Details

__init__(self, objects=None)
(Constructor)

Init the ServerObjectPool object with a

delobj(self, name)

Remove an object with name |name|

getobj(self, name)

Get an object and its authorization data, it must raise a KeyError exception if |name| is not present in the pool

setobj(self, name, obj, authobj=None)

Register an object |obj| with the ID |name|

setsend(self, ret, auth=None)

Register an object (to send by reference)

Generated by Epydoc 2.1 on Sat Oct 14 11:50:51 2006 http://epydoc.sf.net