Commit 5be1637d authored by David Read's avatar David Read
Browse files

[#6] Race condition when resource URL is changed

Fixes #6
Not sure why the previous commit was lost.
parent 7a8fb653
......@@ -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