[ckan-dev] API : Include customs tags in package_show_rest

David Raznick kindly at gmail.com
Thu May 24 12:00:26 UTC 2012


Hello,

By the way if you want to override the package_show_rest making it the same
as package_show  you can do this in a similar way that was done for the
vocabulary_show.  So you can add another item to the Iactions mapping
'package_show_rest' to this funcion.

from ckan import logic

def package_show_rest(context, data_dict):

    return logic.get_action('package_show')(context, data_dict)


Thanks

David

On Thu, May 24, 2012 at 10:30 AM, David Raznick <kindly at gmail.com> wrote:

> Hello,
>
> My advise would be to always use package_show and not package_show_rest.  Why
> is there a need to use package_show_rest?
>
> Thanks
>
> David
>
> On Thu, May 24, 2012 at 9:13 AM, VENTURA Oceane <OCEANE.VENTURA at atos.net>wrote:
>
>>  Hi,
>>
>> When I use the API to display a package, CKAN does'nt include my customs
>> tags, while they are defined in my schema.
>> It seems that the function package_show_rest doesn't work as I expected
>> it to do, opposite to package_show.
>>
>> What do I need to do to display the custom tags of my package in the API
>> without modifying the core source code (we'd like to use the package
>> installer on the production platform) ?
>>
>> TIA,
>>
>> *Océane VENTURA*
>> Business Development & Innovation
>> ATOS - Public Sector France
>>  *oceane.ventura at atos.net*
>> River Ouest,
>> 80 quai Voltaire
>> 95 877 Bezons Cedex
>> www.atos.net
>>
>>
>>   ------------------------------
>>
>> Ce message et les pièces jointes sont confidentiels et réservés à l'usage
>> exclusif de ses destinataires. Il peut également être protégé par le secret
>> professionnel. Si vous recevez ce message par erreur, merci d'en avertir
>> immédiatement l'expéditeur et de le détruire. L'intégrité du message ne
>> pouvant être assurée sur Internet, la responsabilité du groupe Atos ne
>> pourra être engagée quant au contenu de ce message. Bien que les meilleurs
>> efforts soient faits pour maintenir cette transmission exempte de tout
>> virus, l'expéditeur ne donne aucune garantie à cet égard et sa
>> responsabilité ne saurait être engagée pour tout dommage résultant d'un
>> virus transmis.
>>
>> This e-mail and the documents attached are confidential and intended
>> solely for the addressee; it may also be privileged. If you receive this
>> e-mail in error, please notify the sender immediately and destroy it. As
>> its integrity cannot be secured on the Internet, the Atos group liability
>> cannot be triggered for the message content. Although the sender endeavors
>> to maintain a computer virus-free network, the sender does not warrant that
>> this transmission is virus-free and will not be liable for any damages
>> resulting from any virus transmitted.
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20120524/f0b6496b/attachment-0001.html>


More information about the ckan-dev mailing list