[Zope-Checkins] CVS: Zope2 - 010529-2.4-pluggableindex.stx:1.1.2.1

Matthew T. Kromer matt@digicool.com
Tue, 29 May 2001 09:09:27 -0400 (EDT)


Update of /cvs-repository/Zope2/doc/changenotes
In directory korak.digicool.com:/tmp/cvs-serv5088

Added Files:
      Tag: ajung-dropin-registry
	010529-2.4-pluggableindex.stx 
Log Message:
Document pluggable index base class



--- Added File 010529-2.4-pluggableindex.stx in package Zope2 ---
CHANGE
	
	010529-2.4-pluggableindex	

DEVELOPMENT BRANCH TAG

	ajung-dropin-registry

DESCRIPTION

	This change provides a base class for pluggable indexes,  
	providing the Interface object which they support.

AFFECTED MODULES

	- Products/PluginIndexes/common/PluggableIndex

API CHANGES

	The 'PluggableIndexInterface' is described in this module.
	
	All pluggable indexes must implement the following methods:

		- 'getEntryForObject(documentId, default=None)'

		- 'index_object(documentId, obj, threshold=None)'

		- 'unindex_object(documentId)'

		- 'uniqueValues(name=None, withLengths=0)'

		- '_apply_index(request, cid="")'

	These are, respectively, the equivalent of get(), add(), remove(),
	values() and search() on indexes.

	When pluggable indexes are registered with the product registry,
	they must declare themselves to support the PluggableIndexInterface.
	The most straighforward way to do this is with a class attribute:

		- '__implements__ = Products.PluginIndexes.common.PluggableIndex.PluggableIndexInterface'