[ckan-dev] Adding custom metadata in stage 3 (IDatasetForm)
Hendrik Bunke
bunke.hendrik at gmail.com
Mon May 13 12:49:20 UTC 2013
--On 2013-05-13 08:04, Ian Ward wrote:
> 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?
No. I'm directly looking at the package dict. The data is not
stored.
> Would you post an example that fails with ckan's release-v2.0 branch
> somewhere?
Will try tomorrow.
thx
hendrik
--
Dr. Hendrik Bunke
http://gplus.to/hbunke
http://twitter.com/hbunke
http://www.hbxt.org
More information about the ckan-dev
mailing list