Feat: Founding Partner login with autocreation of User, User Role Link, Company, User Company Link as necessary and autologin with new user - for approved Founding Partners only, otherwise redirected to login page.
This commit is contained in:
@@ -85,7 +85,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return dogs, errors
|
||||
|
||||
@@ -138,7 +140,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return command_categories, commands, errors
|
||||
|
||||
@@ -161,7 +165,7 @@ class DataStore_Dog(DataStore_Base):
|
||||
|
||||
cls.upload_bulk(Command_Category_Temp.__tablename__, rows, 1000)
|
||||
|
||||
Helper_App.console_log('Commands uploaded')
|
||||
Helper_App.console_log('Command Categories uploaded')
|
||||
|
||||
argument_dict_list = {
|
||||
'a_comment': comment,
|
||||
@@ -171,7 +175,7 @@ class DataStore_Dog(DataStore_Base):
|
||||
}
|
||||
result = cls.db_procedure_execute('p_dog_save_command_category', argument_dict_list)
|
||||
|
||||
Helper_App.console_log('Commands saved')
|
||||
Helper_App.console_log('Command Categories saved')
|
||||
|
||||
# Errors
|
||||
cursor = result.cursor
|
||||
@@ -183,7 +187,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
return errors
|
||||
|
||||
@classmethod
|
||||
@@ -227,7 +233,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
return errors
|
||||
|
||||
|
||||
@@ -265,7 +273,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return dog_command_links, errors
|
||||
|
||||
@@ -310,7 +320,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
return errors
|
||||
|
||||
|
||||
@@ -347,7 +359,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return button_shapes, errors
|
||||
|
||||
@@ -385,7 +399,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return colours, errors
|
||||
|
||||
@@ -423,7 +439,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return locations, errors
|
||||
|
||||
@@ -471,7 +489,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return [] # errors
|
||||
|
||||
@@ -509,7 +529,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return button_icons, errors
|
||||
|
||||
@@ -557,7 +579,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return errors
|
||||
|
||||
@@ -596,7 +620,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return command_button_links, errors
|
||||
|
||||
@@ -641,7 +667,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
return errors
|
||||
|
||||
|
||||
@@ -678,7 +706,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return assessments, errors
|
||||
|
||||
@@ -726,7 +756,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return errors
|
||||
|
||||
@@ -764,7 +796,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return weathers, errors
|
||||
|
||||
@@ -802,7 +836,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return lighting_levels, errors
|
||||
|
||||
@@ -840,7 +876,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return distraction_types, errors
|
||||
|
||||
@@ -878,7 +916,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return distraction_intensity_levels, errors
|
||||
|
||||
@@ -917,7 +957,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return distractions, errors
|
||||
|
||||
@@ -965,7 +1007,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return errors
|
||||
|
||||
@@ -1003,7 +1047,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return command_modalities, errors
|
||||
|
||||
@@ -1041,7 +1087,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return bribes, errors
|
||||
|
||||
@@ -1079,7 +1127,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return assessment_command_modality_links, errors
|
||||
|
||||
@@ -1127,7 +1177,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return errors
|
||||
|
||||
@@ -1165,7 +1217,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return command_modalities, errors
|
||||
|
||||
@@ -1203,7 +1257,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return command_modalities, errors
|
||||
|
||||
@@ -1241,7 +1297,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return assessment_responses, errors
|
||||
|
||||
@@ -1289,7 +1347,9 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return errors
|
||||
|
||||
@@ -1362,6 +1422,8 @@ class DataStore_Dog(DataStore_Base):
|
||||
for error in errors:
|
||||
Helper_App.console_log(f"Error [{error.code}]: {error.msg}")
|
||||
|
||||
cls.db_cursor_clear(cursor)
|
||||
# cls.db_cursor_clear(cursor)
|
||||
while cursor.nextset():
|
||||
Helper_App.console_log(f'unexpected result set: {cursor.fetchall()}')
|
||||
|
||||
return errors
|
||||
|
||||
Reference in New Issue
Block a user