diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-05-30 12:55:08 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-06-07 11:22:15 +0200 |
commit | 88170087e1470fd91b8c8867004070cf883d3828 (patch) | |
tree | f4474d501fe7cb862db78190931c1a737748d77f /ipaserver/install/certs.py | |
parent | e3d171126f7771c5434b05ea241d76adfff38835 (diff) | |
download | freeipa-88170087e1470fd91b8c8867004070cf883d3828.tar.gz freeipa-88170087e1470fd91b8c8867004070cf883d3828.tar.xz freeipa-88170087e1470fd91b8c8867004070cf883d3828.zip |
Change json serialization to serialize useful data
json_metadata command creates and sends metadata needed by Web UI. It uses __json__ method for serialization of commands, options, objects... . A lot of data sent was useless for Web UI and some usefull information were missing. We
* mostly CLI specific option attribues are not send.
* attributes evaluated to false or None are not send
* options which are send are not got from takes_aptions attribute but by get_options() method. It finally sends usefull option collection for commands part of metadata.
In the end the raw amount of data send is aproximately the same.
This patch is needed for Web UI to determine which option it can use in which commands.
https://fedorahosted.org/freeipa/ticket/2760
Diffstat (limited to 'ipaserver/install/certs.py')
0 files changed, 0 insertions, 0 deletions