collective.rercaptcha 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- collective_rercaptcha-1.0.0/.dockerignore +14 -0
- collective_rercaptcha-1.0.0/.editorconfig +35 -0
- collective_rercaptcha-1.0.0/.flake8 +22 -0
- collective_rercaptcha-1.0.0/.gitignore +49 -0
- collective_rercaptcha-1.0.0/CHANGELOG.md +169 -0
- collective_rercaptcha-1.0.0/CONTRIBUTORS.md +3 -0
- collective_rercaptcha-1.0.0/Dockerfile +38 -0
- collective_rercaptcha-1.0.0/Dockerfile.acceptance +40 -0
- collective_rercaptcha-1.0.0/LICENSE.GPL +339 -0
- collective_rercaptcha-1.0.0/LICENSE.md +15 -0
- collective_rercaptcha-1.0.0/Makefile +170 -0
- collective_rercaptcha-1.0.0/PKG-INFO +162 -0
- collective_rercaptcha-1.0.0/README.md +123 -0
- collective_rercaptcha-1.0.0/bobtemplate.cfg +7 -0
- collective_rercaptcha-1.0.0/instance.yaml +5 -0
- collective_rercaptcha-1.0.0/mx.ini +17 -0
- collective_rercaptcha-1.0.0/news/.changelog_template.jinja +15 -0
- collective_rercaptcha-1.0.0/news/.gitkeep +1 -0
- collective_rercaptcha-1.0.0/pyproject.toml +192 -0
- collective_rercaptcha-1.0.0/scripts/create_site.py +69 -0
- collective_rercaptcha-1.0.0/setup.py +21 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/__init__.py +14 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/configure.zcml +48 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/content/__init__.py +0 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/controlpanels/__init__.py +0 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/controlpanels/configure.zcml +19 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/controlpanels/controlpanel.py +79 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/dependencies.zcml +7 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/eventsubscribers.py +191 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/expanders.py +46 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/indexers/__init__.py +0 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/indexers/configure.zcml +7 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/interfaces.py +7 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/locales/__init__.py +0 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/locales/__main__.py +69 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/locales/collective.rercaptcha.pot +127 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/locales/en/LC_MESSAGES/collective.rercaptcha.po +124 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/locales/it/LC_MESSAGES/collective.rercaptcha.po +126 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/permissions.zcml +18 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/browserlayer.xml +6 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/catalog.xml +4 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/controlpanel.xml +21 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/diff_tool.xml +6 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/metadata.xml +7 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/registry/main.xml +10 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/repositorytool.xml +6 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/rolemap.xml +6 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/types/.gitkeep +0 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/default/types.xml +6 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles/uninstall/browserlayer.xml +6 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/profiles.zcml +32 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/rercaptcha.py +31 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/serializers/__init__.py +0 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/serializers/configure.zcml +10 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/serializers/summary.py +10 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/services/__init__.py +0 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/services/configure.zcml +13 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/services/controlpanel.py +15 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/setuphandlers/__init__.py +17 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/testing.py +49 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/upgrades/__init__.py +0 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/upgrades/configure.zcml +19 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/vocabularies/__init__.py +0 -0
- collective_rercaptcha-1.0.0/src/collective/rercaptcha/vocabularies/configure.zcml +5 -0
- collective_rercaptcha-1.0.0/tests/conftest.py +16 -0
- collective_rercaptcha-1.0.0/tests/setup/test_setup_install.py +17 -0
- collective_rercaptcha-1.0.0/tests/setup/test_setup_uninstall.py +19 -0
- collective_rercaptcha-1.0.0/tests/test_captcha_service_calls.py +230 -0
- collective_rercaptcha-1.0.0/tests/test_expanders.py +104 -0
- collective_rercaptcha-1.0.0/version.txt +1 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
# EditorConfig Configuration file, for more details see:
|
|
3
|
+
# https://EditorConfig.org
|
|
4
|
+
# EditorConfig is a convention description, that could be interpreted
|
|
5
|
+
# by multiple editors to enforce common coding conventions for specific
|
|
6
|
+
# file types
|
|
7
|
+
|
|
8
|
+
# top-most EditorConfig file:
|
|
9
|
+
# Will ignore other EditorConfig files in Home directory or upper tree level.
|
|
10
|
+
root = true
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
[*] # For All Files
|
|
14
|
+
# Unix-style newlines with a newline ending every file
|
|
15
|
+
end_of_line = lf
|
|
16
|
+
insert_final_newline = true
|
|
17
|
+
trim_trailing_whitespace = true
|
|
18
|
+
# Set default charset
|
|
19
|
+
charset = utf-8
|
|
20
|
+
# Indent style default
|
|
21
|
+
indent_style = space
|
|
22
|
+
|
|
23
|
+
[*.{py,cfg,ini}]
|
|
24
|
+
# 4 space indentation
|
|
25
|
+
indent_size = 4
|
|
26
|
+
|
|
27
|
+
[*.{html,dtml,pt,zpt,xml,zcml,js,json,ts,less,scss,css,sass,yml,yaml}]
|
|
28
|
+
# 2 space indentation
|
|
29
|
+
indent_size = 2
|
|
30
|
+
|
|
31
|
+
[{Makefile,.gitmodules}]
|
|
32
|
+
# Tab indentation (no size specified, but view as 4 spaces)
|
|
33
|
+
indent_style = tab
|
|
34
|
+
indent_size = unset
|
|
35
|
+
tab_width = unset
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Generated from:
|
|
2
|
+
# https://github.com/plone/meta/tree/master/config/default
|
|
3
|
+
# See the inline comments on how to expand/tweak this configuration file
|
|
4
|
+
[flake8]
|
|
5
|
+
doctests = 1
|
|
6
|
+
ignore =
|
|
7
|
+
# black takes care of line length
|
|
8
|
+
E501,
|
|
9
|
+
# black takes care of where to break lines
|
|
10
|
+
W503,
|
|
11
|
+
# black takes care of spaces within slicing (list[:])
|
|
12
|
+
E203,
|
|
13
|
+
# black takes care of spaces after commas
|
|
14
|
+
E231,
|
|
15
|
+
|
|
16
|
+
##
|
|
17
|
+
# Add extra configuration options in .meta.toml:
|
|
18
|
+
# [flake8]
|
|
19
|
+
# extra_lines = """
|
|
20
|
+
# _your own configuration lines_
|
|
21
|
+
# """
|
|
22
|
+
##
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# python related
|
|
2
|
+
*.egg-info
|
|
3
|
+
*.pyc
|
|
4
|
+
*.pyo
|
|
5
|
+
|
|
6
|
+
# tools related
|
|
7
|
+
__pycache__/
|
|
8
|
+
.coverage
|
|
9
|
+
.mypy_cache
|
|
10
|
+
.pytest_cache
|
|
11
|
+
.ruff_cache
|
|
12
|
+
/build/
|
|
13
|
+
coverage.xml
|
|
14
|
+
dist/
|
|
15
|
+
docs/_build
|
|
16
|
+
node_modules/
|
|
17
|
+
|
|
18
|
+
# venv / buildout related
|
|
19
|
+
.eggs/
|
|
20
|
+
.installed.cfg
|
|
21
|
+
.mr.developer.cfg
|
|
22
|
+
.venv/
|
|
23
|
+
bin/
|
|
24
|
+
develop-eggs/
|
|
25
|
+
eggs/
|
|
26
|
+
etc/
|
|
27
|
+
include/
|
|
28
|
+
lib/
|
|
29
|
+
lib64
|
|
30
|
+
parts/
|
|
31
|
+
pyvenv.cfg
|
|
32
|
+
var/
|
|
33
|
+
|
|
34
|
+
# mxdev
|
|
35
|
+
.installed.txt
|
|
36
|
+
.lock
|
|
37
|
+
/.mxdev_cache/
|
|
38
|
+
/.make-sentinels/
|
|
39
|
+
/*-mxdev.txt
|
|
40
|
+
/instance/
|
|
41
|
+
/reports/
|
|
42
|
+
/sources/
|
|
43
|
+
/venv/
|
|
44
|
+
constraints*.txt
|
|
45
|
+
requirements*.txt
|
|
46
|
+
|
|
47
|
+
src/collective/*
|
|
48
|
+
!src/collective/
|
|
49
|
+
!src/collective/rercaptcha/
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
<!--
|
|
4
|
+
You should *NOT* be adding new change log entries to this file.
|
|
5
|
+
You should create a file in the news directory instead.
|
|
6
|
+
For helpful instructions, please see:
|
|
7
|
+
https://github.com/plone/plone.releaser/blob/master/ADD-A-NEWS-ITEM.rst
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
<!-- towncrier release notes start -->
|
|
11
|
+
|
|
12
|
+
## 1.0.0 (2026-11-26)
|
|
13
|
+
|
|
14
|
+
No significant changes.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 1.0.0a32 (2026-11-03)
|
|
18
|
+
|
|
19
|
+
No significant changes.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 1.0.0a31 (2026-09-18)
|
|
23
|
+
|
|
24
|
+
No significant changes.
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## 1.0.0a30 (2026-09-18)
|
|
28
|
+
|
|
29
|
+
No significant changes.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## 1.0.0a29 (2026-09-18)
|
|
33
|
+
|
|
34
|
+
No significant changes.
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## 1.0.0a28 (2026-09-18)
|
|
38
|
+
|
|
39
|
+
No significant changes.
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
## 1.0.0a27 (2026-09-07)
|
|
43
|
+
|
|
44
|
+
No significant changes.
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## 1.0.0a26 (2026-08-27)
|
|
48
|
+
|
|
49
|
+
No significant changes.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## 1.0.0a25 (2026-08-26)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### New features:
|
|
56
|
+
|
|
57
|
+
- Expose `whitelisted_routes` in the `rercaptcha-data` expander, so the frontend can decide per integration point (Customer Satisfaction, Newsletter) whether to activate the captcha, matching what the backend actually enforces.
|
|
58
|
+
|
|
59
|
+
## 1.0.0a24 (2026-08-13)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### New features:
|
|
63
|
+
|
|
64
|
+
- Add `show_button` control panel setting to show/hide the captcha button.
|
|
65
|
+
Adds a GenericSetup upgrade step (1000 -> 1001) to register it for already installed sites.
|
|
66
|
+
|
|
67
|
+
## 1.0.0a23 (2026-07-24)
|
|
68
|
+
|
|
69
|
+
No significant changes.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
## 1.0.0a22 (2026-07-23)
|
|
73
|
+
|
|
74
|
+
No significant changes.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
## 1.0.0a21 (2026-07-23)
|
|
78
|
+
|
|
79
|
+
No significant changes.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## 1.0.0a20 (2026-07-23)
|
|
83
|
+
|
|
84
|
+
No significant changes.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
## 1.0.0a19 (2026-07-23)
|
|
88
|
+
|
|
89
|
+
No significant changes.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## 1.0.0a18 (2026-07-23)
|
|
93
|
+
|
|
94
|
+
No significant changes.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
## 1.0.0a17 (2026-07-23)
|
|
98
|
+
|
|
99
|
+
No significant changes.
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## 1.0.0a16 (2026-07-23)
|
|
103
|
+
|
|
104
|
+
No significant changes.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## 1.0.0a15 (2026-07-23)
|
|
108
|
+
|
|
109
|
+
No significant changes.
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
## 1.0.0a14 (2026-07-23)
|
|
113
|
+
|
|
114
|
+
No significant changes.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
## 1.0.0a13 (2026-07-23)
|
|
118
|
+
|
|
119
|
+
No significant changes.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
## 1.0.0a12 (2026-07-23)
|
|
123
|
+
|
|
124
|
+
No significant changes.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
## 1.0.0a11 (2026-07-23)
|
|
128
|
+
|
|
129
|
+
No significant changes.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
## 1.0.0a10 (2026-07-23)
|
|
133
|
+
|
|
134
|
+
No significant changes.
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
## 1.0.0a9 (2026-07-23)
|
|
138
|
+
|
|
139
|
+
No significant changes.
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
## 1.0.0a8 (2026-07-23)
|
|
143
|
+
|
|
144
|
+
No significant changes.
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
## 1.0.0a7 (2026-04-03)
|
|
148
|
+
|
|
149
|
+
No significant changes.
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
## 1.0.0a4 (2026-03-30)
|
|
153
|
+
|
|
154
|
+
No significant changes.
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## 1.0.0a3 (2026-03-30)
|
|
158
|
+
|
|
159
|
+
No significant changes.
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## 1.0.0a2 (2026-03-30)
|
|
163
|
+
|
|
164
|
+
No significant changes.
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
## 1.0.0a1 (2026-03-27)
|
|
168
|
+
|
|
169
|
+
No significant changes.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# syntax=docker/dockerfile:1
|
|
2
|
+
ARG PLONE_VERSION=6.1.4
|
|
3
|
+
FROM plone/server-builder:${PLONE_VERSION} AS builder
|
|
4
|
+
|
|
5
|
+
WORKDIR /app
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Add local code
|
|
9
|
+
COPY scripts/ scripts/
|
|
10
|
+
COPY . src
|
|
11
|
+
|
|
12
|
+
# Install local requirements and pre-compile mo files
|
|
13
|
+
RUN <<EOT
|
|
14
|
+
set -e
|
|
15
|
+
bin/pip install mxdev uv
|
|
16
|
+
sed -i 's/-e .\[test\]/./g' src/mx.ini
|
|
17
|
+
cd /app/src
|
|
18
|
+
# remove potentially existing virtualenv from local build
|
|
19
|
+
rm -rf .venv
|
|
20
|
+
../bin/mxdev -c mx.ini
|
|
21
|
+
../bin/uv pip install -r requirements-mxdev.txt
|
|
22
|
+
../bin/python /compile_mo.py
|
|
23
|
+
EOT
|
|
24
|
+
|
|
25
|
+
FROM plone/server-prod-config:${PLONE_VERSION}
|
|
26
|
+
|
|
27
|
+
LABEL maintainer="RedTurtle Technology <sviluppo@redturtle.it>" \
|
|
28
|
+
org.label-schema.name="collective-rercaptcha-backend" \
|
|
29
|
+
org.label-schema.description="collective-rercaptcha backend image." \
|
|
30
|
+
org.label-schema.vendor="RedTurtle Technology"
|
|
31
|
+
|
|
32
|
+
# Copy /app from builder
|
|
33
|
+
COPY --from=builder /app /app
|
|
34
|
+
|
|
35
|
+
RUN <<EOT
|
|
36
|
+
set -e
|
|
37
|
+
ln -s /data /app/var
|
|
38
|
+
EOT
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# syntax=docker/dockerfile:1
|
|
2
|
+
ARG PLONE_VERSION=6.1.4
|
|
3
|
+
FROM plone/server-builder:${PLONE_VERSION} AS builder
|
|
4
|
+
|
|
5
|
+
WORKDIR /app
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# Add local code
|
|
9
|
+
COPY scripts/ scripts/
|
|
10
|
+
COPY . src
|
|
11
|
+
|
|
12
|
+
# Install local requirements and pre-compile mo files
|
|
13
|
+
RUN <<EOT
|
|
14
|
+
set -e
|
|
15
|
+
bin/pip install mxdev uv
|
|
16
|
+
sed -i 's/-e .\[test\]/./g' src/mx.ini
|
|
17
|
+
cd /app/src
|
|
18
|
+
# remove potentially existing virtualenv from local build
|
|
19
|
+
rm -rf .venv
|
|
20
|
+
../bin/mxdev -c mx.ini
|
|
21
|
+
../bin/uv pip install -r requirements-mxdev.txt
|
|
22
|
+
../bin/python /compile_mo.py
|
|
23
|
+
EOT
|
|
24
|
+
|
|
25
|
+
FROM plone/server-acceptance:${PLONE_VERSION}
|
|
26
|
+
|
|
27
|
+
LABEL maintainer="RedTurtle Technology <sviluppo@redturtle.it>" \
|
|
28
|
+
org.label-schema.name="collective-rercaptcha-acceptance" \
|
|
29
|
+
org.label-schema.description="collective-rercaptcha backend acceptance image." \
|
|
30
|
+
org.label-schema.vendor="RedTurtle Technology"
|
|
31
|
+
|
|
32
|
+
ENV CONFIGURE_PACKAGES="plone.restapi,plone.volto,plone.volto.cors,collective.rercaptcha"
|
|
33
|
+
ENV APPLY_PROFILES="collective.rercaptcha:default"
|
|
34
|
+
|
|
35
|
+
# Copy /app from builder
|
|
36
|
+
COPY --from=builder /app /app
|
|
37
|
+
|
|
38
|
+
RUN <<EOT
|
|
39
|
+
ln -s /data /app/var
|
|
40
|
+
EOT
|