collective.restrictportlets
This packages allows you to restrict the available portlets that non-Managers can add.
Features
On any page where portlets can be added, the product checks a list of portlets that are restricted to only Managers. This includes the personal dashboard.
There is a control panel for selecting which portlets to disallow for non-Managers.
Compatibility
This package is tested on Plone 4.3 and 5.0.
It should be fine for Plone 4.1 and 4.2 as well:
It patches a method from plone.portlets that has not changed since version 2.0 (Plone 4.0).
We need plone.app.registry for our setting and the control panel, so this means Plone 4.1.
The most important part of this package is a small monkey patch for plone.portlets.manager.PortletManager.getAddablePortletTypes. If you have other code that patches this, it may not work.
Testing
This package is tested with Travis:
Default
After you install the product in the Plone add-ons control panel, by default these portlets are restricted:
Classic portlet
Login portlet
You can make them available again in the Restrict portlets control panel.
Translations
This product has been translated into:
Dutch (Maurits van Rees)
Installation
Install collective.restrictportlets by adding it to your buildout:
[buildout]
...
eggs =
collective.restrictportlets
and then running bin/buildout. Now you can activate it in the add-ons control panel and configure it in the Restrict portlets control panel.
Contribute
License
The project is licensed under the GPLv2.
Sponsorship
Work on collective.restrictportlets has been made possible by The Flemish Environment Agency, or VMM. See https://www.vmm.be. VMM operates as an agency of the Flemish government for a better environment in Flanders. Flanders is one of the three Belgian regions with its own government, parliament and administration. The other two are the Brussels-Capital Region and the Walloon Region.
Contributors
Maurits van Rees, m.van.rees@zestsoftware.nl
Changelog
1.0.0 (2021-12-21)
Test on Plone 4.3, 5.1, 5.2, 6.0. [maurits]
Switch to tox and GitHub Actions. [maurits]
Get rid of includeDependencies. [maurits]
1.0a1 (2017-08-14)
Initial release. [maurits]
Metadata
Release files for collective.restrictportlets 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| collective.restrictportlets-1.0.0.tar.gz | 48.8 kB | Without provenance | Details for collective.restrictportlets-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| collective.restrictportlets-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for collective.restrictportlets-1.0.0-py2.py3-none-any.whl |
Total release size: 73.8 kB
Release files / collective.restrictportlets-1.0.0.tar.gz
| Download URL | collective.restrictportlets-1.0.0.tar.gz |
|---|---|
| Size | 48.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd52f1dc77025de81f32e851ad00967e02990080268887f570249b95dda93aa1
|
|
BLAKE2b-256 checksum How to use checksums |
bce3d6b310c4ce1c508cf09d308a0b6ca8eae928b68022cd162710a22fe7f79f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/42.0.2 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.17
|
Release files / collective.restrictportlets-1.0.0-py2.py3-none-any.whl
| Download URL | collective.restrictportlets-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
36a0a2d9d9989eb588162761da0cad787f8ff8b317a2b72b6eed1d6242030bbc
|
|
BLAKE2b-256 checksum How to use checksums |
b218d1f44453e3d64b1bfbe06a1113b56fbedf71066381b9b71bbd4140974c00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/42.0.2 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/2.7.17
|
Security for collective.restrictportlets 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.