Comparison

core/configmanager.lua @ 1504:9d8c35e98ca2

configmanager, modulemanager: Allow components to have modules specified in the config (but don't load the global set of modules for them)
author Matthew Wild <mwild1@gmail.com>
date Thu, 09 Jul 2009 14:34:49 +0100
parent 1000:a73715a9267f
child 1523:841d61be198f
comparison
equal deleted inserted replaced
1503:5970e06d9335 1504:9d8c35e98ca2
121 env.host = env.Host; 121 env.host = env.Host;
122 122
123 function env.Component(name) 123 function env.Component(name)
124 set(name, "core", "component_module", "component"); 124 set(name, "core", "component_module", "component");
125 -- Don't load the global modules by default 125 -- Don't load the global modules by default
126 set(name, "core", "modules_enable", false); 126 set(name, "core", "load_global_modules", false);
127 rawset(env, "__currenthost", name); 127 rawset(env, "__currenthost", name);
128 128
129 return function (module) 129 return function (module)
130 if type(module) == "string" then 130 if type(module) == "string" then
131 set(name, "core", "component_module", module); 131 set(name, "core", "component_module", module);