adhocracy_core.changelog package

Transaction changelog for resources.

class Changelog(default_factory=<function Changelog.<lambda>>)[source]

Bases: collections.defaultdict

Transaction changelog for resources.

Dictionary with resource path as key and default value ChangelogMetadata.

Initialize self.

clear_changelog_callback(request)[source]

Delete all entries in the transaction changelog.

create_changelog() → dict[source]

Return dict that maps resource path to ChangelogMetadata.

clear_modification_date_callback(request)[source]

Delete the shared modification date for the transaction.

The date is set by adhocracy_utils.get_modification_date().

includeme(config)[source]

Add transaction changelog to the registry and register subscribers.