[Freeipa-devel] [ui-devel-tool] Updating and creating Web UI .json files
Petr Vobornik
pvoborni at redhat.com
Fri Jan 13 16:09:43 UTC 2012
I have created a helper tool (script) for updating
install/ui/test/data/*.json files which are used for offline
presentation of FreeIPA Web UI. So I'm sharing it as it might be useful
for others.
Main purpose:
* updating ipa_init*.json files (should replace old not-working bash script)
* creating new *.json files when implementing new UI functionality
* updating existing files when modifying UI.
Pros:
* command definition is very easy - just copy it from Chromium or other
developer tool a paste it into the code (with little text around).
How it works:
* user can define commands - concrete command with name, arguments and
options
then it can
* call the command (using curl) and get JSON response from IPA server
* modify the response
* save response to file
* or print response to console
Current modification of response:
* replaces dns, domains, hostname from IPA server's to dev.example.com
* removes principal and version (no more various GIT versions)
* removes trailing whitespaces
Additional functionality:
* possibility to define command groups
* can execute multiple commands or groups
* list defined commands and groups
Common usage:
ipa-json.py -v -d -s --methods method_name method_2_name
or type 'ipa-json.py -h' for more options
note: command and method mean basically the same, the naming should be
united...
Possible future enhancements:
* add kerberos authentication
* split definition of methods, code and configuration to multiple files
--
Petr Vobornik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ipa-json.py
Type: text/x-python
Size: 12717 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20120113/fcc8ef70/attachment.py>
More information about the Freeipa-devel
mailing list