Extends Plone content with metadata about the last modifier
Project description
Introduction
collective.lastmodifier provides support for storing the user who made the last modification on a content item. It extends Archetypes-based content types with a lastModifier field using schemaextender. Further it registers an index and a metadata column in portal_catalog and enables their usage in collections.
Installation
Install collective.lastmodifier by adding it to the list of eggs in your buildout or by adding it as a dependency of your policy package. Then run buildout and restart your instance.
Go to Site Setup of your Plone site and activate the collective.lastmodifier add-on.
Last modifier adapter
In addition to the catalog index and metadata the last modifier adapter provides easy access for getting the last modifier or for setting it:
from collective.lastmodifier.interfaces import ILastModifier
last_modifier = ILastModifier(context)
last_modifier.get() # returns the user id of the last modifier
last_modifier.set(user_id) # sets the last modifier
Compatibility
Runs with Plone 4.1, 4.2 and 4.3.
It is currently only compatible with Archetypes, Dexterity is not compatible.
Links
Github project repository: https://github.com/4teamwork/collective.lastmodifier
Issue tracker: https://github.com/4teamwork/collective.lastmodifier/issues
Package on pypi: http://pypi.python.org/pypi/collective.lastmodifier
Continuous integration: https://jenkins.4teamwork.ch/search?q=collective.lastmodifier
Copyright
This package is copyright by 4teamwork.
collective.lastmodifier is licensed under GNU General Public License, version 2.
Changelog
1.1.1 (2014-09-05)
Let ILastModifier fallback to the creator. [jone]
1.1.0 (2014-09-02)
Drop Plone 4.1 support. [jone]
Implement dexterity support. [jone]
Implement an ILastModifier adapter. [jone]
Implement uninstall for the package. [jone]
1.0.1 (2014-02-05)
Cleanup package and declare dependencies. [jone]
Fix maximum recursion depths in certain testing environments. This is caused by applying the patch multiple times when the ZCML is loaded multiple times. [jone]
1.0 (2012-08-15)
Initial release
Project details
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.lastmodifier-1.1.1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2171177f2be85bae5ec7a6c85e451c78c6235023fa3865caedcf54405f49dc93 |
|
MD5 | c6a09bac5596cd997e982691cceda934 |
|
BLAKE2b-256 | 3d85bf01c58b890cc105e052e3212f9238d877adabf632604c1b9081e7719cbb |