Comment 2 for bug 546558

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 546558] Re: Multiple attributes are not exported as links correctly

On Thu, 25 Mar 2010 18:54:28 -0000, Curtis Hovey <email address hidden> wrote:
> I am not certain I understand the issue here. Reading the listed bug, is
> this a case where the WADL is defining the wrong name for the attribute?
> Is this caused by Choice or ReferenceChoice?

It's caused by using Choice where ReferenceChoice is intended. This
causes the code that writes the wadl to not add "_link" to the name, but
the code that produces the json to do so, leading to a discrepancy. This
makes launchpadlib unable to use the attribute as it doesn't find the
json entry that the wadl says should be there.

The JSON is correct, so the wadl should be changed, and this is done by
using a ReferenceChoice and telling it the schema of the interface that
is referenced.

I have all the cases fixed in my local branch, but the slowness of
iterating with the tests means that it's taking far longer than just
changing the 5 declarations required.

Thanks,

James