[Zope-Checkins] SVN: Zope/trunk/ - added PluggableIndexes/interfaces/IIndexConfiguration (on request

Andreas Jung andreas at andreas-jung.com
Fri Feb 29 07:48:58 EST 2008


Log message for revision 84379:
  - added PluggableIndexes/interfaces/IIndexConfiguration (on request
  by the GenericSetup community)
  

Changed:
  U   Zope/trunk/doc/CHANGES.txt
  U   Zope/trunk/lib/python/Products/PluginIndexes/interfaces.py

-=-
Modified: Zope/trunk/doc/CHANGES.txt
===================================================================
--- Zope/trunk/doc/CHANGES.txt	2008-02-29 12:34:45 UTC (rev 84378)
+++ Zope/trunk/doc/CHANGES.txt	2008-02-29 12:48:57 UTC (rev 84379)
@@ -465,6 +465,9 @@
 
     Features added
 
+      - added PluggableIndexes/interfaces/IIndexConfiguration (on request
+        by the GenericSetup community)
+
       - Included Zope 3.3 and corresponding Five 1.5 release.
 
       - There is now a default favicon.ico.

Modified: Zope/trunk/lib/python/Products/PluginIndexes/interfaces.py
===================================================================
--- Zope/trunk/lib/python/Products/PluginIndexes/interfaces.py	2008-02-29 12:34:45 UTC (rev 84378)
+++ Zope/trunk/lib/python/Products/PluginIndexes/interfaces.py	2008-02-29 12:48:57 UTC (rev 84379)
@@ -227,3 +227,17 @@
     def clearFilteredSet(filter_id):
         """Clear the FilteredSet object specified by 'filter_id'.
         """
+
+# IIndexConfiguration was added on request by the GenericSetup community in
+# order to perform introspection on indexes in a defined way.
+# (ajung)
+
+class IIndexConfiguration(Interface):
+    """ Introspection API for pluggable indexes """
+
+    def getSettings(self):
+        """ Returns an mapping with index specific settings.
+            E.g. {'indexed_attrs' : ('SearchableText', )}.  
+            The interface does not define any specifc mapping keys.
+        """
+    



More information about the Zope-Checkins mailing list