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

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to