[Zope3-checkins] CVS: Zope3/src/zope/app/browser/catalog - configure.zcml:1.7

Anthony Baxter anthony at interlink.com.au
Tue Aug 5 05:33:46 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/catalog
In directory cvs.zope.org:/tmp/cvs-serv24050/app/browser/catalog

Modified Files:
	configure.zcml 
Log Message:
Refactoring of the Catalog<->Index interface to extract common code. 

TextIndexes now index a particular interface+field combination, which 
defaults to ISearchableText/getSearchText. Making a new index hook into
the catalog is now a matter of two or three lines of python and some 
zcml.


=== Zope3/src/zope/app/browser/catalog/configure.zcml 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/catalog/configure.zcml:1.6	Sun Aug  3 13:48:45 2003
+++ Zope3/src/zope/app/browser/catalog/configure.zcml	Tue Aug  5 04:33:10 2003
@@ -55,12 +55,15 @@
 
 <!-- Add a couple of items to the add menu -->
 <!-- TextIndex -->
-<browser:menuItem
-  menu="catalog_index_menu"
-  for="zope.app.interfaces.container.IAdding"
-  action="zope.app.index.text.TextCatalogIndex"
-  title="Text Index"
-  description="An index to support full-text search"
+<browser:addform
+  name="AddTextIndexToCatalog"
+  menu="catalog_index_menu" title="Text Index"
+  schema="zope.app.interfaces.index.text.IUITextCatalogIndex"
+  permission="zope.ManageServices"
+  content_factory="zope.app.index.text.index.TextCatalogIndex"
+  arguments="field_name"
+  keyword_arguments="interface"
+  description="A full text index"
 />
 
 <!-- FieldIndex -->




More information about the Zope3-Checkins mailing list