Re: [PATCH ]Getting method arguments for minions

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

 



makkalot@xxxxxxxxx wrote:
Hi list today i added getting the argument list feature for func. Therefore we are now able to do that: fc = Overlord("some.com") getattr(fc,"iptables").get_method_args("run")

Here is my patch [1],i'm waiting for comments thanks in advance.

[1]http://tutorials-place.com/media/makkalot_stuff/may27.patch

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

If we're going to base the Func-Web form generation off of the above, it seems we would want to also be able to indicate types and possibly hints for values, in some cases. So I am not sure this satisfies the needs of the web interface.

For instance, imagine a function takes a foo(int x, string y, boolean z) ...

x and y would be text boxes, but we'd want to represent z as a checkbox, right? Possibly some other options might take a set list of values, in which case, we'd want to render a "select" choice box. If so, how do we express the possible valid values?

We might also want to include tooltips on what the desired values are for the various fields.

So, while this is definitely useful, it might make sense to have an additional API that returns something more explicit.

This could be stored as a hash in some form in each of the modules?

Thoughts?

--Michael


_______________________________________________
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