Move to plone.app.discussion-captcha feature declaration to meta.zcml.

svn path=/plone.formwidget.captcha/trunk/; revision=37138
This commit is contained in:
Timo Stollenwerk 2010-06-10 14:52:07 +00:00
parent c0a14efbb1
commit 2ce47ee061
3 changed files with 15 additions and 5 deletions

View File

@ -4,6 +4,9 @@ Changelog
1.0b2 - unreleased
------------------
* Move to plone.app.discussion-captcha feature declaration to meta.zcml.
[timo]
* Fix verify method for empty string input values. This is necessary for
plone.app.discussion 1.0b5 compatibility.
[timo]

View File

@ -11,6 +11,8 @@
<include package=".browser" />
<include file="meta.zcml" />
<class class=".widget.CaptchaWidget">
<require
permission="zope.Public"
@ -42,11 +44,6 @@
provides="Products.GenericSetup.interfaces.EXTENSION"
/>
<!-- Declare that plone.formwidget.captcha provides a Captcha field that
can be used by plone.app.discussion to add a Captcha field to comment
forms. -->
<meta:provides feature="plone.app.discussion-captcha" />
<!--
example:
http://yourplonesite/@@captcha_form

View File

@ -0,0 +1,10 @@
<configure
xmlns:meta="http://namespaces.zope.org/meta"
xmlns:zcml="http://namespaces.zope.org/zcml">
<!-- Declare that plone.formwidget.captcha provides a Captcha field that
can be used by plone.app.discussion to add a Captcha field to comment
forms. -->
<meta:provides feature="plone.app.discussion-captcha" />
</configure>