setup_control.py: fixed gateway issue
This commit is contained in:
parent
a2ee615c94
commit
98eb61e6de
@ -14,7 +14,6 @@ get_value = webnotes.conn.get_value
|
|||||||
in_transaction = webnotes.conn.in_transaction
|
in_transaction = webnotes.conn.in_transaction
|
||||||
convert_to_lists = webnotes.conn.convert_to_lists
|
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
|
Validates if setup has been performed after database allocation
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from server_tools.gateway_utils import update_client_control, get_total_users
|
||||||
|
|
||||||
args = eval(args)
|
args = eval(args)
|
||||||
#webnotes.logger.error("args in set_account_details of setup_control: " + str(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']))
|
#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 \
|
if (cp_defaults==args['account_name']) and user_profile and \
|
||||||
(total_users==cint(args['total_users'])):
|
(total_users==cint(args['total_users'])):
|
||||||
return 'True'
|
return 'True'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user