From 1d973fe0a395338c5d11e95d9606eccee58c220c Mon Sep 17 00:00:00 2001 From: cherif Date: Wed, 15 Nov 2023 12:39:13 +0100 Subject: [PATCH] 15/11/2023 - 12h --- .idea/workspace.xml | 25 +-- GlobalVariable.py | 5 + Log/log_file.log | 501 +++++++++++++++++++++++++++++++++++++++++++ Session_Formation.py | 203 +++++++++++++++++- 4 files changed, 715 insertions(+), 19 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ab78a95..d46dbce 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,10 +1,11 @@ - + + - + @@ -432,7 +433,6 @@ - @@ -457,6 +457,7 @@ - \ No newline at end of file diff --git a/GlobalVariable.py b/GlobalVariable.py index d67e7a6..44e2c0d 100644 --- a/GlobalVariable.py +++ b/GlobalVariable.py @@ -533,3 +533,8 @@ Par defaut il en y a 2 : """ ALLOWED_AGENDA_RELATED_COLLECTION = ['ressource_humaine', 'ressource_materielle'] +""" +Les types de location pour une session (intra ou extra ou autre) +""" +TRAINING_LOCATION_TYPE = ['intra', 'extra', 'autre', ''] + diff --git a/Log/log_file.log b/Log/log_file.log index 7a193c6..b6db709 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1884555,3 +1884555,504 @@ INFO:werkzeug:127.0.0.1 - - [14/Nov/2023 20:30:24] "POST /myclass/api/GetPartner INFO:werkzeug:127.0.0.1 - - [14/Nov/2023 20:30:24] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - INFO:root:2023-11-14 20:30:40.252213 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [14/Nov/2023 20:30:40] "POST /myclass/api/get_Class_From_Internal_Url/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:12:24.269825 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 09:12:24.270853 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 09:12:24.270853 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 09:12:24.270853 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 09:12:24.270853 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 09:12:46.381925 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 09:12:46.381925 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 09:12:46.381925 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 09:12:46.381925 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 09:12:46.381925 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2023-11-15 09:13:25.729637 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:25.733197 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:25.735243 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:25] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:25] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:26] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:26.568372 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:26.571369 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:26] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.047304 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.052961 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.058150 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.062852 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.069338 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.076227 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.081466 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.089791 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.098892 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.106641 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.115938 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.119483 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.125523 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.148709 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.149712 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.152331 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.152331 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.154927 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.156072 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.187430 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.192074 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.193633 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.201722 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.209811 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.218150 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.223857 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.230838 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.235328 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-11-15 09:13:27.245455 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 09:13:27.249118 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 09:13:27] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 11:46:36.279504 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 11:46:36.279504 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 11:46:36.279504 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 11:46:36.279504 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 11:46:36.280594 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2023-11-15 11:46:55.631446 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:46:55] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-11-15 11:46:55.853192 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 11:46:55.857536 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 11:46:55.861949 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 11:46:55.866875 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:46:55] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:46:55] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-11-15 11:46:55.883066 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:46:55] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:46:55] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-11-15 11:46:55.964870 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 11:46:55.967744 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:46:55] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:46:55] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-11-15 11:47:02.798174 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 11:47:02.800204 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 11:47:02.804595 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 11:47:02.807987 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:47:02] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-11-15 11:47:02.813176 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:47:02] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:47:02] "POST /myclass/api/Get_Given_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:47:02] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:47:02] "POST /myclass/api/Get_List_Partner_Order_no_filter/ HTTP/1.1" 200 - +INFO:root:2023-11-15 11:47:05.919295 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 11:47:05.922302 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:47:05] "POST /myclass/api/Get_Given_Partner_Order/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 11:47:05] "POST /myclass/api/Get_Given_Partner_Order_Lines/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 11:48:44.839289 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 11:48:44.840308 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 11:48:44.840308 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 11:48:44.840308 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 11:48:44.840308 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 11:49:07.541529 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 11:49:07.541529 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 11:49:07.541529 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 11:49:07.541529 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 11:49:07.541529 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 11:49:56.612022 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 11:49:56.612022 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 11:49:56.612022 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 11:49:56.612022 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 11:49:56.612022 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 11:50:16.949765 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 11:50:16.949765 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 11:50:16.950761 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 11:50:16.950761 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 11:50:16.950761 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 12:11:03.312855 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 12:11:03.313857 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 12:11:03.313857 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 12:11:03.313857 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 12:11:03.313857 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 12:11:12.304805 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 12:11:12.304805 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 12:11:12.305813 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 12:11:12.305813 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 12:11:12.305813 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 12:12:09.591425 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 12:12:09.591425 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 12:12:09.591425 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 12:12:09.592429 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 12:12:09.592429 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2023-11-15 12:25:24.256377 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:24.261581 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:24.264959 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:24] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:24] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:25:24.302225 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:24] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:25:24.364363 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:24.367093 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:24.370210 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:24] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:25:24.376236 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:24.381231 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:24] "POST /myclass/api/Get_Given_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:24] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:24] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:24] "POST /myclass/api/Get_List_Partner_Order_no_filter/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:25:28.892694 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:28.896578 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:28.900099 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:28.904588 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:28.909594 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:28] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:25:28.918960 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:28.926974 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:28] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:28] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:28] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:28] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:28] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:28] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:25:32.439392 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:32.441962 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:25:32.446381 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:32] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:32] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:25:32] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:26:47.256695 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:26:47.260691 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:26:47.263691 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:26:47.279694 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:26:47] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:26:47.286539 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:26:47.290763 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:26:47.300382 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:26:47] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:26:47] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:26:47] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:26:47] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:26:47] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:26:47] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:28:41.091325 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:41.096347 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:41.101658 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:41.109537 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:41] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:28:41.116533 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:41] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:28:41.123007 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:41.128800 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:41] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:41] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:41] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:41] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:41] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:28:50.056026 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:50.060023 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:28:50.064033 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:28:50.073039 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:28:50.176507 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:50.179520 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:50.184529 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:50.202532 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:50.206517 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:28:50.214090 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:50.220829 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:50] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:28:55.319592 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:55.324581 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:28:55.328050 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:55] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:55] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:28:55] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:31:47.863217 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:47.872581 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:47.876977 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:47.881839 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:47] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:31:47.892438 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:47.899464 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:47] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:31:47.908707 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:47] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:47] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:47] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:47] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:47] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:31:55.795423 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:55.797438 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:55.800930 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:55] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:55] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:31:55.811935 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:55] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:31:55.914428 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:55.917733 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:55.918755 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:55.935741 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:31:55.955628 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:55] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:31:55.968256 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:55] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:55] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:31:55.976263 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:55] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:55] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:55] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:31:56] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:32:00.809531 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:32:00.814541 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:32:00.818926 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:32:00] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:32:00] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:32:00] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:35:41.206448 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:41.213597 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:41.217611 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:41.223145 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:41.224150 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:41] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:35:41.234910 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:41] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:41] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:35:41.246351 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:41] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:41] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:41] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:41] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:35:46.974146 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:46.977194 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:46] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:35:46.982491 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:46.988271 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:46] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:46] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:35:47.094626 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:47.096874 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:47.101027 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:47.122699 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:47] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:35:47.130033 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:47.136323 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:47.139472 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:47] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:47] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:47] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:47] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:47] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:47] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:35:52.191323 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:52.194335 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:35:52.198870 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:52] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:52] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:35:52] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:36:18.282216 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:36:19.834980 : Add_Update_SessionFormation - Le champ 'location_type' est incorrecte. +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:36:19] "POST /myclass/api/Add_Update_SessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-11-15 12:37:41.417692 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-11-15 12:37:41.417692 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-11-15 12:37:41.417692 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-11-15 12:37:41.417692 : ++ FLASK PORT 5001 ++ +INFO:root:2023-11-15 12:37:41.417692 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2023-11-15 12:37:44.993767 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:44.997878 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:44.999872 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:45.011903 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:45.124651 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:45.127970 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:45.132460 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:45.139815 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:45.146125 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:45.151319 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:45.156343 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:45.971999 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:45.973074 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:45.975468 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:45] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:46] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:46] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:46.275129 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:46.276126 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:46] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:47.379848 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:47.380872 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:47.382374 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:47.383394 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:47.385866 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:47.386881 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:47.706738 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:47.708222 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:47.708745 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:47.714784 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:47.722081 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:47.724565 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:47] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:48.031121 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.031121 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.032155 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.034404 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:48.043843 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:48.049840 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:48.354660 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.356678 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:48.364099 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.366178 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.367373 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.368407 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:48.666618 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.669617 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:48.683398 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.685412 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.686436 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:48.688423 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:37:50.171202 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:50.174832 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:37:50.178977 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:50] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:50] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:37:50] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:38:13.483058 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:13] "POST /myclass/api/Add_Update_SessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:38:15.089824 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:15] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:38:19.088913 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:19] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:38:31.528381 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:38:31.530644 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:38:31.534217 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:38:31.549431 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:38:31.655005 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:38:31.658454 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:38:31.662012 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:38:31.667093 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:38:31.672894 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:38:31.676917 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:38:31.681016 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:31] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-11-15 12:38:36.223972 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:38:36.225983 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-11-15 12:38:36.229572 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:36] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:36] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [15/Nov/2023 12:38:36] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - diff --git a/Session_Formation.py b/Session_Formation.py index 540b5b8..338f4bf 100644 --- a/Session_Formation.py +++ b/Session_Formation.py @@ -43,7 +43,8 @@ def Add_Update_SessionFormation(diction): 'code_postal', 'ville', 'formateur', 'code_session', 'class_internal_url', 'session_status', 'date_debut_inscription', 'date_fin_inscription', 'attestation_certif', "distantiel", "presentiel", "prix_session", 'contenu_ftion', 'lms_class_code', - 'session_ondemande', 'source', 'session_id', 'session_etape', 'pays', 'formateur_id'] + 'session_ondemande', 'source', 'session_id', 'session_etape', 'pays', 'formateur_id', + 'titre', 'location_type', 'is_bpf'] incom_keys = diction.keys() for val in incom_keys: @@ -152,6 +153,25 @@ def Add_Update_SessionFormation(diction): if ("prix_session" in diction.keys()): mydata['prix_session'] = diction['prix_session'] + + if ("titre" in diction.keys()): + mydata['titre'] = diction['titre'] + + if ("location_type" in diction.keys()): + mydata['location_type'] = str(diction['location_type']).lower() + if (str(diction['location_type']).lower() not in MYSY_GV.TRAINING_LOCATION_TYPE): + mycommon.myprint(str(inspect.stack()[0][3]) + " - Le champ 'is_bpf' est incorrecte.") + return False, "Le champ 'location_type' est incorrect." + + + if ("is_bpf" in diction.keys()): + if( str(diction['is_bpf']) not in ['0', '1']): + mycommon.myprint(str(inspect.stack()[0][3]) + " - Le champ 'bpf' est incorrect.") + return False, "Le champ 'bpf' est incorrect." + + mydata['is_bpf'] = diction['is_bpf'] + + formateur_id = "" if ("formateur_id" in diction.keys()): formateur_id = diction['formateur_id'] @@ -537,7 +557,7 @@ def GetSessionFormation(diction): user['formateur_nom_prenom'] = formateur_nom_prenom - print(" ### user = ", user) + #print(" ### user = ", user) RetObject.append(mycommon.JSONEncoder().encode(user)) @@ -635,7 +655,7 @@ def GetActiveSessionFormation_List(diction): - print("#### GetActiveSessionFormation_List RetObject = "+str(RetObject)) + #print("#### GetActiveSessionFormation_List RetObject = "+str(RetObject)) return True, RetObject @@ -859,7 +879,7 @@ def GetAllValideSessionPartner_List(diction): } } ] - print("#### query = ", query) + #print("#### query = ", query) RetObject = [] cpt = 1 for retVal in MYSY_GV.dbname['session_formation'].aggregate(query): @@ -876,12 +896,29 @@ def GetAllValideSessionPartner_List(diction): else: val['session_etape'] = "0" - if( "session_status" in retVal.keys()): + if( "titre" in retVal.keys()): + val['titre'] = retVal['titre'] + else: + val['titre'] = "" + + if ("location_type" in retVal.keys()): + val['location_type'] = retVal['location_type'] + else: + val['location_type'] = "" + + if ("is_bpf" in retVal.keys()): + val['is_bpf'] = retVal['is_bpf'] + else: + val['is_bpf'] = "" + + + if ("session_status" in retVal.keys()): val['session_status'] = retVal['session_status'] else: val['session_status'] = "0" + val['date_debut'] = retVal['date_debut'][0:10] val['date_fin'] = retVal['date_fin'][0:10] val['date_debut_inscription'] = retVal['date_debut_inscription'][0:10] @@ -1062,6 +1099,23 @@ def GetAllValideSessionPartner_List_filter_like(diction): val['_id'] = retVal['_id'] val['class_internal_url'] = retVal['class_internal_url'] val['code_session'] = retVal['code_session'] + + if ("titre" in retVal.keys()): + val['titre'] = retVal['titre'] + else: + val['titre'] = "" + + if ("location_type" in retVal.keys()): + val['location_type'] = retVal['location_type'] + else: + val['location_type'] = "" + + if ("is_bpf" in retVal.keys()): + val['is_bpf'] = retVal['is_bpf'] + else: + val['is_bpf'] = "" + + if( "session_etape" in retVal.keys()): val['session_etape'] = retVal['session_etape'] else: @@ -1258,6 +1312,23 @@ def GetAllValideSessionPartner_List_no_filter(diction): val['_id'] = retVal['_id'] val['class_internal_url'] = retVal['class_internal_url'] val['code_session'] = retVal['code_session'] + + if ("titre" in retVal.keys()): + val['titre'] = retVal['titre'] + else: + val['titre'] = "" + + if ("location_type" in retVal.keys()): + val['location_type'] = retVal['location_type'] + else: + val['location_type'] = "" + + if ("is_bpf" in retVal.keys()): + val['is_bpf'] = retVal['is_bpf'] + else: + val['is_bpf'] = "" + + if( "session_etape" in retVal.keys()): val['session_etape'] = retVal['session_etape'] else: @@ -1458,7 +1529,7 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None): field_list = ['date_debut', 'date_fin', 'nb_participant', 'adresse', 'code_postal', 'ville', 'pays', 'session_status', 'date_debut_inscription', 'date_fin_inscription', 'attestation', 'formateur', 'code_session', "distanciel", "presentiel", "prix_session", 'contenu_ftion', 'lms_class_code', - 'session_ondemande', 'session_etape', 'formation_code_externe'] + 'session_ondemande', 'session_etape', 'formation_code_externe', 'formateur_email', 'titre', 'location_type', 'is_bpf'] # Controle du nombre de lignes dans le fichier. total_rows = len(df) @@ -1920,7 +1991,7 @@ def Controle_Add_Update_SessionFormation_mass(saved_file=None, Folder=None, dict field_list = ['date_debut', 'date_fin', 'nb_participant', 'adresse', 'code_postal', 'ville', 'pays', 'session_status', 'date_debut_inscription', 'date_fin_inscription', 'attestation', 'formateur', 'code_session', "distanciel", "presentiel", "prix_session", 'contenu_ftion', 'lms_class_code', - 'session_ondemande', 'session_etape', 'formation_code_externe'] + 'session_ondemande', 'session_etape', 'formation_code_externe','formateur_email', 'titre', 'location_type', 'is_bpf'] # Controle du nombre de lignes dans le fichier. total_rows = len(df) @@ -2034,6 +2105,64 @@ def Controle_Add_Update_SessionFormation_mass(saved_file=None, Folder=None, dict return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str( n + 1) + ". La date fin n'est pas au format jj/mm/aaaa " + # Verifier que l'adresse email du formateur est valide + formateur_email = "" + formateur_id = "" + if ("formateur_email" in df.keys()): + if (str(df['formateur_email'].values[n])): + + formateur_email = str(df['formateur_email'].values[n]).strip() + if (mycommon.isEmailValide(formateur_email) is False): + mycommon.myprint(str( + inspect.stack()[0][3]) + " - L'email du formateur '" + str( + formateur_email) + "' pour la formation à la ligne " + str( + n + 2) + " n'est pas valide.") + return False, " L'email du formateur '" + str( + formateur_email) + "' pour la formation à la ligne " + str( + n + 2) + " n'est pas valide." + + is_formateur_email_ok = MYSY_GV.dbname['ressource_humaine'].count_documents( + {'email': formateur_email, + 'valide': '1', + 'locked': '0', + 'partner_recid': str( + partner_recid)}) + if (is_formateur_email_ok <= 0): + mycommon.myprint(str( + inspect.stack()[0][3]) + " - L'email du formateur '" + str( + formateur_email) + "' pour la formation à la ligne " + str( + n + 2) + " n'est pas valide (2).") + return False, " L'email du formateur '" + str( + formateur_email) + "' pour la formation à la ligne " + str( + n + 2) + " n'est pas valide (2)." + + formateur_data = MYSY_GV.dbname['ressource_humaine'].find_one({'email': formateur_email, + 'valide': '1', + 'locked': '0', + 'partner_recid': str( + partner_recid)}) + + formateur_id = str(formateur_data['_id']) + + mydata['formateur_id'] = formateur_id + + if ("titre" in df.keys()): + mydata['titre'] = str(df['titre'].values[n]).strip() + + if ("location_type" in df.keys()): + mydata['location_type'] = str(df['location_type'].values[n]).strip().lower() + if (str(df['location_type'].values[n]).strip().lower() not in MYSY_GV.TRAINING_LOCATION_TYPE): + mycommon.myprint(str(inspect.stack()[0][3]) + " - Le champ 'location_type' est incorrecte.") + return False, "Le champ 'location_type' est incorrect." + + if ("is_bpf" in df.keys()): + if (str(df['is_bpf'].values[n]).strip() not in ['0', '1']): + mycommon.myprint(str(inspect.stack()[0][3]) + " - Le champ 'bpf' est incorrect.") + return False, "Le champ 'bpf' est incorrect." + + mydata['is_bpf'] = diction['is_bpf'] + + ## Verification de la cohérence des dates. Date_du doit <= Date_au if (datetime.strptime(str(mydata['date_debut']).strip(), '%d/%m/%Y') > datetime.strptime( str(mydata['date_fin']).strip(), '%d/%m/%Y')): @@ -2446,6 +2575,66 @@ def Add_Update_SessionFormation_mass_for_many_class(file=None, Folder=None, dict return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str( n + 1) + ". La date fin n'est pas au format jj/mm/aaaa " + # Verifier que l'adresse email du formateur est valide + formateur_email = "" + formateur_id = "" + if ("formateur_email" in df.keys()): + if (str(df['formateur_email'].values[n])): + + formateur_email = str(df['formateur_email'].values[n]).strip() + if (mycommon.isEmailValide(formateur_email) is False): + mycommon.myprint(str( + inspect.stack()[0][3]) + " - L'email du formateur '" + str( + formateur_email) + "' pour la formation à la ligne " + str( + n + 2) + " n'est pas valide.") + return False, " L'email du formateur '" + str( + formateur_email) + "' pour la formation à la ligne " + str( + n + 2) + " n'est pas valide." + + is_formateur_email_ok = MYSY_GV.dbname['ressource_humaine'].count_documents( + {'email': formateur_email, + 'valide': '1', + 'locked': '0', + 'partner_recid': str( + partner_recid)}) + if (is_formateur_email_ok <= 0): + mycommon.myprint(str( + inspect.stack()[0][3]) + " - L'email du formateur '" + str( + formateur_email) + "' pour la formation à la ligne " + str( + n + 2) + " n'est pas valide (2).") + return False, " L'email du formateur '" + str( + formateur_email) + "' pour la formation à la ligne " + str( + n + 2) + " n'est pas valide (2)." + + formateur_data = MYSY_GV.dbname['ressource_humaine'].find_one({'email': formateur_email, + 'valide': '1', + 'locked': '0', + 'partner_recid': str( + partner_recid)}) + + formateur_id = str(formateur_data['_id']) + + mydata['formateur_id'] = formateur_id + + if ("titre" in df.keys()): + mydata['titre'] = str(df['titre'].values[n]).strip() + + if ("location_type" in df.keys()): + mydata['location_type'] = str(df['location_type'].values[n]).strip().lower() + if (str(df['location_type'].values[n]).strip().lower() not in MYSY_GV.TRAINING_LOCATION_TYPE): + mycommon.myprint(str(inspect.stack()[0][3]) + " - Le champ 'location_type' est incorrecte.") + return False, "Le champ 'location_type' est incorrect." + + if ("is_bpf" in df.keys()): + if (str(df['is_bpf'].values[n]).strip() not in ['0', '1']): + mycommon.myprint(str(inspect.stack()[0][3]) + " - Le champ 'bpf' est incorrect.") + return False, "Le champ 'bpf' est incorrect." + + mydata['is_bpf'] = diction['is_bpf'] + + + + ## Verification de la cohérence des dates. Date_du doit <= Date_au if (datetime.strptime(str(mydata['date_debut']).strip(), '%d/%m/%Y') > datetime.strptime( str(mydata['date_fin']).strip(), '%d/%m/%Y')):