[ckan-dev] [scheming] add a helper function

Jean Pommier jean.pommier at pi-geosolutions.fr
Thu Jun 13 05:47:43 UTC 2019


Hi Ian,

Many thanks. So, it was a template helper function. I should have guessed.

Tahnk you very much,

Best,

Jean

*Jean Pommier -- pi-Geosolutions*

Ingénieur, consultant indépendant

Tél. : (+33) 6 09 23 21 36
E-mail : jp at pi-geosolutions.fr
Web : www.pi-geosolutions.fr

Le 12/06/2019 à 22:06, Ian Ward a écrit :
> I just updated the readme with a link to the clan docs, please open an 
> issue or PR on the ckanext-scheming repo if you thinking of any other 
> improvements.
>
> https://github.com/ckan/ckanext-scheming/blob/master/README.md#choices_helper
>
>
>
> On Wed, Jun 12, 2019, 3:56 PM Jean Pommier 
> <jean.pommier at pi-geosolutions.fr 
> <mailto:jean.pommier at pi-geosolutions.fr>> wrote:
>
>     Hi,
>
>     in the scheming extension's doc, I can read
>
>         "If a choices list is not provided you must provide a
>         |choices_helper| function that will return a list of choices
>         in the same format as the |choices| list above.
>
>         You may register your own helper function"
>
>     I'd like to do exactly that : provide my own
>     datastore_choices_resource function. But how can I do it ? I mean,
>     I suppose it must be available through the scheming get_helpers
>     function, so how to register my own function ?
>
>     Thanks in advance,
>
>     Best,
>
>     Jean
>
>     -- 
>
>     *Jean Pommier -- pi-Geosolutions*
>
>     Ingénieur, consultant indépendant
>
>     Tél. : (+33) 6 09 23 21 36
>     E-mail : jp at pi-geosolutions.fr <mailto:jp at pi-geosolutions.fr>
>     Web : www.pi-geosolutions.fr <http://www.pi-geosolutions.fr>
>
>     _______________________________________________
>     ckan-dev mailing list
>     ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
>     https://lists.okfn.org/mailman/listinfo/ckan-dev
>     Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
> _______________________________________________
> 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/20190613/b95bc27e/attachment-0002.html>


More information about the ckan-dev mailing list