Commit 25fe827e authored by David Read's avatar David Read
Browse files

Merge pull request #26 from ckan/6-notification

[#6] Race condition when resource URL is changed
parents 7a8fb653 5be1637d
......@@ -30,6 +30,14 @@ class ArchiverPlugin(p.SingletonPlugin, p.toolkit.DefaultDatasetForm):
# IDomainObjectModification
def notify(self, entity, operation=None):
if not p.toolkit.check_ckan_version('2.3'):
self._notify(entity, operation)
def notify_after_commit(self, entity, operation=None):
if p.toolkit.check_ckan_version('2.3'):
self._notify(entity, operation)
def _notify(self, entity, operation=None):
if not isinstance(entity, model.Package):
return
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment