[Kimchi-devel] [PATCH V3 0/4] improve controller
shaohef at linux.vnet.ibm.com
shaohef at linux.vnet.ibm.com
Wed Jan 22 16:51:53 UTC 2014
From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
V2 -> V3
use the CapWords convention to name class name.
add the import statement in alphabetical order
use __import__ to import the moudle instead of imp.load_module
imp.load_module does more than importing the module:
if the module was already imported, it is equivalent to a reload()!
we can use the imp.load_module as follow:
try:
module = sys.modules[module_name]
except KeyError:
mod_fobj, mod_absp, mod_desc = imp.find_module(mod_name, [path])
module = imp.load_module(module_name, mod_fobj, mod_absp, mod_desc)
V1 -> V2
fix typo.
remove print
use url_auth instead of _url_sub_node_auth
improve the commit description
add a method to load root sub collections/resouces automatically
ShaoHe Feng (4):
improve controller: add a method to load root sub collections/resouces
automatically
improve controller: tag the collections/resouces of root with
@UrlSubNode
improve controller: Root loads collections/resouces automatically
improve controller: set authentication automatically
src/kimchi/control/__init__.py | 8 ++++++++
src/kimchi/control/config.py | 2 ++
src/kimchi/control/debugreports.py | 2 ++
src/kimchi/control/host.py | 2 ++
src/kimchi/control/interfaces.py | 2 ++
src/kimchi/control/networks.py | 2 ++
src/kimchi/control/plugins.py | 2 ++
src/kimchi/control/storagepools.py | 2 ++
src/kimchi/control/tasks.py | 2 ++
src/kimchi/control/templates.py | 2 ++
src/kimchi/control/vms.py | 2 ++
src/kimchi/root.py | 26 +++++---------------------
src/kimchi/server.py | 12 +++++-------
src/kimchi/utils.py | 38 ++++++++++++++++++++++++++++++++++++++
14 files changed, 76 insertions(+), 28 deletions(-)
--
1.8.4.2
More information about the Kimchi-devel
mailing list