[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/index - field.py:1.3.6.1

Anthony Baxter anthony@interlink.com.au
Sat, 12 Jul 2003 03:09:33 -0400


Update of /cvs-repository/Zope3/src/zope/app/interfaces/index
In directory cvs.zope.org:/tmp/cvs-serv2553/interfaces/index

Modified Files:
      Tag: melb-2003-content-catalog-branch
	field.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.


=== Zope3/src/zope/app/interfaces/index/field.py 1.3 => 1.3.6.1 ===
--- Zope3/src/zope/app/interfaces/index/field.py:1.3	Mon Jun 23 12:44:39 2003
+++ Zope3/src/zope/app/interfaces/index/field.py	Sat Jul 12 03:09:29 2003
@@ -21,8 +21,8 @@
 from zope.app.component.interfacefield import InterfaceField
 
 
-class IUIFieldIndex(Interface):
-    """Interface for creating a FieldIndex from the ZMI."""
+class IUIFieldCatalogIndex(Interface):
+    """Interface for creating a FieldIndex in a catalog from the ZMI."""
 
     interface = InterfaceField(
                     title=u"Interface",
@@ -33,6 +33,9 @@
     field_name = BytesLine(
                     title=u"Field Name",
                     description=u"Name of the field to index")
+
+class IUIFieldIndex(IUIFieldCatalogIndex):
+    """Interface for creating a FieldIndex from the ZMI (not in a catalog)."""
 
     def subscribe():
         """Subscribe to the prevailing object hub service."""