[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/index/text/browser - __init__.py:1.1 configure.zcml:1.1

Guido van Rossum guido@python.org
Wed, 4 Dec 2002 12:11:53 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/index/text/browser
In directory cvs.zope.org:/tmp/cvs-serv16612/text/browser

Added Files:
	__init__.py configure.zcml 
Log Message:
Add machinery for creating a TextIndex from the Services Add menu.
You can't subscribe it yet; that needs to be done later.

=== Added File Zope3/lib/python/Zope/App/index/text/browser/__init__.py ===
# Make this a package 


=== Added File Zope3/lib/python/Zope/App/index/text/browser/configure.zcml ===
<zopeConfigure
   xmlns="http://namespaces.zope.org/zope"
   xmlns:browser="http://namespaces.zope.org/browser"
   package="Zope.App.index.text"
   >

  <browser:menuItem
     menu="add_component"
     for="Zope.App.OFS.Container.IAdding."
     action="Zope.App.index.text.factory"
     title="Text Index"
     />

<browser:defaultView
    for="Zope.TextIndex.TextIndexInterfaces.IStatistics"
    name="stats.html" />

<browser:view
    for="Zope.TextIndex.TextIndexInterfaces.IStatistics"
    permission="Zope.View"
    name="stats.html"
    template="browser/index_stats.pt" />

</zopeConfigure>