Re: Module to get arg list from func methods in the classes of the modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 04 November 2008 01:11:12 am you wrote:
> Hello,
>
Hi
> the module is in attachment, FYI.
>
> I wrote this primarily for Symbolic. Symbolic needs to get the arg list to
> create forms for WebUI operations based on func modules, and the
> register_method_args method is not always defined (that's a pity).
Yes, actually we should write register_method_args for every defined module, 
so funcweb and other apps like yours may render the stuff easily. 
>
> Perhaps it would be better to implement this in the inners of func, but as
> a func module it was quick to do.
>
> Examples of use:
> import func.overlord.client as fc
> c = fc.Client("*")
>
> print c.func_getargs.get('mount','umount')
> print c.func_getargs.get('command','run')
> print c.func_getargs.get('reboot','reboot')
>
> will return (here on the minion 'kermit'):
>
> {'kermit': ['dir', 'killall', 'force', 'lazy']}
> {'kermit': ['command', 'env']}
> {'kermit': ['when', 'message']}
>
As a module i think it is good ... 
>
>
> Louis


_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux