Skip to main content

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

# Or to set the last modifier even easier

from collective.lastmodifier.utils import set_last_modifier

set_last_modifier(context)

Compatibility

Runs with Plone 4.3 and 5.1.

It is currently only compatible with Archetypes and Dexterity.

Changelog

2.0.0 (2019-10-23)

  • Add Plone 5.1 support. [mathias.leimgruber]

  • No longer support AT officially. [mathias.leimgruber]

1.1.3 (2018-11-16)

  • Drop plone 4.2 support [Nachtalb]

  • Fix obsolete information in README.rst [Nachtalb]

  • Make set_last_modifier reusable [Nachtalb]

1.1.2 (2014-09-19)

  • Use IDexterityContent instead of IDexterityItem to match all dexterity contents. [cedricmessiant]

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

Release files for collective.lastmodifier 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for collective.lastmodifier 2.0.0
File Size Uploaded
collective.lastmodifier-2.0.0.tar.gz 17.7 kB Details

Release files / collective.lastmodifier-2.0.0.tar.gz

Download URL collective.lastmodifier-2.0.0.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
888d2ddc7f21b32e3136bf0d1b723c5a8a28ba67cf301b9e5261e1555b02466c
BLAKE2b-256 checksum
How to use checksums
ef4ee7bc3e02115baa853b14a775b7817567307626730e71c9e40a71d8d59e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15

Release history Release notifications | RSS feed

This release

2.0.0 This release

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page