[Kimchi-devel] [PATCH 00/15 V2] Reorganize controller module

Aline Manera alinefm at linux.vnet.ibm.com
Thu Dec 26 21:48:48 UTC 2013


From: Aline Manera <alinefm at br.ibm.com>

V1 -> V2:
- Remove 'instance' parameter from generate_action_handler()
- Update Makefile and spec files
- Remove controller content when it is moved to new files
- Update authors in new files
- Fix identation error while using pep8 1.4
- Other minor fixes

Aline Manera (15):
  Move generate_action_handler() function to Resource() class
  Move common functions for Resource and Collection to control/utils.py
  Move login() and logout() functions from controller.py to root.py
  Move basic controller resources to control/base.py
  Move all resources related to vms to control/vms.py
  Move all resources related to templates to control/templates.py
  Move all resources related to debug reports to
    control/debugreports.py
  Move all resources related to storage pools to
    control/storagepools.py
  Move all resources related to storage volume to
    control/storagevolumes.py
  Move all resources related to interfaces to control/interfaces.py
  Move all resources related to networks to control/networks.py
  Move all resources related to config to control/config.py
  Move all resources related to host to control/host.py
  Move all resources related to plugins to control/plugins.py
  Move all resources related to tasks to control/tasks.py

 Makefile.am                          |    1 +
 configure.ac                         |    1 +
 contrib/kimchi.spec.fedora.in        |    1 +
 contrib/kimchi.spec.suse.in          |    1 +
 plugins/sample/__init__.py           |    2 +-
 src/kimchi/Makefile.am               |    3 +-
 src/kimchi/control/Makefile.am       |   28 ++
 src/kimchi/control/__init__.py       |   21 +
 src/kimchi/control/base.py           |  292 +++++++++++++
 src/kimchi/control/config.py         |   69 ++++
 src/kimchi/control/debugreports.py   |   52 +++
 src/kimchi/control/host.py           |   63 +++
 src/kimchi/control/interfaces.py     |   45 ++
 src/kimchi/control/networks.py       |   48 +++
 src/kimchi/control/plugins.py        |   45 ++
 src/kimchi/control/storagepools.py   |  127 ++++++
 src/kimchi/control/storagevolumes.py |   81 ++++
 src/kimchi/control/tasks.py          |   41 ++
 src/kimchi/control/templates.py      |   52 +++
 src/kimchi/control/utils.py          |  105 +++++
 src/kimchi/control/vms.py            |   65 +++
 src/kimchi/controller.py             |  755 ----------------------------------
 src/kimchi/root.py                   |   62 ++-
 tests/test_mockmodel.py              |    6 +-
 24 files changed, 1191 insertions(+), 775 deletions(-)
 create mode 100644 src/kimchi/control/Makefile.am
 create mode 100644 src/kimchi/control/__init__.py
 create mode 100644 src/kimchi/control/base.py
 create mode 100644 src/kimchi/control/config.py
 create mode 100644 src/kimchi/control/debugreports.py
 create mode 100644 src/kimchi/control/host.py
 create mode 100644 src/kimchi/control/interfaces.py
 create mode 100644 src/kimchi/control/networks.py
 create mode 100644 src/kimchi/control/plugins.py
 create mode 100644 src/kimchi/control/storagepools.py
 create mode 100644 src/kimchi/control/storagevolumes.py
 create mode 100644 src/kimchi/control/tasks.py
 create mode 100644 src/kimchi/control/templates.py
 create mode 100644 src/kimchi/control/utils.py
 create mode 100644 src/kimchi/control/vms.py
 delete mode 100644 src/kimchi/controller.py

-- 
1.7.10.4




More information about the Kimchi-devel mailing list