[ckan-dev] purge organizations
Tyler Kennedy
tk at tkte.ch
Mon Dec 21 16:07:21 UTC 2015
Hey,
organization_purge wasn't added to the API until a latter version.
You need to upgrade CKAN (which is relatively painless up to 2.4) or
backport this method -
http://docs.ckan.org/en/latest/api/index.html#ckan.logic.action.delete.organization_purge
For the most part you can just copy-paste this method into your own
extension and it will work.
Thanks,
Tyler Kennedy
On Mon, Dec 21, 2015 at 6:13 AM, Hildegard Gerlach <
hildegard.gerlach at jrc.ec.europa.eu> wrote:
> Dear all,
>
> I am doing tests on a program to insert organizations programmatically.
> Thanks for the help, it works now, but I am running into another problem.
> For testing purposes I would like to delete and recreate organizations, but
> deleting is not enough, they need to be purged. Deleting from the "Manage
> organizations" page does not purge them, they are just marked as "deleted"
> but I cannot recreate them with the same name. I thought I could do it with
> the paster command, but this works only for datasets and organizations are
> not datasets. Is there a way to do it or do I have to write a program for
> it or delete it directly in the database ?
> I am using Ckan 2.2
>
> Thanks
>
> Hilde
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20151221/882eefc0/attachment-0003.html>
More information about the ckan-dev
mailing list