[ckan-dev] CKAN action dataset/delete

Ross Jones ross at servercode.co.uk
Fri Jan 15 09:58:35 UTC 2016


Hi Marek,


> On 15 Jan 2016, at 09:51, Marek Šplíchal <marek.splichal at gmail.com> wrote:
> when i use paster --plugin=ckan dataset purge NAME -c /etc/ckan/default/production.ini, or on web ckan-admin -> Trash -> Purge, i get dataset/delete signal.

If you have time/inclination to do so, I think it would be worth a PR to fix this.

You'd want to change https://github.com/datacats/ckanext-webhooks/blob/master/ckanext/webhooks/plugin.py#L39-L70 to look at the object's state field, rather than rely on the DomainObjectOperation.

Ross




More information about the ckan-dev mailing list