[Zope3-checkins] CVS: Zope3/src/zope/index/interfaces - __init__.py:1.4
Andreas Jung
andreas@andreas-jung.com
Wed, 16 Jul 2003 12:56:39 -0400
Update of /cvs-repository/Zope3/src/zope/index/interfaces
In directory cvs.zope.org:/tmp/cvs-serv12290/interfaces
Modified Files:
__init__.py
Log Message:
added ITopicFilter
=== Zope3/src/zope/index/interfaces/__init__.py 1.3 => 1.4 ===
--- Zope3/src/zope/index/interfaces/__init__.py:1.3 Tue Jul 15 12:07:40 2003
+++ Zope3/src/zope/index/interfaces/__init__.py Wed Jul 16 12:56:34 2003
@@ -137,3 +137,28 @@
def query(term, start=0, count=None):
"search for the given term, return a sequence of hubids"
+
+class ITopicFilter(Interface):
+ """ interface for filters used by topic indexes """
+
+ def clear():
+ """clearn the index"""
+
+ def index_doc(docid, context):
+ """index an object"""
+
+ def unindex_doc(docid):
+ """unindex the object with id 'docid'"""
+
+ def getId():
+ """return own filter id"""
+
+ def setExpression(expr):
+ """set the filter expression, e.g.
+ 'context.meta_type=='...'
+ """
+ def getExpression():
+ """return the filter expression"""
+
+ def getIds():
+ """return an IISet of docids"""