| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
Lister.Lister --+
|
Buffer --+
|
Store
|
|||
| getnrBuffered(self) | ||
| getbuffered(self) | ||
|
__init__(self,
**pars) x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
||
|
addSort(self,
sortFunc) Adds buffer sorting to this instance of Store. |
||
|
_put(self,
arg) Handles put requests for Store instances |
||
|
_get(self,
arg) Handles get requests |
||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
| nrBuffered | ||
| buffered | ||
|
Inherited from |
|||
|
|||
|
|
|
Adds buffer sorting to this instance of Store. It maintains
theBuffer sorted by the sortAttr attribute of the objects in the
buffer.
The user-provided 'sortFunc' must look like this:
def mySort(self,par):
tmplist=[(x.sortAttr,x) for x in par]
tmplist.sort()
return [x for (key,x) in tmplist]
|
|
|
|
|||
nrBufferedNone
|
bufferedNone
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0alpha3 on Wed Jan 31 11:14:57 2007 | http://epydoc.sourceforge.net |