[Freeipa-devel] [PATCH] jderose 042 output_params

Rob Crittenden rcritten at redhat.com
Thu Feb 11 19:56:47 UTC 2010


Jason Gerard DeRose wrote:
> As discussed with Rob on IRC, this patch changes the
> Command.get_output_params() method so that by default your
> Command.output_params will be the same as your Command.params.
> 
> This make the behavior similar to how Method.get_output_params() fills
> your Method.params with the params in the corresponding Object.params.
> 
> If you have args or options that you *don't* want in output_params, add
> the 'no_output' flag, like this:
> 
>    Str('foo', flags=['no_output'])
> 
> This is similar to the 'no_create', 'no_update', and 'no_search' flags
> for Method plugins.
> 
> If you need output that wont be in your args or options, add them in a
> `has_output_params` tuple, like this:
> 
>     has_output_params = (
>         'bar',
>         'baz',
>     )
> 
> I'll add docstrings in another patch, but this is blocking Rob, so I
> made it a quickie.
> 

ack, pushed to master. Working great.

rob




More information about the Freeipa-devel mailing list