[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/index - field.py:1.1.16.1
Albertas Agejevas
alga@codeworks.lt
Mon, 23 Jun 2003 10:21:11 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/index
In directory cvs.zope.org:/tmp/cvs-serv16963/src/zope/app/interfaces/index
Modified Files:
Tag: cw-mail-branch
field.py
Log Message:
One more sync with HEAD.
=== Zope3/src/zope/app/interfaces/index/field.py 1.1 => 1.1.16.1 ===
--- Zope3/src/zope/app/interfaces/index/field.py:1.1 Wed Mar 26 11:10:09 2003
+++ Zope3/src/zope/app/interfaces/index/field.py Mon Jun 23 10:20:11 2003
@@ -17,12 +17,16 @@
"""
from zope.interface import Interface
+from zope.schema import BytesLine
class IUIFieldIndex(Interface):
-
"""Interface for creating a FieldIndex from the ZMI."""
+ field_name = BytesLine(
+ title=u"Field Name",
+ description=u"Name of the field to index")
+
def subscribe():
"""Subscribe to the prevailing object hub service."""
@@ -35,3 +39,9 @@
def documentCount():
"""Return number of indexed documents """
+ def search(values):
+ """Return a set of hub IDs for all documents matching the values.
+
+ 'values' can be a single value or a sequence of values. In the latter
+ case the IDs of documents matching any of the values will be returned.
+ """