-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
345 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
# -*- coding: utf-8 -*- | ||
"""Init and utils.""" | ||
from zope.i18nmessageid import MessageFactory | ||
|
||
import logging | ||
|
||
from zope.i18nmessageid import MessageFactory | ||
|
||
logger = logging.getLogger(__name__) | ||
_ = MessageFactory("collective.volto.formsupport") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,56 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:zcml="http://namespaces.zope.org/zcml"> | ||
xmlns:zcml="http://namespaces.zope.org/zcml" | ||
> | ||
|
||
<adapter | ||
zcml:condition="installed plone.formwidget.hcaptcha" | ||
factory=".hcaptcha.HCaptchaSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="hcaptcha" | ||
/> | ||
<adapter | ||
factory=".hcaptcha.HCaptchaSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* | ||
zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="hcaptcha" | ||
zcml:condition="installed plone.formwidget.hcaptcha" | ||
/> | ||
|
||
<adapter | ||
zcml:condition="installed plone.formwidget.hcaptcha" | ||
factory=".hcaptcha.HCaptchaInvisibleSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="hcaptcha_invisible" | ||
/> | ||
<adapter | ||
factory=".hcaptcha.HCaptchaInvisibleSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* | ||
zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="hcaptcha_invisible" | ||
zcml:condition="installed plone.formwidget.hcaptcha" | ||
/> | ||
|
||
<adapter | ||
zcml:condition="installed plone.formwidget.recaptcha" | ||
factory=".recaptcha.RecaptchaSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="recaptcha" | ||
/> | ||
<adapter | ||
factory=".recaptcha.RecaptchaSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* | ||
zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="recaptcha" | ||
zcml:condition="installed plone.formwidget.recaptcha" | ||
/> | ||
|
||
<adapter | ||
zcml:condition="installed collective.z3cform.norobots" | ||
factory=".norobots.NoRobotsSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="norobots-captcha" | ||
/> | ||
|
||
<adapter | ||
zcml:condition="installed collective.honeypot" | ||
factory=".honeypot.HoneypotSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="honeypot" | ||
/> | ||
<adapter | ||
factory=".norobots.NoRobotsSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* | ||
zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="norobots-captcha" | ||
zcml:condition="installed collective.z3cform.norobots" | ||
/> | ||
|
||
<utility | ||
name="collective.volto.formsupport.captcha.providers" | ||
component=".vocabularies.captcha_providers_vocabulary_factory" | ||
/> | ||
<adapter | ||
factory=".honeypot.HoneypotSupport" | ||
provides="..interfaces.ICaptchaSupport" | ||
for="* | ||
zope.publisher.interfaces.browser.IBrowserRequest" | ||
name="honeypot" | ||
zcml:condition="installed collective.honeypot" | ||
/> | ||
|
||
<utility | ||
name="collective.volto.formsupport.captcha.providers" | ||
component=".vocabularies.captcha_providers_vocabulary_factory" | ||
/> | ||
|
||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 13 additions & 12 deletions
25
src/collective/volto/formsupport/datamanager/configure.zcml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,20 @@ | ||
<configure | ||
xmlns="http://namespaces.zope.org/zope" | ||
xmlns:plone="http://namespaces.plone.org/plone" | ||
i18n_domain="collective.volto.formsupport"> | ||
i18n_domain="collective.volto.formsupport" | ||
> | ||
|
||
<!-- Enable each Dexterity content to be a soup root --> | ||
<class class="plone.dexterity.content.DexterityContent"> | ||
<implements interface="souper.plone.interfaces.ISoupRoot" /> | ||
</class> | ||
<!-- Enable each Dexterity content to be a soup root --> | ||
<class class="plone.dexterity.content.DexterityContent"> | ||
<implements interface="souper.plone.interfaces.ISoupRoot" /> | ||
</class> | ||
|
||
<!-- register the catalog --> | ||
<utility | ||
provides="souper.interfaces.ICatalogFactory" | ||
factory=".catalog.FormDataSoupCatalogFactory" | ||
name="form_data" | ||
/> | ||
<!-- register the catalog --> | ||
<utility | ||
factory=".catalog.FormDataSoupCatalogFactory" | ||
provides="souper.interfaces.ICatalogFactory" | ||
name="form_data" | ||
/> | ||
|
||
<adapter factory=".catalog.FormDataStore" /> | ||
<adapter factory=".catalog.FormDataStore" /> | ||
</configure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.