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

Endi Sukma Dewata edewata at redhat.com
Fri Nov 18 18:27:17 UTC 2011


On 11/18/2011 9:36 AM, 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.

-- 
Endi S. Dewata
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: freeipa-edewata-0315-2-Added-commands-into-metadata.patch
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20111118/fd201346/attachment.ksh>


More information about the Freeipa-devel mailing list