Remove set for python2.3
bzr revid: ced-fdc5d88232e3c50110f96fbb8b7ac7e23da1ede8
This commit is contained in:
parent
53b3c87be9
commit
f72ee06ba3
|
@ -60,11 +60,12 @@ class wizard_install_module(wizard.interface):
|
||||||
def watch_dir(self, cr, uid, data, context):
|
def watch_dir(self, cr, uid, data, context):
|
||||||
mod_obj = pooler.get_pool(cr.dbname).get('ir.module.module')
|
mod_obj = pooler.get_pool(cr.dbname).get('ir.module.module')
|
||||||
all_mods = mod_obj.read(cr, uid, mod_obj.search(cr, uid, []), ['name', 'state'])
|
all_mods = mod_obj.read(cr, uid, mod_obj.search(cr, uid, []), ['name', 'state'])
|
||||||
known_modules = set([x['name'] for x in all_mods])
|
known_modules = [x['name'] for x in all_mods]
|
||||||
ls_ad = glob.glob(os.path.join(tools.config['addons_path'], '*', '__terp__.py'))
|
ls_ad = glob.glob(os.path.join(tools.config['addons_path'], '*', '__terp__.py'))
|
||||||
modules = set([module_name_re.match(name).group(1) for name in ls_ad])
|
modules = [module_name_re.match(name).group(1) for name in ls_ad]
|
||||||
new_modules = modules - known_modules
|
for module in modules:
|
||||||
for module in new_modules:
|
if module in known_modules:
|
||||||
|
continue
|
||||||
terp = get_module_info(module)
|
terp = get_module_info(module)
|
||||||
if not terp.get('installable', True):
|
if not terp.get('installable', True):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue