[ckan-dev] IDomainObjectModification and resources
Ryan Clark
ryan.clark at azgs.az.gov
Wed Jun 19 21:12:57 UTC 2013
I would like to implement some custom functionality that occurs when resources are "deleted". We tried to use IDomainObjectModification to listen for such changes, but it looks like pushing the "Delete" button when editing a resource actually changes a ResourceRevision object, and IDomainObjectModification.notify is not called.
- Does pushing that "delete" button call the action "resource_delete"? Are there any other side effects? Right now we are considering wrapping "resource_delete" in our own action, and then adjusting the UI to call that custom action.
- Its confusing to me that ALL domain objects hit the before_commit function, but then are filtered within that function. Notify on observing plugins is only called for a small set of modifications that meet the criteria defined in the before_commit function. Is there a reason that IDomainModification cannot be used to catch and analyze any and all modifications?
Thank you!
Ryan
____________________
Ryan Clark
Arizona Geological Survey
ryan.clark at azgs.az.gov
(520) 302-4871
facebook.com/ModernGeologist
@worbly
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130619/dccc0259/attachment.html>
More information about the ckan-dev
mailing list