source: products/quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/configure.zcml @ 3270

Last change on this file since 3270 was 3270, checked in by vmaksymiv, 13 years ago

compatibility with plone.app.discussion added

File size: 2.1 KB
Line 
1<configure
2    xmlns="http://namespaces.zope.org/zope"
3    xmlns:five="http://namespaces.zope.org/five"
4    xmlns:i18n="http://namespaces.zope.org/i18n"
5    xmlns:cmf="http://namespaces.zope.org/cmf"
6    xmlns:gs="http://namespaces.zope.org/genericsetup"
7    xmlns:zcml="http://namespaces.zope.org/zcml"
8    i18n_domain="quintagroup.plonecaptchas">
9
10    <!-- include dependent packages -->
11    <include package="quintagroup.captcha.core" />
12    <!-- can't included quintagroup.formlib.captcha
13        because of ConfigurationConflictError. -->
14
15    <five:registerPackage package="." initialize=".initialize" />
16
17    <!-- include packages -->
18    <include package=".browser" />
19
20    <include file="meta.zcml"/>
21
22    <!-- File System Directory Views registration -->
23    <cmf:registerDirectory name="captchas_discussion" />
24    <cmf:registerDirectory name="captchas_sendto_form" />
25    <cmf:registerDirectory name="captchas_contact_info" />
26
27    <configure zcml:condition="installed plone.app.discussion">
28
29        <adapter
30            factory=".validate.QGDiscussionCaptchaValidator"
31            provides="z3c.form.interfaces.IValidator"
32            />
33    </configure>
34
35    <gs:registerProfile
36        name="default"
37        title="Plone Captchas"
38        directory="profiles/default"
39        description="This product adds captcha support to Plone."
40        for="Products.CMFPlone.interfaces.IPloneSiteRoot"
41        provides="Products.GenericSetup.interfaces.EXTENSION"
42        />
43
44    <gs:registerProfile
45        name="register_form"
46        title="Plone Captchas Register Forms for Plone 4"
47        directory="profiles/register_form"
48        description="This profile adds captcha protection of Register Form in Plone 4."
49        for="Products.CMFPlone.interfaces.IPloneSiteRoot"
50        provides="Products.GenericSetup.interfaces.EXTENSION"
51        />
52
53    <gs:registerProfile
54        name="uninstall"
55        title="Uninstall Plone Captchas"
56        directory="profiles/uninstall"
57        description="Uninstall Plone Captchas product."
58        for="Products.CMFPlone.interfaces.IPloneSiteRoot"
59        provides="Products.GenericSetup.interfaces.EXTENSION"
60        />
61
62</configure>
Note: See TracBrowser for help on using the repository browser.