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

Last change on this file since 3428 was 3428, checked in by vmaksymiv, 12 years ago

compatibility with plone.app.discussion added.(captcha_vocabulary utility overrides)

File size: 2.3 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           
34        <adapter factory=".captcha.CaptchaExtender"
35                 provides="plone.z3cform.fieldsets.interfaces.IFormExtender" />
36
37    </configure>
38
39    <gs:registerProfile
40        name="default"
41        title="Plone Captchas"
42        directory="profiles/default"
43        description="This product adds captcha support to Plone."
44        for="Products.CMFPlone.interfaces.IPloneSiteRoot"
45        provides="Products.GenericSetup.interfaces.EXTENSION"
46        />
47
48    <gs:registerProfile
49        name="register_form"
50        title="Plone Captchas Register Forms for Plone 4"
51        directory="profiles/register_form"
52        description="This profile adds captcha protection of Register Form in Plone 4."
53        for="Products.CMFPlone.interfaces.IPloneSiteRoot"
54        provides="Products.GenericSetup.interfaces.EXTENSION"
55        />
56
57    <gs:registerProfile
58        name="uninstall"
59        title="Uninstall Plone Captchas"
60        directory="profiles/uninstall"
61        description="Uninstall Plone Captchas product."
62        for="Products.CMFPlone.interfaces.IPloneSiteRoot"
63        provides="Products.GenericSetup.interfaces.EXTENSION"
64        />
65
66</configure>
Note: See TracBrowser for help on using the repository browser.