Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-archiver
Commits
25fe827e
Commit
25fe827e
authored
Apr 25, 2016
by
David Read
Browse files
Merge pull request #26 from ckan/6-notification
[#6] Race condition when resource URL is changed
parents
7a8fb653
5be1637d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ckanext/archiver/plugin.py
View file @
25fe827e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment