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 | <utility |
---|
30 | factory=".captcha.CaptchaProvider" |
---|
31 | provides="quintagroup.plonecaptchas.interfaces.ICaptchaProvider" |
---|
32 | name="plonecaptchas" |
---|
33 | /> |
---|
34 | |
---|
35 | <adapter |
---|
36 | factory=".validate.QGDiscussionCaptchaValidator" |
---|
37 | provides="z3c.form.interfaces.IValidator" |
---|
38 | /> |
---|
39 | |
---|
40 | <adapter factory=".captcha.CaptchaExtender" |
---|
41 | provides="plone.z3cform.fieldsets.interfaces.IFormExtender" /> |
---|
42 | |
---|
43 | </configure> |
---|
44 | |
---|
45 | <gs:registerProfile |
---|
46 | name="default" |
---|
47 | title="Plone Captchas" |
---|
48 | directory="profiles/default" |
---|
49 | description="This product adds captcha support to Plone." |
---|
50 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
51 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
52 | /> |
---|
53 | |
---|
54 | <gs:registerProfile |
---|
55 | name="register_form" |
---|
56 | title="Plone Captchas Register Forms for Plone 4" |
---|
57 | directory="profiles/register_form" |
---|
58 | description="This profile adds captcha protection of Register Form in Plone 4." |
---|
59 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
60 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
61 | /> |
---|
62 | |
---|
63 | <gs:registerProfile |
---|
64 | name="uninstall" |
---|
65 | title="Uninstall Plone Captchas" |
---|
66 | directory="profiles/uninstall" |
---|
67 | description="Uninstall Plone Captchas product." |
---|
68 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
69 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
70 | /> |
---|
71 | |
---|
72 | </configure> |
---|