[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/catalog - index.py:1.1.2.1
Anthony Baxter
anthony@interlink.com.au
Sat, 12 Jul 2003 03:09:30 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/catalog
In directory cvs.zope.org:/tmp/cvs-serv2553/interfaces/catalog
Added Files:
Tag: melb-2003-content-catalog-branch
index.py
Log Message:
FieldIndexes installed in a catalog don't get a wacky little GUI
to manage their subscriptions, as they're always subscribed to their
catalog.
Broke the IUIFieldIndex into two to reflect this - the notify &c.
and the subscription management are separate interfaces.
=== Added File Zope3/src/zope/app/interfaces/catalog/index.py ===
from zope.app.interfaces.event import ISubscriber
from zope.interface import Interface
class ICatalogIndexUpdate(ISubscriber):
"A wrapper around an Index that's in a Catalog"
def clear():
"Clear everything from the index"
class ICatalogIndexQuery(Interface):
"la la la la la"
def search(term):
"do a search"
class ICatalogIndex(ICatalogIndexUpdate, ICatalogIndexQuery):
pass