(Sorry for previous mail/Spam) I've a question... How can I retrieve arguments list for module like copy_file (that are "local" methods). When I try with get_method_args I get a REMOTE_ERROR. For this reason that module, to by-pass the method_args method, was created! Bye Marco ------------ 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: "Marco Mornati" <mmornati@xxxxxxxxxxxxx> To: makkalot@xxxxxxxxx Cc: func-list@xxxxxxxxxx, "Louis Coilliot" <louis.coilliot@xxxxxxxxx> Sent: Tuesday, November 4, 2008 12:54:03 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 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