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]

 



Hi Makkalot

------------
Dott. Ing. Mornati Marco
Byte-Code s.r.l
via Antonio Cechov, 1
San Giuliano Milanese (MI)
E-Mail: mmornati@xxxxxxxxxxxxx
Int. +39 02 45074942
Tel. +39 02 9840047
Fax. +39 02 98247475

----- Original Message -----
From: makkalot@xxxxxxxxx
To: "Louis Coilliot" <louis.coilliot@xxxxxxxxx>
Cc: func-list@xxxxxxxxxx
Sent: Tuesday, November 4, 2008 12:50:15 PM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: Re:  Module to get arg list from func methods in the classes of the modules

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

_______________________________________________
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