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-10 14:03:57 +00:00
|
|
|
import webnotes, json
|
|
|
|
import webnotes.utils
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
modules = webnotes.get_config().modules
|
|
|
|
|
2013-04-11 04:06:20 +00:00
|
|
|
ml = json.loads(webnotes.conn.get_global("hidden_modules") or "[]")
|
2013-04-10 14:03:57 +00:00
|
|
|
|
|
|
|
if len(ml) == len(modules.keys()):
|
|
|
|
webnotes.conn.set_global("hidden_modules", json.dumps([]))
|