2013-11-20 07:29:58 +00:00
|
|
|
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
# 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
|
|
|
|