[Freeipa-devel] [PATCH] 315 Added commands into metadata.

Endi Sukma Dewata edewata at redhat.com
Tue Dec 6 05:38:39 UTC 2011


On 11/18/2011 12:27 PM, Endi Sukma Dewata wrote:
>> Now the methods metadata seem to be a subset of commands metadata, so we
>> probably can change the UI to use commands metadata and not pull the
>> methods metadata.
>
> I did this change in the updated patch. It seems to be working fine.
>
>> In the JSON API itself the parameters are specified as options, so the
>> order shouldn't matter to the UI. Is there a way to define the execute()
>> using unordered keywords? I'm trying to avoid changing the method
>> signature again in the future.
>
> I replaced takes_args with takes_options which takes care the ordering
> problem. I verified the old UI way of calling json_metadata still works.

Updated patch attached.

-- 
Endi S. Dewata
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-edewata-0315-3-Added-commands-into-metadata.patch
Type: text/x-patch
Size: 465218 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20111205/c8094a6d/attachment.bin>


More information about the Freeipa-devel mailing list