[ckan-dev] Required-field

Fabrizio Fornari ckanappoggio at gmail.com
Thu Mar 13 14:51:22 UTC 2014


Thank you Pabitra!

'not_empty' does the trick.

- Fabrizio


On Thu, Mar 13, 2014 at 3:42 PM, Pabitra Dash <pkdash_reena at hotmail.com>wrote:

> I use 'not_empty' if I want to make any custom metadata element 'data
> entry required'.
>
> Pabitra
>
>
>
> ------------------------------
> Date: Thu, 13 Mar 2014 15:14:43 +0100
> From: ckanappoggio at gmail.com
> To: ckan-dev at lists.okfn.org
> Subject: Re: [ckan-dev] Required-field
>
>
> Yes it's a custom field.
>
> I tried to add the not_missing instead of ignore_missing in
> toolkit.get_validator() but nothing changes
>
>
> On Thu, Mar 13, 2014 at 8:21 AM, Nigel Babu <nigel.babu at okfn.org> wrote:
>
> Is this a custom field? You need the add the 'not_missing' validator in
> your schema.
>
> Nigel Babu
>
> Developer  |  @nigelbabu <https://twitter.com/nigelbabu>
>
> The Open Knowledge Foundation <http://okfn.org/>
>
> Empowering through Open Knowledge
>
> http://okfn.org/  |  @okfn <http://twitter.com/OKFN>  |  OKF on Facebook<https://www.facebook.com/OKFNetwork> |
> Blog <http://blog.okfn.org/>  |  Newsletter<http://okfn.org/about/newsletter>
>
>  CKAN | http://ckan.org/ | @CKANproject <http://twitter.com/CKANproject> |the world's leading open-source data portal platform
>
>
> On 12 March 2014 23:32, Fabrizio Fornari <ckanappoggio at gmail.com> wrote:
>
> Hi guys!
>
> How can I change a field to make it a required-field?
>
> Thank you!
>
> - Fabrizio
>
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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
>
>
>
> _______________________________________________ ckan-dev mailing list
> ckan-dev at lists.okfn.org https://lists.okfn.org/mailman/listinfo/ckan-devUnsubscribe:
> 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/20140313/2ca9ec1e/attachment-0003.html>


More information about the ckan-dev mailing list