collective.preventactions
This package allows administrateur to marker object which can’t be deleted or renamed/moved.
Versions
Versions > 3 are for Plone 5.2 and Python 3
Versions < 3 are compatible with Archetypes (branch 2.x)
How it works
This package use marker interfaces and subscribe to IObjectWillBeRemovedEvent and IObjectWillBeMovedEvent events. If a marker interface is find on modified object, a exception will be raised.
You can also set some contents not deleteable (for example) like this in your setuphandler :
from collective.preventactions.interfaces import IPreventDelete
from plone import api
from zope.interface import alsoProvides
def post_install(context):
obj = api.content.get('/Plone/content-not-deleteable')
alsoProvides(obj, IPreventDelete)
Installation
To install collective.preventactions you simply add collective.preventactions to the list of eggs in your buildout, run buildout and restart Plone.
Then, install collective.preventactions using the Add-ons control panel.
License
The project is licensed under the GPLv2. Changelog =========
0.3.0 (2019-11-26)
Remove Archetypes dependency. [bsuttor]
0.2.1 (2018-07-10)
Typo. [bsuttor]
0.2 (2018-07-09)
Fix check render of PreventActionForm. [bsuttor]
0.1 (2016-09-20)
Package created using mr.bob [bsuttor]
Metadata
Release files for collective.preventactions 0.3.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.preventactions-0.3.0.tar.gz | 39.5 kB | Without provenance | Details for collective.preventactions-0.3.0.tar.gz |
Release files / collective.preventactions-0.3.0.tar.gz
| Download URL | collective.preventactions-0.3.0.tar.gz |
|---|---|
| Size | 39.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f7b902993219f04667bd43a3b8e7a328267226768b01a5eee422bd7ceadd4ef0
|
|
BLAKE2b-256 checksum How to use checksums |
568543e853de98c24440f7fa5b5a7b6f1ec2443c1e28ce61d8f2e327ff5a2b66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/38.7.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.15rc1
|
Security for collective.preventactions 0.3.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.