2013-08-05 09:29:54 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
2013-04-03 09:51:44 +00:00
|
|
|
import webnotes, json
|
|
|
|
import webnotes.utils
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
modules = webnotes.get_config().modules
|
|
|
|
|
|
|
|
ml = json.loads(webnotes.conn.get_global("modules_list") or "[]")
|
|
|
|
|
2013-04-10 14:03:57 +00:00
|
|
|
if ml:
|
|
|
|
webnotes.conn.set_global("hidden_modules",
|
|
|
|
json.dumps(list(set(modules.keys()).difference(set(ml)))))
|
2013-04-03 09:51:44 +00:00
|
|
|
|