[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 | |
---|
[3457] | 29 | <utility |
---|
| 30 | factory=".captcha.CaptchaProvider" |
---|
| 31 | provides="quintagroup.plonecaptchas.interfaces.ICaptchaProvider" |
---|
| 32 | name="plonecaptchas" |
---|
| 33 | /> |
---|
| 34 | |
---|
[3270] | 35 | <adapter |
---|
| 36 | factory=".validate.QGDiscussionCaptchaValidator" |
---|
| 37 | provides="z3c.form.interfaces.IValidator" |
---|
| 38 | /> |
---|
[3428] | 39 | |
---|
| 40 | <adapter factory=".captcha.CaptchaExtender" |
---|
| 41 | provides="plone.z3cform.fieldsets.interfaces.IFormExtender" /> |
---|
| 42 | |
---|
[3270] | 43 | </configure> |
---|
| 44 | |
---|
[956] | 45 | <gs:registerProfile |
---|
| 46 | name="default" |
---|
[963] | 47 | title="Plone Captchas" |
---|
[956] | 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 | |
---|
[963] | 54 | <gs:registerProfile |
---|
[2467] | 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." |
---|
[2041] | 59 | for="Products.CMFPlone.interfaces.IPloneSiteRoot" |
---|
| 60 | provides="Products.GenericSetup.interfaces.EXTENSION" |
---|
| 61 | /> |
---|
| 62 | |
---|
| 63 | <gs:registerProfile |
---|
[963] | 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 | |
---|
[797] | 72 | </configure> |
---|