[Zope3-checkins] CVS: Zope3/src/zope/app/browser/index/text -
configure.zcml:1.9
Anthony Baxter
anthony at interlink.com.au
Tue Aug 5 05:33:48 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/index/text
In directory cvs.zope.org:/tmp/cvs-serv24050/app/browser/index/text
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/index/text/configure.zcml 1.8 => 1.9 ===
--- Zope3/src/zope/app/browser/index/text/configure.zcml:1.8 Sun Aug 3 13:49:16 2003
+++ Zope3/src/zope/app/browser/index/text/configure.zcml Tue Aug 5 04:33:14 2003
@@ -4,6 +4,7 @@
i18n_domain='zope'
>
+<!--
<browser:menuItem
menu="add_component"
for="zope.app.interfaces.container.IAdding"
@@ -11,6 +12,17 @@
title="Text Index"
description="An index to support full-text search"
/>
+-->
+ <browser:addform
+ name="AddTextIndex"
+ menu="add_component" title="Text Index"
+ schema="zope.app.interfaces.index.text.IUITextIndex"
+ permission="zope.ManageServices"
+ content_factory="zope.app.index.text.index.TextIndex"
+ arguments="field_name"
+ keyword_arguments="interface"
+ />
+
<browser:page
for="zope.app.interfaces.index.text.IUITextIndex"
More information about the Zope3-Checkins
mailing list