[ckan-dev] Error when adding ressource

Ian Ward ian at excess.org
Tue Mar 12 18:21:09 UTC 2013


Fabian: This patch fixes the problem for me, would you try it and let
me know if it works for you too?

https://github.com/wardi/ckan/commit/fa9929877573aebc146ef4fde15048d517d4a3a0

I still haven't created a minimal example that triggers the problem,
but I think I know how now.

On Tue, Mar 12, 2013 at 12:50 PM, Vitor Baptista
<vitor at vitorbaptista.com> wrote:
> Hi Ian,
>
> When you're able to pinpoint where's the error and create the issue, please
> send it here as well.
>
> Cheers,
> Vítor Baptista.
>
>
> 2013/3/12 Ian Ward <ian at excess.org>
>>
>> Hi Fabian,
>>
>> I'm getting the same error now too.  It started when I added
>> convert_from_extras to a field in the schema returned by my
>> db_to_form_schema() method.  I can't reproduce the problem with the
>> example_idatasetform plugin in the example_idatasetform_without_tests
>> branch though.
>>
>> When I can come up with a minimal failing example I'll create an issue
>> on github.
>>
>>
>>
>> On Mon, Mar 11, 2013 at 9:40 AM, Kirstein, Fabian
>> <fabian.kirstein at fokus.fraunhofer.de> wrote:
>> > Hi,
>> >
>> > I tried it but the error remains the same.
>> > I try to understand what is going wrong. When adding a resource the
>> > package is updated and the dict is
>> > validated against the schema, which causes the error. But when I just
>> > update the package by editing a dataset, everything
>> > work well. This is very strange.
>> >
>> >
>> >
>> >
>> >
>> > -----Ursprüngliche Nachricht-----
>> > Von: ckan-dev-bounces at lists.okfn.org
>> > [mailto:ckan-dev-bounces at lists.okfn.org] Im Auftrag von Ian Ward
>> > Gesendet: Montag, 11. März 2013 14:04
>> > An: CKAN Development Discussions
>> > Betreff: Re: [ckan-dev] Error when adding ressource
>> >
>> > On Mon, Mar 11, 2013 at 6:53 AM, Kirstein, Fabian
>> > <fabian.kirstein at fokus.fraunhofer.de> wrote:
>> >> File '/home/fki/oc/src/ckan/ckan/lib/navl/dictization_functions.py',
>> >> line
>> >> 393 in unflatten
>> >>
>> >>   current_pos = current_pos[key]
>> >>
>> >> IndexError: list index out of range
>> >
>> > That sounds like a bug I fixed recently.  Try running the code from the
>> > release-v2.0 branch.
>> >
>> > _______________________________________________
>> > ckan-dev mailing list
>> > ckan-dev at lists.okfn.org
>> > http://lists.okfn.org/mailman/listinfo/ckan-dev
>> > Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>> >
>> > _______________________________________________
>> > ckan-dev mailing list
>> > ckan-dev at lists.okfn.org
>> > http://lists.okfn.org/mailman/listinfo/ckan-dev
>> > Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>
>
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>




More information about the ckan-dev mailing list