Skip to content

Commit

Permalink
Merge pull request ckan#6284 from EricSoroos/interface_docs
Browse files Browse the repository at this point in the history
Updated Docstrings for after_update/after_delete
  • Loading branch information
pdelboca authored Nov 20, 2023
2 parents 85e8380 + 7586be1 commit d1cbc10
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ckan/plugins/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,11 @@ def after_dataset_update(
u'''
Extensions will receive the validated data dict after the dataset
has been updated.
Note that bulk dataset update actions (`bulk_update_private`,
`bulk_update_public`) will bypass this callback. See
``ckan.plugins.toolkit.chained_action`` to wrap those actions
if required.
'''
pass

Expand All @@ -502,6 +507,10 @@ def after_dataset_delete(
u'''
Extensions will receive the data dict (typically containing
just the dataset id) after the dataset has been deleted.
Note that the `bulk_update_delete` action will bypass this
callback. See ``ckan.plugins.toolkit.chained_action`` to wrap
that action if required.
'''
pass

Expand Down Expand Up @@ -631,6 +640,10 @@ def after_resource_update(
dictionary ``url_type`` which is set to ``upload`` when the
resource file is uploaded instead of linked.
:type resource: dictionary
Note that the datastore will bypass this callback when updating
the ``datastore_active`` flag on a resource that has been added
to the datastore.
'''
pass

Expand Down

0 comments on commit d1cbc10

Please sign in to comment.