Package amplee :: Package indexer :: Class KeywordIndex
[hide private]
[frames] | no frames]

Class KeywordIndex

source code

object --+    
         |    
 BaseIndex --+
             |
            KeywordIndex

Instance Methods [hide private]
 
__init__(self, name, container=None, keywords=None)
Simple keyword indexing on the content element
source code
 
update(self, member)
Updates the index based on the content element of the provided member.
source code
set
contains(self, keyword)
Lookup members indexed against the provided keyword.
source code

Inherited from BaseIndex: iiterindex, iload, iterindex, keys, load, store

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, container=None, keywords=None)
(Constructor)

source code 
Simple keyword indexing on the content element
Parameters:
  • name (string) - an internal identifier used to reference the indexer.
  • container (object) - instance of a class implementing the dictionnary interface.
  • keywords (list) - list of words to be looked for in the content
Overrides: BaseIndex.__init__

update(self, member)

source code 
Updates the index based on the content element of the provided member.
Parameters:
Overrides: BaseIndex.update

contains(self, keyword)

source code 
Lookup members indexed against the provided keyword.
Parameters:
  • keyword (string) - keyword to test against
Returns: set