| Home | Trees | Index | Help |
|
|---|
| Package amplee :: Package indexer :: Class BaseIndex |
|
object --+
|
BaseIndex
AtomIDIndexer,
AuthorIndex,
CategoryIndex,
DateIndex,
KeywordIndex| Method Summary | |
|---|---|
Base class of your index handler. | |
Iterates through the keys of the container and apply for each one the provided ``func`` with the key and the data associated. | |
Return all the existing keys in the container as a list. | |
Returns the value associated with the key as a set of one element. | |
Stores a value within the index container | |
update(self,
member)
| |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Method Details |
|---|
__init__(self,
name,
container=None)
|
iterindex(self, func)Iterates through the keys of the container and apply for each one the provided ``func`` with the key and the data associated. If you want to stop the iteration you can simply raise StopIteration from the function. The method returns a list of results provided by the function calls. |
keys(self)Return all the existing keys in the container as a list. Not all containers support that features and should therefore be used carefully. |
load(self, key)Returns the value associated with the key as a set of one element. |
store(self, key, value)Stores a value within the index container The ``key`` and ``value`` can be any object as long as the container can cope with it. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Thu Jul 19 15:32:17 2007 | http://epydoc.sf.net |