[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/index - field.py:1.2
Marius Gedminas
mgedmin@codeworks.lt
Sun, 22 Jun 2003 12:10:57 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/index
In directory cvs.zope.org:/tmp/cvs-serv11775/src/zope/app/interfaces/index
Modified Files:
field.py
Log Message:
Added views for FieldIndex
=== Zope3/src/zope/app/interfaces/index/field.py 1.1 => 1.2 ===
--- 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 Sun Jun 22 12:10:56 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.
+ """