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.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
Hashes for collective.preventactions-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4dc008b9b849971132f33da80e86ec32c5a5f709c4d5720c2c828e515a16359 |
|
MD5 | c46cd11fbe16b4a8603b7d2c8fd7c8f8 |
|
BLAKE2b-256 | 5afa3b968978fa8681db316242e6c524cf37351dbe300deb353ea5e284a0f0ce |