[797] | 1 | <configure |
---|
| 2 | xmlns="http://namespaces.zope.org/zope" |
---|
| 3 | xmlns:five="http://namespaces.zope.org/five" |
---|
[846] | 4 | xmlns:i18n="http://namespaces.zope.org/i18n" |
---|
[956] | 5 | xmlns:cmf="http://namespaces.zope.org/cmf" |
---|
| 6 | xmlns:gs="http://namespaces.zope.org/genericsetup" |
---|
[3270] | 7 | xmlns:zcml="http://namespaces.zope.org/zcml" |
---|
[797] | 8 | i18n_domain="quintagroup.plonecaptchas"> |
---|
| 9 | |
---|
[2041] | 10 | <!-- include dependent packages --> |
---|
| 11 | <include package="quintagroup.captcha.core" /> |
---|
[2505] | 12 | <!-- can't included quintagroup.formlib.captcha |
---|
[3270] | 13 | because of ConfigurationConflictError. --> |
---|
[870] | 14 | |
---|
[846] | 15 | <five:registerPackage package="." initialize=".initialize" /> |
---|
[797] | 16 | |
---|
[2465] | 17 | <!-- include packages --> |
---|
[2470] | 18 | <include package=".browser" /> |
---|
[2465] | 19 | |
---|
[3270] | 20 | <include file="meta.zcml"/> |
---|
| 21 | |
---|
[956] | 22 | <!-- File System Directory Views registration --> |
---|
| 23 | <cmf:registerDirectory name="captchas_discussion" /> |
---|
[2041] | 24 | <cmf:registerDirectory name="captchas_sendto_form" /> |
---|
[2044] | 25 | <cmf:registerDirectory name="captchas_contact_info" /> |
---|
[956] | 26 | |
---|
[3270] | 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 | |
---|
[956] | 35 | <gs:registerProfile |
---|
| 36 | name="default" |
---|
[963] | 37 | title="Plone Captchas" |
---|
[956] | 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 | |
---|
[963] | 44 | <gs:registerProfile |
---|
[2467] | 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." |
---|
[2041] | 49 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
| 50 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
| 51 | /> |
---|
| 52 | |
---|
| 53 | <gs:registerProfile |
---|
[963] | 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 | |
---|
[797] | 62 | </configure> |
---|