[ckan-dev] Alter resource in grid view
Dominik Moritz
dominik.moritz at okfn.org
Tue Aug 20 13:09:12 UTC 2013
Hi Ben,
That depends on where the data comes from. If the preview shows the content of a file (i.e. csv), you have to change the content of the file. If the preview shows the data from the datastore (which is unlikely, but possible), you can use the datastore_upsert action of CKAN [1].
Cheers,
Dominik
[1] http://docs.ckan.org/dv/ckan-2.0.2/datastore-api.html#ckanext.datastore.logic.action.datastore_upsert
On 20 Aug 2013, at 12:38, Ben Scott <bnm at benscott.co.uk> wrote:
> Hi -
>
> I'd like to modify the data being displayed when previewing a dataset resource in the grid. What would be the best way of doing that? I've been looking into the IPackageController, but it doesn't seem to let you interact with a package's data resources?
>
> Thanks very much,
> Ben
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
Dominik Moritz
CKAN developer | skype: d.moritz | @doobly_doo
The Open Knowledge Foundation
Empowering through Open Knowledge
http://okfn.org/ | @okfn | http://ckan.org | @CKANproject
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130820/463e9256/attachment-0001.sig>
More information about the ckan-dev
mailing list