Debugging...

This commit is contained in:
Scott Idem
2023-01-30 17:00:16 -05:00
parent 40d8f14197
commit 4c3bab739a
2 changed files with 3 additions and 1 deletions

View File

@@ -249,6 +249,7 @@ def update_person_kiss(
account_id = account_id, account_id = account_id,
user_dict_obj = person_obj.user, user_dict_obj = person_obj.user,
person_id = person_id, person_id = person_id,
set_default_password = False,
allow_update = True, # WARNING NOTE: This will allow an existing user record to be updated. allow_update = True, # WARNING NOTE: This will allow an existing user record to be updated.
): pass # NOTE: There is a trigger that will update the person record with the new user ID. ): pass # NOTE: There is a trigger that will update the person record with the new user ID.
else: return False else: return False

View File

@@ -34,7 +34,7 @@ def create_user_obj(
fail_any: bool = True, # Fail if any thing goes wrong for sub objects fail_any: bool = True, # Fail if any thing goes wrong for sub objects
return_dict: bool = False, return_dict: bool = False,
) -> bool|dict|int: ) -> bool|dict|int:
log.setLevel(logging.INFO) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL log.setLevel(logging.DEBUG) # DEBUG, INFO, WARNING, ERROR, EXCEPTION, CRITICAL
log.debug(locals()) log.debug(locals())
# ### SECTION ### Secondary data validation # ### SECTION ### Secondary data validation
@@ -181,6 +181,7 @@ def update_user_obj(
user_id: int|str, # Ideally the int ID should be passed. This allows for updating of the id_random value. user_id: int|str, # Ideally the int ID should be passed. This allows for updating of the id_random value.
user_dict_obj: User_Base, user_dict_obj: User_Base,
person_id: int = None, # This should be required in the future? person_id: int = None, # This should be required in the future?
set_default_password: bool = True,
create_sub_obj: bool = False, create_sub_obj: bool = False,
fail_any: bool = True, # Fail if any thing goes wrong for sub objects fail_any: bool = True, # Fail if any thing goes wrong for sub objects
return_dict: bool = False, return_dict: bool = False,