communesplone.layout 5.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.
- communesplone_layout-5.0.0/.coveragerc +6 -0
- communesplone_layout-5.0.0/.gitignore +23 -0
- communesplone_layout-5.0.0/.isort.cfg +5 -0
- communesplone_layout-5.0.0/CHANGES.rst +60 -0
- communesplone_layout-5.0.0/MANIFEST.in +5 -0
- communesplone_layout-5.0.0/Makefile +106 -0
- communesplone_layout-5.0.0/PKG-INFO +123 -0
- communesplone_layout-5.0.0/README.txt +25 -0
- communesplone_layout-5.0.0/base.cfg +103 -0
- communesplone_layout-5.0.0/checkouts.cfg +16 -0
- communesplone_layout-5.0.0/communesplone.layout-configure.zcml +1 -0
- communesplone_layout-5.0.0/docs/INSTALL.txt +52 -0
- communesplone_layout-5.0.0/docs/LICENSE.GPL +339 -0
- communesplone_layout-5.0.0/docs/LICENSE.txt +16 -0
- communesplone_layout-5.0.0/gha.cfg +5 -0
- communesplone_layout-5.0.0/requirements-6.2.txt +3 -0
- communesplone_layout-5.0.0/setup.cfg +7 -0
- communesplone_layout-5.0.0/setup.py +54 -0
- communesplone_layout-5.0.0/src/communesplone/__init__.py +2 -0
- communesplone_layout-5.0.0/src/communesplone/layout/__init__.py +0 -0
- communesplone_layout-5.0.0/src/communesplone/layout/browser/__init__.py +0 -0
- communesplone_layout-5.0.0/src/communesplone/layout/browser/configure.zcml +25 -0
- communesplone_layout-5.0.0/src/communesplone/layout/browser/login.py +21 -0
- communesplone_layout-5.0.0/src/communesplone/layout/browser/maintenance.pt +15 -0
- communesplone_layout-5.0.0/src/communesplone/layout/browser/static/simplify.css +8 -0
- communesplone_layout-5.0.0/src/communesplone/layout/configure.zcml +10 -0
- communesplone_layout-5.0.0/src/communesplone/layout/interfaces.py +5 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/README.txt +11 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/communesplone.layout.pot +32 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/de/LC_MESSAGES/communesplone.layout.po +35 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/de/LC_MESSAGES/plone.po +30 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/en/LC_MESSAGES/README.txt +5 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/en/LC_MESSAGES/communesplone.layout.po +35 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/en/LC_MESSAGES/plone.po +30 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/es/LC_MESSAGES/communesplone.layout.po +35 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/es/LC_MESSAGES/plone.po +30 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/fr/LC_MESSAGES/README.txt +5 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/fr/LC_MESSAGES/communesplone.layout.po +36 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/fr/LC_MESSAGES/plone.po +30 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/nl/LC_MESSAGES/communesplone.layout.po +35 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/nl/LC_MESSAGES/plone.po +30 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/plone.pot +27 -0
- communesplone_layout-5.0.0/src/communesplone/layout/locales/sync_pos.sh +10 -0
- communesplone_layout-5.0.0/src/communesplone/layout/mklocales.sh +51 -0
- communesplone_layout-5.0.0/src/communesplone/layout/profiles/default/browserlayer.xml +5 -0
- communesplone_layout-5.0.0/src/communesplone/layout/profiles/default/metadata.xml +4 -0
- communesplone_layout-5.0.0/src/communesplone/layout/profiles/simplify/registry.xml +10 -0
- communesplone_layout-5.0.0/src/communesplone/layout/profiles/uninstall/browserlayer.xml +4 -0
- communesplone_layout-5.0.0/src/communesplone/layout/profiles.zcml +31 -0
- communesplone_layout-5.0.0/src/communesplone/layout/setuphandlers.py +49 -0
- communesplone_layout-5.0.0/src/communesplone/layout/testing.py +88 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/__init__.py +0 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/robot/communesplone_layout.robot +41 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/robot/test_login.robot +15 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/robot/test_maintenance.robot +14 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/robot/test_simplify.robot +26 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/robot/ui_plone6.robot +137 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/test_locales.py +80 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/test_login.py +47 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/test_profiles.py +97 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/test_robot.py +33 -0
- communesplone_layout-5.0.0/src/communesplone/layout/tests/test_setuphandlers.py +63 -0
- communesplone_layout-5.0.0/src/communesplone/layout/version.txt +1 -0
- communesplone_layout-5.0.0/src/communesplone.layout.egg-info/PKG-INFO +123 -0
- communesplone_layout-5.0.0/src/communesplone.layout.egg-info/SOURCES.txt +70 -0
- communesplone_layout-5.0.0/src/communesplone.layout.egg-info/dependency_links.txt +1 -0
- communesplone_layout-5.0.0/src/communesplone.layout.egg-info/entry_points.txt +2 -0
- communesplone_layout-5.0.0/src/communesplone.layout.egg-info/not-zip-safe +1 -0
- communesplone_layout-5.0.0/src/communesplone.layout.egg-info/requires.txt +9 -0
- communesplone_layout-5.0.0/src/communesplone.layout.egg-info/top_level.txt +1 -0
- communesplone_layout-5.0.0/test-6.2.cfg +14 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
dist/
|
|
2
|
+
*.egg-info
|
|
3
|
+
*.mo
|
|
4
|
+
*.pyc
|
|
5
|
+
.installed.cfg
|
|
6
|
+
.mr.developer.cfg
|
|
7
|
+
.python-version
|
|
8
|
+
.plone-version
|
|
9
|
+
.plone*
|
|
10
|
+
checkversion*.html
|
|
11
|
+
pyvenv.cfg
|
|
12
|
+
CACHEDIR.TAG
|
|
13
|
+
bin/
|
|
14
|
+
develop-eggs/
|
|
15
|
+
include/
|
|
16
|
+
lib/
|
|
17
|
+
lib64
|
|
18
|
+
local/
|
|
19
|
+
parts/
|
|
20
|
+
share/
|
|
21
|
+
src/*
|
|
22
|
+
!src/communesplone
|
|
23
|
+
var/
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Changelog
|
|
2
|
+
=========
|
|
3
|
+
|
|
4
|
+
5.0.0 (2026-12-02)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
- Plone 6.2 only (Python 3.10+), Plone 4 support dropped; package moved to the `src/` layout.
|
|
8
|
+
[chris-adam]
|
|
9
|
+
- Skin layers removed: maintenance message on the `@@login` / `@@login_form` views (browser layer), new `uninstall` profile.
|
|
10
|
+
[chris-adam]
|
|
11
|
+
- Send-to form captcha removed (collective.captcha dropped).
|
|
12
|
+
[chris-adam]
|
|
13
|
+
- `simplify` profile: `simplify.css` is a bundle for Plone 6 markup, group and permissions set by a post handler.
|
|
14
|
+
[chris-adam]
|
|
15
|
+
- Added unit and robot tests, Plone 6.2 buildout and GitHub Actions.
|
|
16
|
+
[chris-adam]
|
|
17
|
+
- Dropped support for Plone versions below 6.2.
|
|
18
|
+
[chris-adam]
|
|
19
|
+
- Dropped support for Python 3.10.
|
|
20
|
+
[chris-adam]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
4.3.15.1 (2020-02-25)
|
|
24
|
+
---------------------
|
|
25
|
+
|
|
26
|
+
- Validated for Plone 4.3.15.
|
|
27
|
+
[gbastien]
|
|
28
|
+
|
|
29
|
+
4.3.8.1 (2017-05-17)
|
|
30
|
+
--------------------
|
|
31
|
+
|
|
32
|
+
- Adapted translation for 'label_by_author' from 'By {author}'
|
|
33
|
+
to 'Created by ${author}'.
|
|
34
|
+
[gbastien]
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
4.3.8 (2017-02-02)
|
|
38
|
+
------------------
|
|
39
|
+
- moved to Plone 4.3.8
|
|
40
|
+
[gbastien]
|
|
41
|
+
- override the 'label_click_here_to_retrieve' translation to display a clear
|
|
42
|
+
message on the link to retrieve password when lost
|
|
43
|
+
[gbastien]
|
|
44
|
+
|
|
45
|
+
433 (unreleased)
|
|
46
|
+
----------------
|
|
47
|
+
- moved to Plone 4.3.3
|
|
48
|
+
[gbastien]
|
|
49
|
+
|
|
50
|
+
432 (2014-02-12)
|
|
51
|
+
----------------
|
|
52
|
+
- moved to Plone 4.3.2
|
|
53
|
+
[gbastien]
|
|
54
|
+
|
|
55
|
+
4 (2013-08-28)
|
|
56
|
+
--------------
|
|
57
|
+
- login_form overrides to display message when authentication plugins are deactivated
|
|
58
|
+
[sgeulette]
|
|
59
|
+
- sendto_form overrides to integrate a captcha (collective.captcha)
|
|
60
|
+
[gbastien]
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
#!/usr/bin/make
|
|
2
|
+
# pyenv is a requirement, with 3.13+ python versions, and virtualenv installed in each version
|
|
3
|
+
# plone parameter must be passed to create environment 'make setup plone=6.2' or after a make cleanall
|
|
4
|
+
# The original Makefile can be found on https://github.com/IMIO/scripts-buildout
|
|
5
|
+
|
|
6
|
+
SHELL=/bin/bash
|
|
7
|
+
plones=6.2
|
|
8
|
+
b_o=
|
|
9
|
+
old_plone=$(shell [ -e .plone-version ] && cat .plone-version)
|
|
10
|
+
|
|
11
|
+
ifeq (, $(shell which pyenv))
|
|
12
|
+
$(error "pyenv command not found! Aborting")
|
|
13
|
+
endif
|
|
14
|
+
|
|
15
|
+
ifndef plone
|
|
16
|
+
ifeq (,$(filter setup,$(MAKECMDGOALS)))
|
|
17
|
+
plone=$(old_plone)
|
|
18
|
+
endif
|
|
19
|
+
endif
|
|
20
|
+
|
|
21
|
+
ifneq ($(wildcard bin/instance),)
|
|
22
|
+
b_o=-N
|
|
23
|
+
endif
|
|
24
|
+
|
|
25
|
+
ifndef python
|
|
26
|
+
# scripts-buildout uses 3.14 for 6.2: not available in our pyenv, 3.13 is supported by Plone 6.2
|
|
27
|
+
ifeq ($(plone),6.2)
|
|
28
|
+
python=3.13
|
|
29
|
+
endif
|
|
30
|
+
endif
|
|
31
|
+
|
|
32
|
+
all: buildout
|
|
33
|
+
|
|
34
|
+
.PHONY: help
|
|
35
|
+
help:
|
|
36
|
+
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
|
|
37
|
+
|
|
38
|
+
.python-version: ## Setups pyenv version
|
|
39
|
+
@pyenv local `pyenv versions |grep " $(python)" |tail -1 |xargs`
|
|
40
|
+
@echo "Local pyenv version is `cat .python-version`"
|
|
41
|
+
@ if [[ `pyenv which virtualenv` != `pyenv prefix`* ]] ; then echo "You need to install virtualenv in `cat .python-version` pyenv python (pip install virtualenv)"; exit 1; fi
|
|
42
|
+
|
|
43
|
+
bin/buildout: .python-version ## Setups environment
|
|
44
|
+
virtualenv .
|
|
45
|
+
./bin/pip install --upgrade pip
|
|
46
|
+
./bin/pip install -r requirements-$(plone).txt
|
|
47
|
+
@echo "$(plone)" > .plone-version
|
|
48
|
+
|
|
49
|
+
.PHONY: setup
|
|
50
|
+
setup: oneof-plone backup cleanall bin/buildout restore ## Setups environment
|
|
51
|
+
|
|
52
|
+
.PHONY: buildout
|
|
53
|
+
buildout: oneof-plone bin/buildout ## Runs setup and buildout
|
|
54
|
+
rm -f .installed.cfg .mr.developer.cfg
|
|
55
|
+
bin/buildout -t 5 -c test-$(plone).cfg ${b_o}
|
|
56
|
+
|
|
57
|
+
.PHONY: test
|
|
58
|
+
test: oneof-plone bin/buildout ## run bin/test without robot
|
|
59
|
+
# can be run by example with: make test opt='-t "settings"'
|
|
60
|
+
bin/test -t \!robot ${opt}
|
|
61
|
+
|
|
62
|
+
.PHONY: robot
|
|
63
|
+
robot: oneof-plone bin/buildout ## run robot tests in headless firefox
|
|
64
|
+
# can be run by example with: make robot opt='-t "*maintenance*"'
|
|
65
|
+
MOZ_HEADLESS=1 bin/test --all -t robot ${opt}
|
|
66
|
+
|
|
67
|
+
.PHONY: robot-server
|
|
68
|
+
robot-server: ## Starts robot server (layer=<layer name in testing.py>, default ACCEPTANCE)
|
|
69
|
+
# run a robot file against it with: ZSERVER_HOST=localhost ZSERVER_PORT=$${ZSERVER_PORT:-55001} bin/robot src/communesplone/layout/tests/robot/test_<feature>.robot
|
|
70
|
+
# --no-reload: the reload watchdog restarts the server when a template is read
|
|
71
|
+
env ZSERVER_HOST=localhost ZSERVER_PORT=$${ZSERVER_PORT:-55001} bin/robot-server --no-reload -v communesplone.layout.testing.$(or $(layer),ACCEPTANCE)
|
|
72
|
+
|
|
73
|
+
.PHONY: cleanall
|
|
74
|
+
cleanall: ## Cleans all installed buildout files
|
|
75
|
+
rm -fr bin include lib local share develop-eggs downloads eggs parts .installed.cfg .mr.developer.cfg .python-version pyvenv.cfg
|
|
76
|
+
|
|
77
|
+
.PHONY: backup
|
|
78
|
+
backup: ## Backups db files
|
|
79
|
+
@if [ '$(old_plone)' != '' ] && [ -f var/filestorage/Data.fs ]; then mv var/filestorage/Data.fs var/filestorage/Data.fs.$(old_plone); mv var/blobstorage var/blobstorage.$(old_plone); fi
|
|
80
|
+
|
|
81
|
+
.PHONY: restore
|
|
82
|
+
restore: ## Restores db files
|
|
83
|
+
@if [ '$(plone)' != '' ] && [ -f var/filestorage/Data.fs.$(plone) ]; then mv var/filestorage/Data.fs.$(plone) var/filestorage/Data.fs; mv var/blobstorage.$(plone) var/blobstorage; fi
|
|
84
|
+
|
|
85
|
+
.PHONY: which-python
|
|
86
|
+
which-python: oneof-plone ## Displays versions information
|
|
87
|
+
@echo "current plone = $(old_plone)"
|
|
88
|
+
@echo "current python = `cat .python-version`"
|
|
89
|
+
@echo "plone var = $(plone)"
|
|
90
|
+
@echo "python var = $(python)"
|
|
91
|
+
|
|
92
|
+
.PHONY: vcr
|
|
93
|
+
vcr: ## Shows requirements in checkversion-r.html
|
|
94
|
+
@bin/versioncheck -rbo checkversion-r-$(plone).html test-$(plone).cfg
|
|
95
|
+
|
|
96
|
+
.PHONY: vcn
|
|
97
|
+
vcn: ## Shows newer packages in checkversion-n.html
|
|
98
|
+
@bin/versioncheck -npbo checkversion-n-$(plone).html test-$(plone).cfg
|
|
99
|
+
|
|
100
|
+
.PHONY: guard-%
|
|
101
|
+
guard-%:
|
|
102
|
+
@ if [ "${${*}}" = "" ]; then echo "You must give a value for variable '$*' : like $*=xxx"; exit 1; fi
|
|
103
|
+
|
|
104
|
+
.PHONY: oneof-%
|
|
105
|
+
oneof-%:
|
|
106
|
+
@ if ! echo "${${*}s}" | tr " " '\n' |grep -Fqx "${${*}}"; then echo "Invalid '$*' parameter ('${${*}}') : must be one of '${${*}s}'"; exit 1; fi
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: communesplone.layout
|
|
3
|
+
Version: 5.0.0
|
|
4
|
+
Summary: General layout adaptations
|
|
5
|
+
Home-page: https://github.com/IMIO/communesplone.layout
|
|
6
|
+
Author: CommunesPlone.org
|
|
7
|
+
Author-email: support@communesplone.be
|
|
8
|
+
License: GPL
|
|
9
|
+
Classifier: Environment :: Web Environment
|
|
10
|
+
Classifier: Framework :: Plone
|
|
11
|
+
Classifier: Framework :: Plone :: 6.2
|
|
12
|
+
Classifier: Framework :: Plone :: Addon
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Requires-Python: >=3.11
|
|
18
|
+
Requires-Dist: setuptools
|
|
19
|
+
Requires-Dist: plone.base
|
|
20
|
+
Requires-Dist: Products.CMFPlone
|
|
21
|
+
Requires-Dist: Products.GenericSetup
|
|
22
|
+
Requires-Dist: Products.PluggableAuthService
|
|
23
|
+
Provides-Extra: test
|
|
24
|
+
Requires-Dist: plone.app.testing; extra == "test"
|
|
25
|
+
Requires-Dist: plone.app.robotframework; extra == "test"
|
|
26
|
+
Dynamic: author
|
|
27
|
+
Dynamic: author-email
|
|
28
|
+
Dynamic: classifier
|
|
29
|
+
Dynamic: description
|
|
30
|
+
Dynamic: home-page
|
|
31
|
+
Dynamic: license
|
|
32
|
+
Dynamic: provides-extra
|
|
33
|
+
Dynamic: requires-dist
|
|
34
|
+
Dynamic: requires-python
|
|
35
|
+
Dynamic: summary
|
|
36
|
+
|
|
37
|
+
.. image:: https://github.com/IMIO/communesplone.layout/actions/workflows/main.yml/badge.svg
|
|
38
|
+
:target: https://github.com/IMIO/communesplone.layout/actions/workflows/main.yml
|
|
39
|
+
.. image:: https://coveralls.io/repos/github/IMIO/communesplone.layout/badge.svg
|
|
40
|
+
:target: https://coveralls.io/github/IMIO/communesplone.layout
|
|
41
|
+
|
|
42
|
+
Introduction
|
|
43
|
+
============
|
|
44
|
+
|
|
45
|
+
This product is dedicated to override default plone layout.
|
|
46
|
+
|
|
47
|
+
Plone 6.2 (Classic UI), Python 3.11+. Plone 4 versions: 4.3.15.1 and older.
|
|
48
|
+
|
|
49
|
+
default profile
|
|
50
|
+
===============
|
|
51
|
+
Installs a browser layer: the login form (``@@login``, ``@@login_form``) shows a maintenance message
|
|
52
|
+
instead of the form when the ``source_users`` authentication plugin is deactivated.
|
|
53
|
+
The ``uninstall`` profile removes the browser layer.
|
|
54
|
+
|
|
55
|
+
simplify profile
|
|
56
|
+
================
|
|
57
|
+
Set site permissions only for managers (sharing, display menu, constrain types, ...)
|
|
58
|
+
and creates the ``full-layout`` group (members: Administrators, Site Administrators).
|
|
59
|
+
Adds the ``communesplone-layout-simplify`` CSS bundle for the authenticated users that are not Manager
|
|
60
|
+
nor in the ``full-layout`` group: it hides the Actions menu, the workflow "Advanced..." item,
|
|
61
|
+
the edit-form tabs but the first one and the versioning comment.
|
|
62
|
+
|
|
63
|
+
Changelog
|
|
64
|
+
=========
|
|
65
|
+
|
|
66
|
+
5.0.0 (2026-12-02)
|
|
67
|
+
------------------
|
|
68
|
+
|
|
69
|
+
- Plone 6.2 only (Python 3.10+), Plone 4 support dropped; package moved to the `src/` layout.
|
|
70
|
+
[chris-adam]
|
|
71
|
+
- Skin layers removed: maintenance message on the `@@login` / `@@login_form` views (browser layer), new `uninstall` profile.
|
|
72
|
+
[chris-adam]
|
|
73
|
+
- Send-to form captcha removed (collective.captcha dropped).
|
|
74
|
+
[chris-adam]
|
|
75
|
+
- `simplify` profile: `simplify.css` is a bundle for Plone 6 markup, group and permissions set by a post handler.
|
|
76
|
+
[chris-adam]
|
|
77
|
+
- Added unit and robot tests, Plone 6.2 buildout and GitHub Actions.
|
|
78
|
+
[chris-adam]
|
|
79
|
+
- Dropped support for Plone versions below 6.2.
|
|
80
|
+
[chris-adam]
|
|
81
|
+
- Dropped support for Python 3.10.
|
|
82
|
+
[chris-adam]
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
4.3.15.1 (2020-02-25)
|
|
86
|
+
---------------------
|
|
87
|
+
|
|
88
|
+
- Validated for Plone 4.3.15.
|
|
89
|
+
[gbastien]
|
|
90
|
+
|
|
91
|
+
4.3.8.1 (2017-05-17)
|
|
92
|
+
--------------------
|
|
93
|
+
|
|
94
|
+
- Adapted translation for 'label_by_author' from 'By {author}'
|
|
95
|
+
to 'Created by ${author}'.
|
|
96
|
+
[gbastien]
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
4.3.8 (2017-02-02)
|
|
100
|
+
------------------
|
|
101
|
+
- moved to Plone 4.3.8
|
|
102
|
+
[gbastien]
|
|
103
|
+
- override the 'label_click_here_to_retrieve' translation to display a clear
|
|
104
|
+
message on the link to retrieve password when lost
|
|
105
|
+
[gbastien]
|
|
106
|
+
|
|
107
|
+
433 (unreleased)
|
|
108
|
+
----------------
|
|
109
|
+
- moved to Plone 4.3.3
|
|
110
|
+
[gbastien]
|
|
111
|
+
|
|
112
|
+
432 (2014-02-12)
|
|
113
|
+
----------------
|
|
114
|
+
- moved to Plone 4.3.2
|
|
115
|
+
[gbastien]
|
|
116
|
+
|
|
117
|
+
4 (2013-08-28)
|
|
118
|
+
--------------
|
|
119
|
+
- login_form overrides to display message when authentication plugins are deactivated
|
|
120
|
+
[sgeulette]
|
|
121
|
+
- sendto_form overrides to integrate a captcha (collective.captcha)
|
|
122
|
+
[gbastien]
|
|
123
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.. image:: https://github.com/IMIO/communesplone.layout/actions/workflows/main.yml/badge.svg
|
|
2
|
+
:target: https://github.com/IMIO/communesplone.layout/actions/workflows/main.yml
|
|
3
|
+
.. image:: https://coveralls.io/repos/github/IMIO/communesplone.layout/badge.svg
|
|
4
|
+
:target: https://coveralls.io/github/IMIO/communesplone.layout
|
|
5
|
+
|
|
6
|
+
Introduction
|
|
7
|
+
============
|
|
8
|
+
|
|
9
|
+
This product is dedicated to override default plone layout.
|
|
10
|
+
|
|
11
|
+
Plone 6.2 (Classic UI), Python 3.11+. Plone 4 versions: 4.3.15.1 and older.
|
|
12
|
+
|
|
13
|
+
default profile
|
|
14
|
+
===============
|
|
15
|
+
Installs a browser layer: the login form (``@@login``, ``@@login_form``) shows a maintenance message
|
|
16
|
+
instead of the form when the ``source_users`` authentication plugin is deactivated.
|
|
17
|
+
The ``uninstall`` profile removes the browser layer.
|
|
18
|
+
|
|
19
|
+
simplify profile
|
|
20
|
+
================
|
|
21
|
+
Set site permissions only for managers (sharing, display menu, constrain types, ...)
|
|
22
|
+
and creates the ``full-layout`` group (members: Administrators, Site Administrators).
|
|
23
|
+
Adds the ``communesplone-layout-simplify`` CSS bundle for the authenticated users that are not Manager
|
|
24
|
+
nor in the ``full-layout`` group: it hides the Actions menu, the workflow "Advanced..." item,
|
|
25
|
+
the edit-form tabs but the first one and the versioning comment.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
[buildout]
|
|
2
|
+
package-name = communesplone.layout
|
|
3
|
+
package-extras = [test]
|
|
4
|
+
|
|
5
|
+
extends =
|
|
6
|
+
https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg
|
|
7
|
+
checkouts.cfg
|
|
8
|
+
|
|
9
|
+
extensions =
|
|
10
|
+
mr.developer
|
|
11
|
+
plone.versioncheck
|
|
12
|
+
|
|
13
|
+
parts +=
|
|
14
|
+
instance
|
|
15
|
+
omelette
|
|
16
|
+
ploneversioncheck
|
|
17
|
+
createcoverage
|
|
18
|
+
robot
|
|
19
|
+
# coverage
|
|
20
|
+
# test-coverage
|
|
21
|
+
# plone-helper-scripts
|
|
22
|
+
|
|
23
|
+
develop = .
|
|
24
|
+
|
|
25
|
+
eggs +=
|
|
26
|
+
Plone
|
|
27
|
+
Pillow
|
|
28
|
+
# Products.PDBDebugMode
|
|
29
|
+
# collective.profiler
|
|
30
|
+
# ipdb
|
|
31
|
+
pdbp
|
|
32
|
+
# plone.reload
|
|
33
|
+
|
|
34
|
+
package-extras +=
|
|
35
|
+
pdbp
|
|
36
|
+
|
|
37
|
+
always-checkout = force
|
|
38
|
+
|
|
39
|
+
[instance]
|
|
40
|
+
environment-vars +=
|
|
41
|
+
PYTHONBREAKPOINT pdbp.set_trace
|
|
42
|
+
eggs +=
|
|
43
|
+
${buildout:eggs}
|
|
44
|
+
zcml +=
|
|
45
|
+
|
|
46
|
+
[test]
|
|
47
|
+
environment = testenv
|
|
48
|
+
initialization +=
|
|
49
|
+
os.environ['PYTHONBREAKPOINT'] = 'pdbp.set_trace'
|
|
50
|
+
|
|
51
|
+
[testenv]
|
|
52
|
+
zope_i18n_compile_mo_files = true
|
|
53
|
+
|
|
54
|
+
[omelette]
|
|
55
|
+
recipe = collective.recipe.omelette
|
|
56
|
+
eggs = ${test:eggs}
|
|
57
|
+
|
|
58
|
+
[ploneversioncheck]
|
|
59
|
+
recipe = zc.recipe.egg
|
|
60
|
+
eggs = plone.versioncheck
|
|
61
|
+
|
|
62
|
+
[code-analysis]
|
|
63
|
+
recipe = plone.recipe.codeanalysis
|
|
64
|
+
pre-commit-hook = True
|
|
65
|
+
return-status-codes = True
|
|
66
|
+
directory = ${buildout:directory}/src/communesplone/layout
|
|
67
|
+
flake8-ignore = E123,E124,E501,E126,E127,E128,W391,C901,W503,W504,E203
|
|
68
|
+
flake8-extensions =
|
|
69
|
+
flake8-isort
|
|
70
|
+
|
|
71
|
+
[robot]
|
|
72
|
+
recipe = zc.recipe.egg
|
|
73
|
+
eggs =
|
|
74
|
+
Pillow
|
|
75
|
+
${test:eggs}
|
|
76
|
+
plone.app.robotframework[reload, debug]
|
|
77
|
+
|
|
78
|
+
[coverage]
|
|
79
|
+
recipe = zc.recipe.egg
|
|
80
|
+
eggs = coverage
|
|
81
|
+
|
|
82
|
+
[test-coverage]
|
|
83
|
+
recipe = collective.recipe.template
|
|
84
|
+
input = inline:
|
|
85
|
+
#!/bin/bash
|
|
86
|
+
export TZ=UTC
|
|
87
|
+
${buildout:directory}/bin/coverage run bin/test $*
|
|
88
|
+
${buildout:directory}/bin/coverage html
|
|
89
|
+
${buildout:directory}/bin/coverage report -m --fail-under=90
|
|
90
|
+
# Fail (exit status 1) if coverage returns exit status 2 (this happens
|
|
91
|
+
# when test coverage is below 100%.
|
|
92
|
+
output = ${buildout:directory}/bin/test-coverage
|
|
93
|
+
mode = 755
|
|
94
|
+
|
|
95
|
+
[plone-helper-scripts]
|
|
96
|
+
recipe = zc.recipe.egg
|
|
97
|
+
eggs =
|
|
98
|
+
Products.CMFPlone
|
|
99
|
+
${instance:eggs}
|
|
100
|
+
interpreter = zopepy
|
|
101
|
+
scripts =
|
|
102
|
+
zopepy
|
|
103
|
+
plone-compile-resources
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[buildout]
|
|
2
|
+
always-checkout = force
|
|
3
|
+
auto-checkout +=
|
|
4
|
+
|
|
5
|
+
[remotes]
|
|
6
|
+
imio = https://github.com/imio
|
|
7
|
+
imio_push = git@github.com:imio
|
|
8
|
+
plone = https://github.com/plone
|
|
9
|
+
plone_push = git@github.com:plone
|
|
10
|
+
ftw = https://github.com/4teamwork
|
|
11
|
+
ftw_push = git@github.com:4teamwork
|
|
12
|
+
zopefoundation = https://github.com/zopefoundation
|
|
13
|
+
zopefoundation_push = git@github.com:zopefoundation
|
|
14
|
+
col = https://github.com/collective
|
|
15
|
+
col_push = git@github.com:collective
|
|
16
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<include package="communesplone.layout" />
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
communesplone.layout Installation
|
|
2
|
+
---------------------------------
|
|
3
|
+
|
|
4
|
+
To install communesplone.layout into the global Python environment (or a workingenv),
|
|
5
|
+
using a traditional Zope 2 instance, you can do this:
|
|
6
|
+
|
|
7
|
+
* When you're reading this you have probably already run
|
|
8
|
+
``easy_install communesplone.layout``. Find out how to install setuptools
|
|
9
|
+
(and EasyInstall) here:
|
|
10
|
+
http://peak.telecommunity.com/DevCenter/EasyInstall
|
|
11
|
+
|
|
12
|
+
* If you are using Zope 2.9 (not 2.10), get `pythonproducts`_ and install it
|
|
13
|
+
via::
|
|
14
|
+
|
|
15
|
+
python setup.py install --home /path/to/instance
|
|
16
|
+
|
|
17
|
+
into your Zope instance.
|
|
18
|
+
|
|
19
|
+
* Create a file called ``communesplone.layout-configure.zcml`` in the
|
|
20
|
+
``/path/to/instance/etc/package-includes`` directory. The file
|
|
21
|
+
should only contain this::
|
|
22
|
+
|
|
23
|
+
<include package="communesplone.layout" />
|
|
24
|
+
|
|
25
|
+
.. _pythonproducts: http://plone.org/products/pythonproducts
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
Alternatively, if you are using zc.buildout and the plone.recipe.zope2instance
|
|
29
|
+
recipe to manage your project, you can do this:
|
|
30
|
+
|
|
31
|
+
* Add ``communesplone.layout`` to the list of eggs to install, e.g.:
|
|
32
|
+
|
|
33
|
+
[buildout]
|
|
34
|
+
...
|
|
35
|
+
eggs =
|
|
36
|
+
...
|
|
37
|
+
communesplone.layout
|
|
38
|
+
|
|
39
|
+
* Tell the plone.recipe.zope2instance recipe to install a ZCML slug:
|
|
40
|
+
|
|
41
|
+
[instance]
|
|
42
|
+
recipe = plone.recipe.zope2instance
|
|
43
|
+
...
|
|
44
|
+
zcml =
|
|
45
|
+
communesplone.layout
|
|
46
|
+
|
|
47
|
+
* Re-run buildout, e.g. with:
|
|
48
|
+
|
|
49
|
+
$ ./bin/buildout
|
|
50
|
+
|
|
51
|
+
You can skip the ZCML slug if you are going to explicitly include the package
|
|
52
|
+
from another package's configure.zcml file.
|