This package allows administrateur to marker object which can't be deleted
Project description
collective.preventactions
This package allows administrateur to marker object which can’t be deleted or renamed/moved.
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.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]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for collective.preventactions-0.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c909d91fdf45595c9c9c195295a9200db14eefcf86262c5a237f8259cc6ff340 |
|
MD5 | cca1e7b66ccd9072aa8463bb0609c240 |
|
BLAKE2b-256 | 52dd751bacfcfafa9afc93d81bde1755a5486f69a14a9ab5d40c692b76dea724 |
Hashes for collective.preventactions-0.2.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2577ef611c0650e51e073211dcbe405ffd39392ee3b7aa690e61284067015304 |
|
MD5 | 87465de297696fa1250c3bbcb4acd9eb |
|
BLAKE2b-256 | b0c01672a6783dbf1aa3872060a2c9314ee900c9d5b5eb7b35326efe5334d6ea |