Ticket #1354 (new enhancement) — at Initial Version

Opened 3 years ago

Last modified 3 years ago

Pass the context object to plugins implementing the IPackageController and IGroupController

Reported by: amercader Owned by: amercader
Priority: major Milestone: ckan-v1.5
Component: ckan Keywords: plugins
Cc: david.raznick@… Repository: ckan
Theme: none

Description

Plugins implementing some IPackageController or IGroupController operations (i.e. read, create, edit, delete) may need the context used in the logic action. For instance, to access the Session that created a package to perform additional queries from the extension (In that case the main logic action will still perform the final commit). The interface methods will have a default value of None for the context to ensure backwards-compatibility.

Note: See TracTickets for help on using tickets.