[Kimchi-devel] [PATCH v3] [WoK 0/2] /config/plugins API implementation

dhbarboza82 at gmail.com dhbarboza82 at gmail.com
Wed Feb 1 12:03:25 UTC 2017


From: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>

v3:
- atomic backend commit
- using regex on parser
- 'test_mode' is now being retrieved by wok config
- plug-in dependencies are now being fetched
- plug-ins are now being enabled/disabled the cherrypy tree

v2:
- added User Log capabilities on /config/plugins/enable|disable actions
- added 'enable=' as a valid entry in the parsing of the conf file

This patch set implements the '/config/plugins' API.

The idea of this API is to replace the current '/plugins' API while
adding new attributes in their return values:

- enabled: true if the plug-in is enabled, false otherwise
- depends: list of all the plug-ins that this plug-in depends on
- is_dependency_of: list of all plug-in that depends on this plug-in

This backend is capable of enabling/disabling the plugi-ns using the
API /config/plugins/*name*/enable|disable. Please check the commit
messages of each patch for further details.


MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit


Daniel Henrique Barboza (2):
  /config/plugins API: backend changes
  /config/plugins: changing existing UI calls

 docs/API/config.md         |  32 +++++++
 docs/API/plugins.md        |  13 ---
 src/wok/config.py.in       |   5 +-
 src/wok/control/config.py  |  31 ++++++-
 src/wok/control/plugins.py |  29 ------
 src/wok/i18n.py            |   4 +
 src/wok/model/plugins.py   |  40 ++++++--
 src/wok/server.py          |  56 ++---------
 src/wok/utils.py           | 227 +++++++++++++++++++++++++++++++++++++++++++--
 tests/test_api.py          |  59 ++++++++++++
 tests/test_utils.py        |  75 ++++++++++++++-
 ui/js/src/wok.api.js       |   4 +-
 ui/js/src/wok.logos.js     |  11 ++-
 ui/js/src/wok.main.js      |  10 +-
 14 files changed, 476 insertions(+), 120 deletions(-)
 delete mode 100644 docs/API/plugins.md
 delete mode 100644 src/wok/control/plugins.py

-- 
2.9.3



More information about the Kimchi-devel mailing list