diff --git a/CHANGES.rst b/CHANGES.rst index eb4c5ab..72584a5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,12 @@ Changelog ========= +2.2 (unreleasd) +--------------- + +- Add Plone 6 override for plone.app.z3cform.templates.macros.pt + [szakitibi] + 2.1.1 (unreleased) ------------------ diff --git a/collective/honeypot/fixes.zcml b/collective/honeypot/fixes.zcml index b11bb20..eec42a6 100644 --- a/collective/honeypot/fixes.zcml +++ b/collective/honeypot/fixes.zcml @@ -5,7 +5,8 @@ > - + + + + + + + diff --git a/collective/honeypot/plone6/overrides/plone.app.z3cform.templates.macros.pt b/collective/honeypot/plone6/overrides/plone.app.z3cform.templates.macros.pt new file mode 100644 index 0000000..3b005bc --- /dev/null +++ b/collective/honeypot/plone6/overrides/plone.app.z3cform.templates.macros.pt @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + The info status message. + + + + + + The error status message. + + + + + + Error + + + + + + + + + + + + + + + + + + + + + Form name + + + + + + + + + + + + + + + + + Form name + + + Description + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/collective/honeypot/plone6/patches.py b/collective/honeypot/plone6/patches.py new file mode 100644 index 0000000..f0e89b6 --- /dev/null +++ b/collective/honeypot/plone6/patches.py @@ -0,0 +1,18 @@ +from collective.honeypot import config + +import logging + + +logger = logging.getLogger("collective.honeypot") +logger.info("Loading plone6 patches.") + +protected = [ + "sendto_form", + "sendto", + "contact-info", + "send_feedback_site", + "register", +] +# Explicitly add the actions that we protect. +config.EXTRA_PROTECTED_ACTIONS.update(protected) +logger.info("Extra protected actions: %r", config.EXTRA_PROTECTED_ACTIONS) diff --git a/setup.py b/setup.py index 89eb50a..4a7ab0d 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name="collective.honeypot", - version="2.1.1.dev0", + version="2.2.dev0", description="Anti-spam honeypot for Plone", long_description=(open("README.rst").read() + "\n" + open("CHANGES.rst").read()), # Get more strings from https://pypi.org/classifiers
+ Description +