[ckan-dev] Adding custom metadata in stage 3 (IDatasetForm)

Ian Ward ian at excess.org
Mon May 13 12:04:17 UTC 2013


On Mon, May 13, 2013 at 6:18 AM, Hendrik Bunke <bunke.hendrik at gmail.com> wrote:
> --On 2013-05-10 14:08, Sean Hammond wrote:
>> Yes, example_idatasetform does do this, it adds a field called
>> country_code to stage 3 of the dataset form. It uses convert_to_tags
>> though, not convert_to_extras, so I wonder if the problem you're having
>> only happens with convert_to_extras.
>
> At first I thought the example has the same problem, but I was
> wrong. I just did some more research, and it seems, that storing
> custom metadata actually works if you have it *only* in stage 3. My form
> stores metadata in stage 1 *and* stage 2. As soon as metadata is
> stored to extras in stage 1, nothing gets stored in stage 3.
>
> Can anyone confirm this? I'd then report this as an issue.

Are you forgetting to use convert_from_extras in your view form?
Would you post an example that fails with ckan's release-v2.0 branch
somewhere?




More information about the ckan-dev mailing list