Author: justi9
Date: 2009-09-14 15:56:20 -0400 (Mon, 14 Sep 2009)
New Revision: 3627
Modified:
mgmt/trunk/cumin/python/cumin/main.py
Log:
Keep a list of the registered modules
Modified: mgmt/trunk/cumin/python/cumin/main.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/main.py 2009-09-14 19:55:23 UTC (rev 3626)
+++ mgmt/trunk/cumin/python/cumin/main.py 2009-09-14 19:56:20 UTC (rev 3627)
@@ -41,6 +41,8 @@
if self.config.debug:
self.enable_debug()
+ self.modules = list()
+
self.home = self.config.home
self.add_resource_dir(os.path.join(self.home, "resources-wooly"))
@@ -90,14 +92,13 @@
self.model.check()
def init(self):
- modules = list()
- modules.append(account.module)
- modules.append(messaging.module)
- modules.append(grid.module)
- modules.append(inventory.module)
- modules.append(usergrid.module)
+ self.modules.append(account.module)
+ self.modules.append(messaging.module)
+ self.modules.append(grid.module)
+ self.modules.append(inventory.module)
+ self.modules.append(usergrid.module)
- for module in modules:
+ for module in self.modules:
module.init(self)
self.model.init()
Show replies by date