added configure.zcml
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2564 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
b9a0105604
commit
45f090341e
1 changed files with 42 additions and 0 deletions
42
catalog/configure.zcml
Normal file
42
catalog/configure.zcml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<!-- $Id$ -->
|
||||
|
||||
<configure
|
||||
xmlns:zope="http://namespaces.zope.org/zope"
|
||||
xmlns:browser="http://namespaces.zope.org/browser"
|
||||
i18n_domain="zope">
|
||||
|
||||
<zope:class class="cybertools.catalog.keyword.KeywordIndex">
|
||||
<require permission="zope.ManageServices"
|
||||
interface="zope.app.catalog.interfaces.IAttributeIndex
|
||||
zope.index.interfaces.IStatistics"
|
||||
set_schema="zope.app.catalog.interfaces.IAttributeIndex" />
|
||||
</zope:class>
|
||||
|
||||
<browser:addform
|
||||
name="AddKeywordIndex"
|
||||
label="Add a keyword index"
|
||||
schema="zope.app.catalog.interfaces.IAttributeIndex"
|
||||
permission="zope.ManageServices"
|
||||
content_factory="cybertools.catalog.keyword.KeywordIndex"
|
||||
arguments="field_name"
|
||||
keyword_arguments="interface field_callable"
|
||||
/>
|
||||
|
||||
<browser:addMenuItem
|
||||
title="Keyword Index"
|
||||
description="Index items based on an a list of keyword values"
|
||||
class="cybertools.catalog.keyword.KeywordIndex"
|
||||
permission="zope.ManageServices"
|
||||
view="AddKeywordIndex"
|
||||
/>
|
||||
|
||||
<browser:schemadisplay
|
||||
name="index.html"
|
||||
schema="cybertools.catalog.keyword.IKeywordIndex"
|
||||
label="Keyword Index"
|
||||
fields="interface field_name field_callable"
|
||||
permission="zope.ManageServices"
|
||||
menu="zmi_views" title="Configuration"
|
||||
/>
|
||||
|
||||
</configure>
|
Loading…
Add table
Reference in a new issue