setup_control.py: fixed gateway issue

This commit is contained in:
Rushabh Mehta 2011-07-13 14:33:51 +05:30
parent a2ee615c94
commit 98eb61e6de

View File

@ -14,7 +14,6 @@ get_value = webnotes.conn.get_value
in_transaction = webnotes.conn.in_transaction
convert_to_lists = webnotes.conn.convert_to_lists
from server_tools.gateway_utils import update_client_control, get_total_users
# -----------------------------------------------------------------------------------------
@ -180,6 +179,8 @@ class DocType:
Validates if setup has been performed after database allocation
"""
from server_tools.gateway_utils import update_client_control, get_total_users
args = eval(args)
#webnotes.logger.error("args in set_account_details of setup_control: " + str(args))
@ -195,7 +196,6 @@ class DocType:
#webnotes.logger.error("setup_control.is_setup_okay: Passed Values:" + args['account_name'] + " " + args['user'] + " " + str(args['total_users']))
if (cp_defaults==args['account_name']) and user_profile and \
(total_users==cint(args['total_users'])):
return 'True'