13 lines
401 B
Python
13 lines
401 B
Python
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
import webnotes, json
|
|
import webnotes.utils
|
|
|
|
def execute():
|
|
modules = webnotes.get_config().modules
|
|
|
|
ml = json.loads(webnotes.conn.get_global("hidden_modules") or "[]")
|
|
|
|
if len(ml) == len(modules.keys()):
|
|
webnotes.conn.set_global("hidden_modules", json.dumps([])) |