[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 | /> |
---|
[3428] | 33 | |
---|
| 34 | <adapter factory=".captcha.CaptchaExtender" |
---|
| 35 | provides="plone.z3cform.fieldsets.interfaces.IFormExtender" /> |
---|
| 36 | |
---|
[3270] | 37 | </configure> |
---|
| 38 | |
---|
[956] | 39 | <gs:registerProfile |
---|
| 40 | name="default" |
---|
[963] | 41 | title="Plone Captchas" |
---|
[956] | 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 | |
---|
[963] | 48 | <gs:registerProfile |
---|
[2467] | 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." |
---|
[2041] | 53 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
| 54 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
| 55 | /> |
---|
| 56 | |
---|
| 57 | <gs:registerProfile |
---|
[963] | 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 | |
---|
[797] | 66 | </configure> |
---|