From 064afab85ea8ce7df11ad0e4b92eab8b431c90e3 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Thu, 27 Sep 2007 13:47:50 -0400 Subject: move logger and config_data to func/func update modules that need new location modules/func_module.py: update to use new logger/config locations, also go ahead and register as a real module, to shut up the start up. It shouldn't hurt anything Some minor import reordering at a couple places (I try to keep at least system import alphabetical) --- modules/func_module.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/func_module.py b/modules/func_module.py index 83eb6fc..ae8bb11 100755 --- a/modules/func_module.py +++ b/modules/func_module.py @@ -13,8 +13,8 @@ ## -from func.minion import config_data -from func.minion import logger +from func import config_data +from func import logger class FuncModule(object): @@ -49,6 +49,9 @@ class FuncModule(object): for meth in self.methods: handlers["%s.%s" % (module_name,meth)] = self.methods[meth] +# def list_methods(self): +# return self.methods.keys() + self.__base_methods.keys() + def __module_version(self): return self.version @@ -58,3 +61,6 @@ class FuncModule(object): def __module_description(self): return self.description + +methods = FuncModule() +register_rpc = methods.register_rpc -- cgit