Skip to content

Fix HCaptchaFieldWidget location - #487

Merged
mauritsvanrees merged 1 commit into
masterfrom
maurits-fix-hcaptcha-widget-location
Aug 11, 2026
Merged

Fix HCaptchaFieldWidget location#487
mauritsvanrees merged 1 commit into
masterfrom
maurits-fix-hcaptcha-widget-location

Conversation

@mauritsvanrees

Copy link
Copy Markdown
Member

Make it work in all plone.formwidget.hcaptcha versions.

In plone/plone.formwidget.hcaptcha#25 widget.py was moved to browser/widget.py. It seems we can always get the HCaptchaFieldWidget class from the __init__.py file though.

Sample test failure on GitHub Actions:

File ".../src/collective/easyform/browser/widgets.zcml", line 136.4-141.10
zope.configuration.interfaces.InvalidToken:
ImportError:
Couldn't import plone.formwidget.hcaptcha.widget,
No module named 'plone.formwidget.hcaptcha.widget'
in 'plone.formwidget.hcaptcha.widget.HCaptchaFieldWidget'

…t.hcaptcha`` versions.

In plone/plone.formwidget.hcaptcha#25 ``widget.py`` was moved to ``browser/widget.py``.
It seems we can always get the ``HCaptchaFieldWidget`` class from the `__init__.py`` file though.

Sample [test failure on GitHub Actions](https://github.com/collective/collective.easyform/actions/runs/28085338020/job/83149843124#step:5:379):

```
File ".../src/collective/easyform/browser/widgets.zcml", line 136.4-141.10
zope.configuration.interfaces.InvalidToken:
ImportError:
Couldn't import plone.formwidget.hcaptcha.widget,
No module named 'plone.formwidget.hcaptcha.widget'
in 'plone.formwidget.hcaptcha.widget.HCaptchaFieldWidget'
```
@mauritsvanrees
mauritsvanrees merged commit 681ee34 into master Aug 11, 2026
11 checks passed
@mauritsvanrees
mauritsvanrees deleted the maurits-fix-hcaptcha-widget-location branch August 11, 2026 20:57
@mauritsvanrees

Copy link
Copy Markdown
Member Author

Released in 5.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant