Delete missing modules not activated when updating module list

issue6472
review42271002
This commit is contained in:
Sergi Almacellas Abellana
2017-06-13 09:55:44 +02:00
parent bd965457e7
commit ae5fcfe03b
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1,3 +1,4 @@
* Delete missing modules not activated when updating module list
* Remove empty pages from notebook
* Allow to store Dict as JSON on the database
+2
View File
@@ -285,6 +285,8 @@ class Module(ModelSQL, ModelView):
modules = cls.search([])
name2module = dict((m.name, m) for m in modules)
cls.delete([m for m in modules
if m.state != 'activated' and m.name not in module_names])
# iterate through activated modules and mark them as being so
for name in module_names: