From 4bbe36b428f63740780a796d098acddac527113f Mon Sep 17 00:00:00 2001 From: cherif Date: Fri, 23 Feb 2024 15:28:01 +0100 Subject: [PATCH] ddr --- .idea/workspace.xml | 28 +- Log/log_file.log | 1259 +++++++++++++++++++++++++++++++++++++++ Session_Formation.py | 868 ++++++++++++++++++++++++++- main.py | 25 +- partner_document_mgt.py | 52 +- partner_invoice.py | 2 +- prj_common.py | 2 + 7 files changed, 2203 insertions(+), 33 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 90b1461..74bf965 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,12 +1,14 @@ - + + - + + @@ -434,8 +436,6 @@ - - @@ -459,6 +459,8 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index 9d9da2e..c4adfa0 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -2097275,3 +2097275,1262 @@ DEBUG:xhtml2pdf:Col 3 has width 20.3259% DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] DEBUG:xhtml2pdf:Col widths: [None] INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 13:53:54] "GET /myclass/api/GerneratePDF_Partner_Order/5DlY3DPRV_sSEtZZ39057IyKMUGMvixsGA/65b388072f89e592bf0e4bbc HTTP/1.1" 200 - +INFO:root:2024-02-18 16:07:31.459839 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-18 16:07:31.460836 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-18 16:07:31.460836 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-18 16:07:31.460836 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-18 16:07:31.461822 : ++ 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:2024-02-18 16:07:50.961066 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-18 16:07:50.961066 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-18 16:07:50.961066 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-18 16:07:50.961066 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-18 16:07:50.961066 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-18 16:08:36.626201 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:36.628199 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:36.630669 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:36] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:36] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:36] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:37.097029 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:37.099288 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:37] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:37.311892 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:37.313900 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:37.318912 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:37] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:37] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:37] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:37.642907 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:37.645910 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:37] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.130533 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.135531 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.143066 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.146063 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.154871 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.161871 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.169958 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.173079 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.182084 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.186477 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.191655 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.201283 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.210185 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.214713 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.223840 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.227939 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.236569 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.241535 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.246802 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.254919 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.261466 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.269131 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.274454 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.276950 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.285523 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.291909 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.299446 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.305785 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.311065 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.318489 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.781905 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.783906 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.784900 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.791954 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:38.794957 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:38.803952 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.106927 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:39.109333 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:39.113749 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.117185 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.125796 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.132184 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.436277 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:39.440277 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:39.442276 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.452277 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:39.455277 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:39.459320 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.759018 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:39.761073 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.766504 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.772890 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.778334 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:39.782923 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:39] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:40.086849 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:40.088852 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:40.089867 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:40.096541 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:40] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:40] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:40.105764 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:40.107897 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:40] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:40] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:43.342831 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:43] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:43.606441 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:43.613686 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:43.619764 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:43.621840 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:43] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:43.642100 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:43] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:43] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:43] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:43.758183 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:43.761903 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:43] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:43] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:58.665105 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:58.671743 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:58.678749 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:58] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:08:58.689555 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:08:58.694853 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:58] "POST /myclass/api/Get_Given_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:58] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:58] "POST /myclass/api/Get_List_Partner_Order_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:08:58] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:09:02.901071 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:09:02.904596 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:09:02] "POST /myclass/api/Get_Given_Partner_Order/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:09:02] "POST /myclass/api/Get_Given_Partner_Order_Lines/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:09:16.225264 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '

 

\n\n\n\n\n\n\n\n\n\n
\n

--- LOGO ---

\n
\n

Devis n° Devis_6

\n


invoice_adresse
invoice_code_postal
invoice_ville

\n

 

\n

 

\n

Devis n° Devis_6
Date Devis : 08/02/2024
 

\n

 Expiration : 08/05/2024
 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtéPrix Unit.Montant
PRATICIEN EN AROMATHERAPIE INTEGRATIVE316504950.0
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Total Remise( 0 )
 Total HT4950.0 €
 TVATVA 5% €
 Total5940.0 €
\n

 

\n
\n

 

\n

 

\n

 

\n

Date Jour

\n

 

\n

 

\n

 

' + dest = <_io.BufferedRandom name='./temp_direct/Partner_Order_Devis_6.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col 2 has width 20.3259% +DEBUG:xhtml2pdf:Col 3 has width 20.3259% +DEBUG:xhtml2pdf:Col widths: [None, None, '20.3259%', '20.3259%'] +DEBUG:xhtml2pdf:Col widths: [None] +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:09:16] "GET /myclass/api/GerneratePDF_Partner_Order/ncOEiVnBf-Zybg_iQgeYinvbjZqnSt_Vkg/65c52fc55acf49e3abb0f3e3 HTTP/1.1" 200 - +INFO:root:2024-02-18 16:09:47.415407 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:09:47.421579 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:09:47] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:09:47] "POST /myclass/api/Get_List_Partner_Invoice_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:09:52.399465 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:09:52.404503 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:09:52] "POST /myclass/api/Get_Given_Partner_Invoice/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:09:52] "POST /myclass/api/Get_Given_Partner_Invoice_Lines/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:10:08.082668 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '

\n

 

\n

 

\n

Votre Facture n° Invoice_14 

\n

client_test01 
invoice_adresse 
invoice_code_postal  - invoice_ville
invoice_pays

\n

 

\n

\n

Vous n\'avez pas de réduction sur cette facture.

\n

 

\n

Rappel Commande  n° Order_63 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtyPrix
PRATICIEN EN AROMATHERAPIE INTEGRATIVE31650
Introduction à la gestion des bases de données - SQL24600
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Totaux
  Montant Remise( 0 )
 Total HT14150.0 €
 TVATVA 5% €
 Total16980.0 €
\n

 

\n

Condition de reglement :  

\n

 

\n

 

\n

 

\n

Cordialement

client_test01 
Téléphone : +331 77 00 38 57
Email : contact@mysy-training.com
Site : https://www.mysy-training.com/

\n

18/02/2024, 16:10:08  

' + dest = <_io.BufferedRandom name='./temp_direct/Partner_Invoice_Invoice_14.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 100.0, 'height': 51.0, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:10:08] "GET /myclass/api/GerneratePDF_Partner_Invoice/ncOEiVnBf-Zybg_iQgeYinvbjZqnSt_Vkg/65c0be215f50ab7e3d6088cb HTTP/1.1" 200 - +INFO:root:2024-02-18 16:10:57.110872 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:10:57.115882 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:10:57.126844 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:10:57] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:10:57] "POST /myclass/api/getRecodedParnterImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:31.338456 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:31] "POST /myclass/api/update_partner_account/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:31.968243 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:31] "POST /myclass/api/getRecodedParnterImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:43.216506 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:43.221447 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:43.228013 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:43] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:43.240706 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:43] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:43] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:43.443781 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:43.459781 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:43.465797 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:43] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:43] "POST /myclass/api/getRecodedParnterImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:50.917310 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:50] "POST /myclass/api/Get_Connected_User_List_Dashbord/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:51.035471 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:51.047167 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:51.055310 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:51.066574 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:51.075254 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:51.091657 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:51] "POST /myclass/api/Get_Humain_Ressource_With_Planning/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:51] "POST /myclass/api/Get_Qery_Session_Repartition_Session_By_Trainer_By_Periode/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:51] "POST /myclass/api/Get_Humain_Ressource_With_Planning_And_Cost/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:51] "POST /myclass/api/Get_Qery_Formation_By_Session_By_Periode/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:51] "POST /myclass/api/Get_Qery_List_Session_Data/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:51.322360 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:51.330990 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:51] "POST /myclass/api/Get_Qery_Inscription_By_Session_By_Periode/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:51.343512 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:51] "POST /myclass/api/Get_Humain_Ressource_With_Planning/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:51] "POST /myclass/api/Get_Humain_Ressource_With_Planning_And_Cost/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:51] "POST /myclass/api/Get_Qery_Inscription_By_Session_By_Periode/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:11:52.779318 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:52.783317 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:11:52.792131 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:52] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:11:52] "POST /myclass/api/getRecodedParnterImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:36.539900 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:36.547277 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:36] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:36] "POST /myclass/api/Get_List_Partner_Invoice_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:55.675215 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:55.676381 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:55] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:55.685560 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:55] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:55] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.232524 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.234544 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.682355 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.689568 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.696230 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.701226 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.711428 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.720389 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.731060 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.743421 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.762209 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.782986 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.792713 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.803597 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.812518 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.821511 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.835553 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.846428 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.855415 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.863419 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.877673 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.886315 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.903443 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.910983 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.928408 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.941457 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.953630 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.965399 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:56.985357 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:56.996542 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:56] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:57.017406 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:57.027443 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:57.833896 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:57.839423 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:57.844997 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:57.850353 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:57.869352 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:57] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:12:58.010907 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:12:58.015133 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:58] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:12:58] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:13:04.788585 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:13:04] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:13:04.794158 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:13:04] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:13:10.038944 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:13:10] "POST /myclass/api/Get_List_Default_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:13:21.095183 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:13:21.101629 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:13:21] "POST /myclass/api/Get_Given_DFAULT_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:13:21] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_courrier_template_id/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:13:39.148441 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:13:39] "POST /myclass/api/Add_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:13:42.388478 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:13:42] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:15:42.181047 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:15:42.187060 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:15:42] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:15:42] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:15:50.680381 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:15:50] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:30:00.591542 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:30:00] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:30:02.634741 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:30:02] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:30:26.121053 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:30:26.126443 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:30:26] "POST /myclass/api/Get_Given_Partner_Invoice/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:30:26] "POST /myclass/api/Get_Given_Partner_Invoice_Lines/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:30:38.372719 : Security check : IP adresse '127.0.0.1' connected +DEBUG:xhtml2pdf:pisaDocument options: + src = '

\n

 

\n

 

\n

Facture n° Invoice_15 

\n

client_test02 
invoice_adresse 
invoice_code_postal  - invoice_ville
invoice_pays

\n

 

\n

\n

Vous n\'avez pas de réduction sur cette facture.

\n

 

\n

Rappel Commande  n° Order_65 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
DescriptionQtyPrix Unit.Montant
PRATICIEN EN AROMATHERAPIE INTEGRATIVE316504950.000
\n

 

\n

 

\n

 

\n

 

\n

 

\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
 Totaux
 Total Remise( 0 )
 Total HT4950.0 €
 TVATVA 5% €
 Total5940.0 €
\n

 

\n

 

\n

Condition de règlement :  

\n

Date échéance : 08/02/2024 

\n

 

\n

 

\n

 

\n

18/02/2024, 16:30:38  

' + dest = <_io.BufferedRandom name='./temp_direct/Partner_Invoice_Invoice_15.pdf'> + path = None + link_callback = None + xhtml = False + context_meta = None +DEBUG:xhtml2pdf:FileObject 'https://img.mysy-training.com/MYSY-LOGO-BLUE.png', Basepath: 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\__dummy__' +DEBUG:xhtml2pdf:URLParts: (ParseResult(scheme='https', netloc='img.mysy-training.com', path='/MYSY-LOGO-BLUE.png', params='', query='', fragment=''), 'https') +DEBUG:xhtml2pdf:Parsing img tag, src: +DEBUG:xhtml2pdf:Attrs: {'src': , 'width': 100.0, 'height': 51.0, 'align': None, 'id': None} +DEBUG:xhtml2pdf:Sending request for https://img.mysy-training.com/MYSY-LOGO-BLUE.png with httplib +DEBUG:xhtml2pdf:Uri parsed: https://img.mysy-training.com/MYSY-LOGO-BLUE.png +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:None +DEBUG:xhtml2pdf:Col widths: [None, None, None, None] +DEBUG:PIL.PngImagePlugin:STREAM b'IHDR' 16 13 +DEBUG:PIL.PngImagePlugin:STREAM b'tEXt' 41 25 +DEBUG:PIL.PngImagePlugin:STREAM b'IDAT' 78 6645 +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:30:39] "GET /myclass/api/GerneratePDF_Partner_Invoice/ncOEiVnBf-Zybg_iQgeYinvbjZqnSt_Vkg/65c53885eeca725a4dc60838 HTTP/1.1" 200 - +INFO:root:2024-02-18 16:31:10.128699 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:31:10.135627 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:31:10] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:31:10] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:31:16.299171 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:31:16] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:31:49.562421 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:31:49] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:31:51.515356 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:31:51] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:33:20.062425 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:33:20.067529 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:33:20.072310 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:33:20] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:33:20.084766 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:33:20] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:33:20] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:33:20.245902 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:33:20] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:33:20.250847 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:33:20] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:34:53.642289 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:34:53] "POST /myclass/api/Delete_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:34:54.779333 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:34:54] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:35:01.744702 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:01] "POST /myclass/api/Get_List_Default_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:35:11.101920 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:35:11.109913 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:11] "POST /myclass/api/Get_Given_DFAULT_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:11] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_courrier_template_id/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:35:25.566211 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:25] "POST /myclass/api/Add_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:35:28.851070 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:28] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:35:34.969791 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:35:34.975795 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:34] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:34] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:35:41.494950 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:41] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:35:52.675636 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:52] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:35:54.893691 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:35:54] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:36:07.914102 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:36:07.920128 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:07] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:36:07.928599 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:36:07.936113 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:07] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:07] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:36:08.112982 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:08] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:36:08.117245 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:08] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:36:14.432023 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:36:14.435411 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:14] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:14] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:36:21.658753 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:21] "POST /myclass/api/Get_Default_Partner_Document_By_Internal_Ref/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:36:29.732774 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:29] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:36:31.907277 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:31] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-18 16:36:45.399911 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-18 16:36:45.405654 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:45] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [18/Feb/2024 16:36:45] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-02-19 08:59:38.092716 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-19 08:59:38.093715 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-19 08:59:38.093715 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-19 08:59:38.093715 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-19 08:59:38.093715 : ++ 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:2024-02-19 08:59:52.943837 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-19 08:59:52.944855 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-19 08:59:52.944855 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-19 08:59:52.944855 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-19 08:59:52.944855 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-19 09:00:32.172829 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:32.174203 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:32.178801 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:32] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:32] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:32] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:33.015598 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:33.018038 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:33] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:33.578132 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:33] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:33.883899 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:33.885301 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:33.887960 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:33] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:33.895456 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:33] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:33] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:33.903170 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:33] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:33.913673 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:33] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:33] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.203536 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:34.208831 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.214847 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:34.219074 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.229634 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:34.231628 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.520262 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.527929 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.534321 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:34.537723 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.543943 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:34.547652 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.831210 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.837953 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.844300 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:34.849261 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:34.854740 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:00:34.859705 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:34] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:35.143047 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:35] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:35.149384 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:35] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:35.156563 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:35] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:35.161768 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:35] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:00:35.167764 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:00:35] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:02.292236 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:02.293248 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:02.294536 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:02] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:02] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:02] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.038051 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.040052 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.649545 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.653080 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.656462 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.659973 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.662240 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.666695 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.671217 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.679708 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.683601 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.686644 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.692753 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.697504 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.703826 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.705284 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.710796 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.715724 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.720819 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.726950 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.730967 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.733563 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.742320 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.744922 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.749926 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.757679 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.766592 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.776596 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:03.786591 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.788592 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.790593 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:03.798873 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:03] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:08.510801 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:08] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:08.664521 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:08.666650 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:08.671851 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:08.676647 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:08] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:08.684301 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:08] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:08] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:08] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:28:08.759147 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:28:08.761913 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:08] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:28:08] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:31:52.607663 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:31:52] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:31:52.611278 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:31:52] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:31:58.923482 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:31:58] "POST /myclass/api/Get_List_Partner_Document_with_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:32:01.081381 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:32:01.085125 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:32:01] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:32:01] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:32:09.460744 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:32:09] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:32:58.454886 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:32:58] "POST /myclass/api/Get_List_Partner_Document_with_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:33:02.166247 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-19 09:33:02.170047 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:33:02] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:33:02] "POST /myclass/api/Get_List_object_owner_collection_Stored_Files/ HTTP/1.1" 200 - +INFO:root:2024-02-19 09:33:06.730009 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [19/Feb/2024 09:33:06] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2024-02-22 13:01:06.408988 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 13:01:06.410099 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 13:01:06.410099 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 13:01:06.410099 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 13:01:06.410099 : ++ 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:2024-02-22 13:01:22.502228 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 13:01:22.502748 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 13:01:22.502748 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 13:01:22.502748 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 13:01:22.502748 : ++ 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:2024-02-22 13:10:33.111287 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 13:10:33.111287 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 13:10:33.111287 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 13:10:33.112308 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 13:10:33.112308 : ++ 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:2024-02-22 22:00:04.549434 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 22:00:04.549434 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 22:00:04.549434 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 22:00:04.549434 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 22:00:04.549434 : ++ 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:2024-02-22 22:00:13.315611 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 22:00:13.315611 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 22:00:13.315611 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 22:00:13.315611 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 22:00:13.315611 : ++ 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:2024-02-22 22:01:12.036743 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 22:01:12.036743 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 22:01:12.036743 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 22:01:12.036743 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 22:01:12.037786 : ++ 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:2024-02-22 22:02:36.664475 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 22:02:36.665472 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 22:02:36.665472 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 22:02:36.665472 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 22:02:36.665472 : ++ 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:2024-02-22 22:03:31.744340 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 22:03:31.744340 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 22:03:31.744340 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 22:03:31.744340 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 22:03:31.744340 : ++ 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\\prj_common.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2024-02-22 22:05:35.650423 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 22:05:35.650423 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 22:05:35.650423 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 22:05:35.650423 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 22:05:35.650423 : ++ 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\\prj_common.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2024-02-22 22:11:24.025030 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-22 22:11:24.026031 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-22 22:11:24.026031 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-22 22:11:24.026031 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-22 22:11:24.026031 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 14:00:28.904878 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:00:28.904878 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:00:28.905886 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:00:28.905886 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:00:28.905886 : ++ 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:2024-02-23 14:00:41.739876 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:00:41.739876 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:00:41.739876 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:00:41.739876 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:00:41.739876 : ++ 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:2024-02-23 14:02:39.455430 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:02:39.456917 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:02:39.456917 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:02:39.456917 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:02:39.456917 : ++ 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:2024-02-23 14:05:25.585964 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:05:25.587469 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:05:25.587469 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:05:25.587469 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:05:25.587469 : ++ 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:2024-02-23 14:05:46.413044 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:05:46.413044 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:05:46.413044 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:05:46.413044 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:05:46.413044 : ++ 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:2024-02-23 14:10:08.693433 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:10:08.693433 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:10:08.693433 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:10:08.693433 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:10:08.693433 : ++ 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:2024-02-23 14:10:39.287705 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:10:39.288711 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:10:39.288711 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:10:39.289706 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:10:39.289706 : ++ 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:2024-02-23 14:11:27.439549 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:11:27.439549 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:11:27.439549 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:11:27.439549 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:11:27.439549 : ++ 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:2024-02-23 14:11:50.588476 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:11:50.588476 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:11:50.588476 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:11:50.588476 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:11:50.588476 : ++ 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:2024-02-23 14:12:56.599762 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:12:56.599762 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:12:56.599762 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:12:56.599762 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:12:56.599762 : ++ 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:2024-02-23 14:13:22.787000 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:13:22.787000 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:13:22.787000 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:13:22.787000 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:13:22.787000 : ++ 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:2024-02-23 14:13:51.950337 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:13:51.951336 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:13:51.951336 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:13:51.951336 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:13:51.951336 : ++ 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:2024-02-23 14:22:53.320532 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:22:53.320532 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:22:53.320532 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:22:53.320532 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:22:53.320532 : ++ 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:2024-02-23 14:25:50.125809 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:25:50.125809 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:25:50.125809 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:25:50.125809 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:25:50.125809 : ++ 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:2024-02-23 14:26:57.950108 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:26:57.950108 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:26:57.950108 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:26:57.950108 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:26:57.950108 : ++ 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:2024-02-23 14:27:20.567823 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:27:20.568817 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:27:20.568817 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:27:20.568817 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:27:20.568817 : ++ 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:2024-02-23 14:28:40.061910 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:28:40.062910 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:28:40.062910 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:28:40.062910 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:28:40.062910 : ++ 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:2024-02-23 14:30:20.332161 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:30:20.333160 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:30:20.333160 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:30:20.333160 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:30:20.333160 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 14:34:36.458040 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:36.461045 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:36.464759 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:36] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:36] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:36] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:37.037823 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:37.040077 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:37] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.166455 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.173455 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.179455 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.185455 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.196035 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.200526 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.203567 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.207863 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.230648 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.232645 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.235778 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.248351 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.252714 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.257718 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.269125 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.280214 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.283706 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.291005 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.294013 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.301006 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.308810 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.314361 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.318838 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.325225 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.332603 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.341955 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.347783 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.354319 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:38.363128 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:38.367369 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:38] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:45.876815 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:45] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:46.273192 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:46.277757 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:46.285133 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:46] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:46.293134 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:46.321716 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:46] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:46] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:46] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:34:46.492643 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:34:46.498125 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:46] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:34:46] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:45:14.106920 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:14.112424 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:14.119219 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:14.128459 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:14.139414 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:14.151852 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:45:14.166883 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:45:14.188897 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:14.198729 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:14.213574 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/Get_List_Partner_Or_Default_session_step/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/Get_List_Ressource_Materielle_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:45:14.229645 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/Get_Partner_List_Partner_Client_with_filter_Like/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/Get_List_Site_Formation_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:14] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:45:33.466497 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:33.471930 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:33.478982 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:33.485008 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 14:45:33.494853 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:33] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:33] "POST /myclass/api/Get_Session_Sequence_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:45:33.514192 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:33] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:33] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:33] "POST /myclass/api/Get_Session_Sequence_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:45:33] "POST /myclass/api/GetTableauEmargement/ HTTP/1.1" 200 - +INFO:root:2024-02-23 14:46:56.979402 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:46:56] "GET /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 404 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\main.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2024-02-23 14:49:11.058414 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 14:49:11.059495 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 14:49:11.059495 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 14:49:11.059495 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 14:49:11.059495 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 14:50:42.195173 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:50:42] "GET /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 14:50:42.206148 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 14:50:42] "GET /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ HTTP/1.1" 500 - +INFO:root:2024-02-23 15:09:11.437722 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:11] "GET /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:09:11.448833 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:11] "GET /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ HTTP/1.1" 500 - +INFO:root:2024-02-23 15:09:33.014622 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:33] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:09:33.028212 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:09:33.038195 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:33] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:09:57.821879 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:09:57.827189 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:09:57.832383 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:57] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:09:57.853983 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:57] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:57] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:09:58.028026 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:09:58.032798 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:09:58.038252 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:09:58.044792 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:09:58.053370 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:09:58.064174 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:09:58.083450 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/Get_Partner_List_Partner_Client_with_filter_Like/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:09:58.091675 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:09:58.099346 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/Get_List_Partner_Or_Default_session_step/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/Get_List_Ressource_Materielle_no_filter/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:09:58.115518 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:09:58.127866 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/Get_List_Ressource_Humaine_no_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/Get_List_Site_Formation_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:09:58] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:10:29.352552 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:10:29] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:10:29.363348 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:10:29.405439 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:10:29] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ 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:2024-02-23 15:12:57.707871 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 15:12:57.707871 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 15:12:57.708993 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 15:12:57.708993 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 15:12:57.708993 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 15:12:57.786503 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:12:57] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:12:57.799195 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:12:57.840294 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:12:57] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ 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:2024-02-23 15:14:19.490140 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 15:14:19.490140 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 15:14:19.490140 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 15:14:19.490140 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 15:14:19.490140 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 15:14:27.351203 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:14:27] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:14:27.359214 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:14:28.296765 : Invoice_Partner_From_Session Facturation : Le taux de TVA est invalide +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:14:28] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ HTTP/1.1" 200 - +INFO:root:2024-02-23 15:14:46.764545 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:14:46.768930 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:14:46.776039 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:14:46] "POST /myclass/api/Get_List_Partner_Basic_Setup/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:14:46] "POST /myclass/api/Get_Client_Type_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:14:46] "POST /myclass/api/Get_List_Site_Formation_with_filter/ 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:2024-02-23 15:15:47.138669 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 15:15:47.139695 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 15:15:47.139695 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 15:15:47.139695 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 15:15:47.139695 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 15:15:47.187221 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:15:47] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:15:47.194228 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:15:47.865481 : Invoice_Partner_From_Session Facturation : Le taux de TVA est invalide +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:15:47] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ 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:2024-02-23 15:16:29.207088 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 15:16:29.207088 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 15:16:29.207088 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 15:16:29.207088 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 15:16:29.207088 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 15:16:49.056635 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:16:49] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:16:49.068150 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:16:50.115422 : Invoice_Partner_From_Session -list indices must be integers or slices, not str - Line : 7222 +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:16:50] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ 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:2024-02-23 15:18:16.652470 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 15:18:16.652470 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 15:18:16.652470 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 15:18:16.652470 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 15:18:16.653469 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 15:18:16.697034 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:18:16] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:18:16.705581 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:18:17.356695 : Invoice_Partner_From_Session Facturation : Le taux de TVA est invalide +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:18:17] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ 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:2024-02-23 15:18:53.390316 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 15:18:53.391497 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 15:18:53.391497 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 15:18:53.391497 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 15:18:53.391497 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 15:19:00.990507 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:19:00] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:19:00.999518 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2024-02-23 15:19:01.741468 : Invoice_Partner_From_Session -string indices must be integers - Line : 7222 +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:19:01] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ 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:2024-02-23 15:20:51.516490 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 15:20:51.516490 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 15:20:51.516490 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 15:20:51.516490 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 15:20:51.516490 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 15:20:51.570814 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:20:51] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:20:51.577892 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:20:51] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ 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:2024-02-23 15:22:23.283394 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2024-02-23 15:22:23.283394 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2024-02-23 15:22:23.283394 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2024-02-23 15:22:23.284394 : ++ FLASK PORT 5001 ++ +INFO:root:2024-02-23 15:22:23.284394 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2024-02-23 15:22:23.329229 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:22:23] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email HTTP/1.1" 308 - +INFO:root:2024-02-23 15:22:23.335229 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [23/Feb/2024 15:22:23] "POST /myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/ HTTP/1.1" 200 - diff --git a/Session_Formation.py b/Session_Formation.py index f6c9ede..28d3f6c 100644 --- a/Session_Formation.py +++ b/Session_Formation.py @@ -39,7 +39,7 @@ from email import encoders from email.mime.base import MIMEBase from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText - +import partner_base_setup as partner_base_setup """ Fonction de creation et mise à jour d'une session de formation. @@ -4185,11 +4185,11 @@ def Duplicate_List_Session_Formation(diction): """ -Cette fonction les convention par email de formation en partant de la session. +Cette fonction les conventions par email de formation en partant de la session. Algo : -On recuperer les stagaiaires qu'on groupe par client_rattachement_id +On recuperer les stagiaires qu'on groupe par client_rattachement_id Pour tous ceux qui on le meme, on envoie une convention groupée pour les autres, on envoi des conventions individuelle @@ -6892,3 +6892,865 @@ def Sent_Attestation_Stagiaire_By_Email(tab_files, Folder, diction): exc_type, exc_obj, exc_tb = sys.exc_info() mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno)) return False, " Impossible d'envoyer la convention par email " + + +""" +Cette fonction permet de facturer une session de formation selon les regles suivants : +Sur une session : +- les participants groupés par client_rattachement_id +- facturation du client si j'ai un client rattachement id +- Cas particulier : + - un participant qui est en autonome (donc pas de client ) + - pour le facturer il faudra obligatoirement créer une client. +""" +def Prepare_and_Send_Facture_From_Session_By_Email(tab_files, Folder, diction): + try: + + field_list_obligatoire = ['token', 'session_id', 'courrier_template_id', 'email_test', 'email_production'] + + for val in field_list_obligatoire: + if val not in diction: + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " La valeur '" + val + "' n'est pas presente dans liste ") + return False, " La valeur '" + val + "' n'est pas presente dans liste" + + my_token = "" + if ("token" in diction.keys()): + if diction['token']: + my_token = diction['token'] + + local_status, my_partner = mycommon.Check_Connexion_And_Return_Partner_Data(diction) + if (local_status is not True): + return local_status, my_partner + + # Verifier que la session est valide + is_session_valide = MYSY_GV.dbname['session_formation'].count_documents( + {'_id': ObjectId(str(diction['session_id'])), + 'valide': '1', + 'partner_owner_recid': str(my_partner['recid'])}) + + if (is_session_valide != 1): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " L'identifiant de la session est invalide ") + return False, " L'identifiant de la session est invalide " + + + # Verifier qu'il ya bien des inscriptions valides dans la session pour le client + liste_client_rattachement_id = MYSY_GV.dbname['inscription'].distinct("client_rattachement_id", + {'session_id':str(diction['session_id']), + 'status': '1', + 'partner_owner_recid': str( + my_partner['recid']), + "client_rattachement_id": { '$ne': ''} + } + ) + + + print(" ### la liste des liste_client_rattachement_id = ", liste_client_rattachement_id) + + # Sauvegarde des fichiers joints depuis le front + tab_saved_file_full_path = [] + for file in tab_files: + status, saved_file_full_path = mycommon.Upload_Save_PDF_IMG_File(file, Folder) + if (status is False): + mycommon.myprint("Impossible de récupérer correctement le fichier à importer") + return False, "Impossible de récupérer correctement le fichier à importer" + + tab_saved_file_full_path.append(saved_file_full_path) + + print(" #### tab_saved_file_full_path = ", tab_saved_file_full_path) + + # Recupération des données du modèle de document + courrier_template_data = MYSY_GV.dbname['courrier_template'].find_one( + {'_id': ObjectId(str(diction['courrier_template_id'])), + 'valide': '1', + 'locked': '0', + 'partner_owner_recid': str(my_partner['recid'])} + ) + + # Envoie des conventions pour les inscrits AVEC client_id (conventions d'entreprise) + for single_client in liste_client_rattachement_id: + print(" Traintement du client_id = ", single_client) + + # Recuperation des contacts de communication du client + local_diction = {} + local_diction['token'] = diction['token'] + local_diction['_id'] = str(single_client) + + print(" ##### local_diction = ", local_diction) + local_status, partner_client_contact_communication = partner_client.Get_Partner_Client_Communication_Contact( + local_diction) + + if (local_status is False): + mycommon.myprint(" Impossible de récupérer les contacts de communication du client ") + return False, " Impossible de récupérer les contacts de communication du client " + + print(" ### partner_client_contact_communication = ", partner_client_contact_communication) + tab_local_email_production = [] + for tmp in partner_client_contact_communication: + tmp_JSON = ast.literal_eval(tmp) + if ("email" in tmp_JSON.keys()): + tab_local_email_production.append(str(tmp_JSON["email"])) + + list_local_email_production = ",".join(tab_local_email_production) + + new_diction_client = {} + new_diction_client['partner_client_id'] = single_client + new_diction_client['token'] = diction['token'] + new_diction_client['courrier_template_id'] = diction['courrier_template_id'] + new_diction_client['email_test'] = diction['email_test'] + new_diction_client['email_production'] = str(list_local_email_production) + new_diction_client['session_id'] = diction['session_id'] + + print(" ##### new_diction_client 0102 = ", new_diction_client) + + + # Creation de la facture du client + diction_invoice = {} + diction_invoice['token'] = diction['token'] + diction_invoice['partner_client_id'] = single_client + diction_invoice['session_id'] = diction['session_id'] + print(" ##### diction_invoice 0202 = ", diction_invoice) + local_create_invoice_status, local_create_invoice_retval = Invoice_Partner_From_Session(diction_invoice) + if( local_create_invoice_status is False ): + return local_create_invoice_status, local_create_invoice_retval + + """ + local_status, local_retval = Sent_Facture_Stagiaire_By_Email_By_Partner_client(tab_saved_file_full_path, Folder, new_diction_client) + if (local_status is False): + mycommon.myprint(" WARNING : impossible d'envoyer la convention au client : " + str(single_client)) + + + + """ + + + return True, " Les Factures ont été correctement créées et envoyées par emails" + + except Exception as e: + exc_type, exc_obj, exc_tb = sys.exc_info() + mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno)) + return False, " Impossible de créer et d'envoyer les factures par email " + + + +""" +Cette fonction va créer une facture pour un client +lié à des apprenants sur une session de formation +""" +def Invoice_Partner_From_Session( diction): + try: + + field_list_obligatoire = ['token', 'partner_client_id', 'session_id'] + + for val in field_list_obligatoire: + if val not in diction: + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " La valeur '" + val + "' n'est pas presente dans liste ") + return False, " La valeur '" + val + "' n'est pas presente dans liste" + + my_token = "" + if ("token" in diction.keys()): + if diction['token']: + my_token = diction['token'] + + local_status, my_partner = mycommon.Check_Connexion_And_Return_Partner_Data(diction) + if (local_status is not True): + return local_status, my_partner + + # Verifier que la session est valide + is_session_id_valide = MYSY_GV.dbname['session_formation'].count_documents( + {'_id': ObjectId(str(diction['session_id'])), + 'valide': '1', + 'partner_owner_recid': str(my_partner['recid'])}) + + if (is_session_id_valide != 1): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " L'identifiant de la session est invalide ") + return False, " L'identifiant de la session est invalide " + + # Verifier que ce client a bien des inscriptions valide pour cette session + nb_valide_inscription_pr_client = MYSY_GV.dbname['inscription'].count_documents( + {'client_rattachement_id': str(diction['partner_client_id']), + 'session_id': str(diction['session_id']), + 'partner_owner_recid': str(my_partner['recid']), + 'status': '1'}) + + if (nb_valide_inscription_pr_client <= 0): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " Aucune inscription valide pour ce client pour cette session ") + return False, " Aucune inscription valide pour ce client pour cette session " + + partner_client_id_data = MYSY_GV.dbname['partner_client'].find_one( + {'_id': ObjectId(str(diction['partner_client_id'])), + 'valide': '1', + 'locked': '0', + 'partner_recid': str(my_partner['recid'])}) + + + # Recuperation des données du stagiaire + inscription_data = MYSY_GV.dbname['inscription'].find({'session_id': str(diction['session_id']), + 'status': '1', + 'partner_owner_recid': str(my_partner['recid']), + 'client_rattachement_id':str(diction['partner_client_id'])}) + tab_apprenant = [] + tab_participant = [] + for val in inscription_data: + tab_participant.append(val['_id']) + + """ + update du 30/01/2024 + si le participant à un apprenant_id, alors on recupere la valeur de l'apprenant id. On doit travailler sur cette dernier. + En general, avant d'envoyer une convocation ou convention, l'inscription est validée et donc le dossier apprenant existe. + Du coup si tout se passe bien, dans cette fonction, on travaillera tjrs avec l'apprenant_id + """ + + if ("apprenant_id" in val.keys() and val['apprenant_id']): + tab_apprenant.append(ObjectId(str(val['apprenant_id']))) + + + print(" ### tab_participant = ", tab_participant) + + # Recuperations des info de la session de formation + session_data = MYSY_GV.dbname['session_formation'].find_one({'_id': ObjectId(str(diction['session_id']))}) + + tab_session = [] + tab_session.append(session_data['_id']) + + + # Recuperation du titre de la formation + class_data = MYSY_GV.dbname['myclass'].find({'internal_url': str(session_data['class_internal_url']), + 'valide': '1', + 'partner_owner_recid': str(my_partner['recid']), + 'locked': '0'}) + + + price_by = "perstagiaire" + if( "perstagiaire" in session_data.keys() ): + price_by = session_data['perstagiaire'] + if( price_by not in MYSY_GV.TRAINING_PRICE) : + mycommon.myprint(str(inspect.stack()[0][3]) + " Le prix par " + str(price_by) + " n'est valide. Les valeurs autorisées sont " + str(MYSY_GV.TRAINING_PRICE)) + return False, " Le prix par " + str(price_by) + " n'est valide. Les valeurs autorisées sont " + str(MYSY_GV.TRAINING_PRICE) + " " + + partner_invoice_header_data = {} + + list_partner_invoice_header_champ = ['order_header_client_id', 'order_header_ref_interne', 'order_header_email_client', 'order_header_origin', 'order_header_ref_client', 'order_header_vendeur_id', + 'order_header_date_cmd', 'order_header_date_expiration', 'order_header_adr_fact_adresse', 'order_header_adr_fact_code_postal', 'order_header_adr_fact_ville', 'order_header_adr_fact_pays', + 'order_header_adr_liv_adresse', 'order_header_adr_liv_code_postal', 'order_header_adr_liv_ville', 'order_header_adr_liv_pays', 'valide', 'locked', 'date_update', + 'order_header_montant_reduction', 'order_header_tax', 'order_header_tax_amount', 'total_header_hors_taxe_after_header_reduction', 'total_header_hors_taxe_before_header_reduction', + 'total_header_toutes_taxes', 'total_lines_hors_taxe_after_lines_reduction', 'total_lines_hors_taxe_before_lines_reduction', 'total_lines_montant_reduction', 'invoice_header_ref_interne', + 'invoice_header_type', 'invoice_date', 'update_by'] + + # PreRemplir les champs + for val in list_partner_invoice_header_champ: + partner_invoice_header_data[str(val)] = "" + + + partner_invoice_header_data['order_header_client_id'] = str(partner_client_id_data['_id']) + + code_session = "" + if( "code_session" in session_data.keys() ): + code_session = session_data['code_session'] + partner_invoice_header_data['order_header_ref_interne'] = "Code_Session_"+str(code_session) + + order_header_email_client = "" + if ("email" in partner_client_id_data.keys()): + order_header_email_client = partner_client_id_data['email'] + partner_invoice_header_data['order_header_email_client'] = order_header_email_client + + order_header_origin = "session_id_"+str(session_data['_id']) + partner_invoice_header_data['order_header_origin'] = order_header_origin + + order_header_adr_fact_adresse = "" + if( "invoice_adresse" in partner_client_id_data.keys() ): + order_header_adr_fact_adresse = partner_client_id_data['invoice_adresse'] + partner_invoice_header_data['order_header_adr_fact_adresse'] = order_header_adr_fact_adresse + + order_header_adr_fact_ville = "" + if ("invoice_ville" in partner_client_id_data.keys()): + order_header_adr_fact_ville = partner_client_id_data['invoice_adresse'] + partner_invoice_header_data['order_header_adr_fact_ville'] = order_header_adr_fact_ville + + order_header_adr_fact_code_postal = "" + if ("invoice_code_postal" in partner_client_id_data.keys()): + order_header_adr_fact_code_postal = partner_client_id_data['invoice_code_postal'] + partner_invoice_header_data['order_header_adr_fact_code_postal'] = order_header_adr_fact_code_postal + + order_header_adr_fact_pays = "" + if ("invoice_pays" in partner_client_id_data.keys()): + order_header_adr_fact_pays = partner_client_id_data['invoice_pays'] + partner_invoice_header_data['order_header_adr_fact_pays'] = order_header_adr_fact_pays + + order_header_montant_reduction = "0" + partner_invoice_header_data['order_header_montant_reduction'] = order_header_montant_reduction + + + # Calcul du Totol HT sans reduction + total_ht = 0 + prix_session = 0 + session_price = 0 + if( "prix_session" not in session_data.keys() ): + mycommon.myprint(str(inspect.stack()[0][3]) + " Facturation : La session n'a pas de prix valide") + return False, " Facturation : La session n'a pas de prix valide " + + if( str(session_data['prix_session']).strip() == "" ): + mycommon.myprint(str(inspect.stack()[0][3]) + " Facturation : La session n'a pas de prix valide (2) ") + return False, " Facturation : La session n'a pas de prix valide (2) " + + prix_session = mycommon.tryFloat(str(session_data['prix_session'])) + + + if( str(price_by).strip() == "persession" ): + total_ht = round(prix_session, 2) + else: + total_ht = round(prix_session * nb_valide_inscription_pr_client, 2) + + partner_invoice_header_data['total_header_hors_taxe_before_header_reduction'] = total_ht + + # Recupération de la TVA de l'entité qui facture + taux_tva_statuts, taux_tva_retval = partner_base_setup.Get_Given_Partner_Basic_Setup({'token':str(diction['token']), 'config_name':'tva'}) + + if( taux_tva_statuts is False ): + mycommon.myprint(str(inspect.stack()[0][3]) + " Facturation : Impossible de récupérer le taux de TVA ") + return False, " Facturation : Impossible de récupérer le taux de TVA " + + tmp = ast.literal_eval(taux_tva_retval[0]) + taux_tva_retval = tmp['config_value'] + print(" ### taux_tva_retval = ", taux_tva_retval) + tva_status, tva_value = mycommon.IsFloat(str(taux_tva_retval)) + if (tva_status is False): + mycommon.myprint(str(inspect.stack()[0][3]) + " Facturation : Le taux de TVA est invalide ") + return False, " Facturation : Le taux de TVA est invalide " + + partner_invoice_header_data['order_header_tax'] = taux_tva_retval + + partner_invoice_header_data['order_header_tax_amount'] = round(tva_value * total_ht, 2) + + partner_invoice_header_data['total_header_toutes_taxes'] = round(total_ht + (tva_value * total_ht), 2) + + partner_invoice_header_data['invoice_header_type'] = "facture" + + # Récuperation de la sequence de l'objet "partner_invoice_header" dans la collection : "mysy_sequence" + retval_sequence_invoice = MYSY_GV.dbname['mysy_sequence'].find_one( + {'partner_invoice_header': 'partner_order_header', + 'valide': '1', 'partner_owner_recid': str( + my_partner['recid'])}) + + if (retval_sequence_invoice is None): + # Il n'y pas de sequence pour le partenaire, on va aller chercher la sequence par defaut + retval_sequence_invoice = MYSY_GV.dbname['mysy_sequence'].find_one( + {'related_mysy_object': 'partner_invoice_header', + 'valide': '1', 'partner_owner_recid': 'default'}) + + if (retval_sequence_invoice is None or "current_val" not in retval_sequence_invoice.keys()): + # Il n'y aucune sequence meme par defaut. + + mycommon.myprint(" Facture : Impossible de récupérer la sequence 'retval_sequence_invoice' ") + return False, "Facture : Impossible de récupérer la sequence 'retval_sequence_invoice' " + + current_seq_value = str(retval_sequence_invoice['current_val']) + new_sequence_value = int(mycommon.tryInt(current_seq_value)) + 1 + new_sequance_data_to_update = {'current_val': new_sequence_value} + + ret_val2 = MYSY_GV.dbname['mysy_sequence'].find_one_and_update( + {'_id': ObjectId(str(retval_sequence_invoice['_id'])), 'valide': '1'}, + {"$set": new_sequance_data_to_update}, + return_document=ReturnDocument.AFTER, + upsert=False, + ) + invoice_date_time = str(datetime.now().strftime("%d/%m/%Y")) + + partner_invoice_header_data['invoice_header_ref_interne'] = "facture" + partner_invoice_header_data['invoice_header_ref_interne'] = retval_sequence_invoice['prefixe'] + str(current_seq_value) + partner_invoice_header_data['invoice_header_type'] = "facture" + partner_invoice_header_data['invoice_date'] = invoice_date_time + partner_invoice_header_data['update_by'] = str(my_partner['_id']) + + print(" #### partner_invoice_header_data = ", partner_invoice_header_data) + inserted_invoice_id = MYSY_GV.dbname['partner_invoice_header'].insert_one(partner_invoice_header_data).inserted_id + if (not inserted_invoice_id): + mycommon.myprint(" Facture : Impossible de créer l'entête de la facture ") + return False, " Facture : Impossible de créer l'entête de la facture " + + + + + return True, "L'email a été correctement envoyé " + + except Exception as e: + exc_type, exc_obj, exc_tb = sys.exc_info() + mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno)) + return False, " Impossible d'envoyer la convention par email " + + + + +""" +Envoie par email pour les stagiaires rattachés à un client + +important : +si le champ 'email_test' est rempli, alors il s'agit d'un email de test. +donc on n'envoie pas l'email à l'adresss de prod ou contact du client +""" +def Sent_Facture_Stagiaire_By_Email_By_Partner_client(tab_files_name_full_path, Folder, diction): + try: + + field_list_obligatoire = ['token', 'courrier_template_id', 'email_test', 'email_production', 'partner_client_id', 'session_id'] + + for val in field_list_obligatoire: + if val not in diction: + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " La valeur '" + val + "' n'est pas presente dans liste ") + return False, " La valeur '" + val + "' n'est pas presente dans liste" + + my_token = "" + if ("token" in diction.keys()): + if diction['token']: + my_token = diction['token'] + + local_status, my_partner = mycommon.Check_Connexion_And_Return_Partner_Data(diction) + if (local_status is not True): + return local_status, my_partner + + # Verifier que la session est valide + is_session_id_valide = MYSY_GV.dbname['session_formation'].count_documents( + {'_id': ObjectId(str(diction['session_id'])), + 'valide': '1', + 'partner_owner_recid': str(my_partner['recid'])}) + + if (is_session_id_valide != 1): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " L'identifiant de la session est invalide ") + return False, " L'identifiant de la session est invalide " + + # Verifier que ce client a bien des inscriptions valide pour cette session + is_valide_inscription_pr_client = MYSY_GV.dbname['inscription'].count_documents( + {'client_rattachement_id': str(diction['partner_client_id']), + 'session_id': str(diction['session_id']), + 'partner_owner_recid': str(my_partner['recid']), + 'status': '1'}) + + if (is_valide_inscription_pr_client <= 0): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " Aucune inscription valide pour ce client pour cette session ") + return False, " Aucune inscription valide pour ce client pour cette session " + + partner_client_id_data = MYSY_GV.dbname['partner_client'].find_one( + {'_id': ObjectId(str(diction['partner_client_id'])), + 'valide': '1', + 'locked': '0', + 'partner_recid': str(my_partner['recid'])}) + + + # Traitement de l'eventuel fichier joint + tab_files_to_attache_to_mail = [] + + for file_name_full_path in tab_files_name_full_path: + """status, saved_file = mycommon.Upload_Save_PDF_IMG_File(file, Folder) + if (status is False): + mycommon.myprint("Impossible de récupérer correctement le fichier à importer") + return False, "Impossible de récupérer correctement le fichier à importer" + """ + + file_to_attache_to_mail = MIMEBase('application', "octet-stream") + file_to_attache_to_mail.set_payload(open(file_name_full_path, "rb").read()) + + encoders.encode_base64(file_to_attache_to_mail) + file_to_attache_to_mail.add_header('Content-Disposition', + 'attachment; filename="{0}"'.format(os.path.basename(file_name_full_path))) + + new_node = {"attached_file": file_to_attache_to_mail} + tab_files_to_attache_to_mail.append(new_node) + + # Verification de la validité des adresses email_recu + """ + /!\ : Si l'email de test est repli, alors on considere que c'est un test, on ne prend pas en compte l'email de email_production. + Ceci pour forcer les utilisateur à ne remplir que l'email de prod s'il veulent l'envoyer en prod. + + Si l'adresse email_prodution = "defaul", cela veut dire qu'on envoie la convention à : + - l'adresse email du stagiaire et ses tuteurs (si les tuteurs on cochés la case 'inclu com' + + """ + + send_in_production = 0 + + tab_emails_destinataire = [] + if ("email_test" in diction.keys() and diction['email_test']): + tab_email_test = str(diction['email_test']).replace(";", ",").split(",") + for email in tab_email_test: + email = email.strip() + if (mycommon.isEmailValide(email) is False): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " L'adresse email " + str(email) + " est invalide ") + return False, " L'adresse email " + str(email) + " est invalide " + tab_emails_destinataire = tab_email_test + + elif ("email_production" in diction.keys() and diction['email_production']): + send_in_production = 1 + if (str(diction['email_production']) != "default"): + tab_email_prod = str(diction['email_production']).replace(";", ",").split(",") + for email in tab_email_prod: + email = email.strip() + if (mycommon.isEmailValide(str(email)) is False): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " L'adresse email '" + str(email) + "' est invalide ") + return False, " L'adresse email " + str(email) + " est invalide " + tab_emails_destinataire = tab_email_prod + else: + tab_email_prod = "default" + + + else: + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " Aucune adresse email n'a été fourni. ") + return False, " Aucune adresse email n'a été fourni. " + + + print(" ## laaa : tab_emails_destinataire lalala = ", tab_emails_destinataire) + + # Verifier que le 'courrier_template_id' est valide + # Ici le template doit etre un email + is_courrier_template_id_valide = MYSY_GV.dbname['courrier_template'].count_documents( + {'_id': ObjectId(str(diction['courrier_template_id'])), + 'valide': '1', + 'type_doc': 'email', + 'locked': '0', + 'partner_owner_recid': str(my_partner['recid'])} + ) + + if (is_courrier_template_id_valide != 1): + mycommon.myprint(str(inspect.stack()[0][3]) + " L'identifiant du modèle de courrier est invalide ") + return False, " L'identifiant du modèle de courrier est invalide " + + # Recupération des données du modèle de document + courrier_template_data = MYSY_GV.dbname['courrier_template'].find_one( + {'_id': ObjectId(str(diction['courrier_template_id'])), + 'valide': '1', + 'locked': '0', + 'partner_owner_recid': str(my_partner['recid'])} + ) + + # Recuperation des eventuelles pièces jointes du modèle que courrier + local_dic = {} + local_dic['token'] = str(diction['token']) + local_dic['object_owner_collection'] = "courrier_template" + local_dic['object_owner_id'] = str(courrier_template_data['_id']) + + local_status, local_retval = attached_file_mgt.Get_List_object_owner_collection_Stored_Files(local_dic) + if (local_status is False): + return local_status, local_retval + + # print(" ### file stocké = ", local_retval) + + # Recuperation des fichiers attachés au modele de courrier, s'il y en a + + for file in local_retval: + local_JSON = ast.literal_eval(file) + + saved_file = local_JSON['full_path'] + + file_to_attache_to_mail = MIMEBase('application', "octet-stream") + file_to_attache_to_mail.set_payload(open(saved_file, "rb").read()) + + encoders.encode_base64(file_to_attache_to_mail) + file_to_attache_to_mail.add_header('Content-Disposition', + 'attachment; filename="{0}"'.format(os.path.basename(saved_file))) + + new_node = {"attached_file": file_to_attache_to_mail} + tab_files_to_attache_to_mail.append(new_node) + + # Recuperation des données du stagiaire + inscription_data = MYSY_GV.dbname['inscription'].find({'session_id': str(diction['session_id']), + 'status': '1', + 'partner_owner_recid': str(my_partner['recid']), + 'client_rattachement_id':str(diction['partner_client_id'])}) + tab_apprenant = [] + tab_participant = [] + for val in inscription_data: + tab_participant.append(val['_id']) + + """ + update du 30/01/2024 + si le participant à un apprenant_id, alors on recupere la valeur de l'apprenant id. On doit travailler sur cette dernier. + En general, avant d'envoyer une convocation ou convention, l'inscription est validée et donc le dossier apprenant existe. + Du coup si tout se passe bien, dans cette fonction, on travaillera tjrs avec l'apprenant_id + """ + + if ("apprenant_id" in val.keys() and val['apprenant_id']): + tab_apprenant.append(ObjectId(str(val['apprenant_id']))) + + + print(" ### tab_participant = ", tab_participant) + + # Recuperations des info de la session de formation + session_data = MYSY_GV.dbname['session_formation'].find_one({'_id': ObjectId(str(diction['session_id']))}) + + tab_session = [] + tab_session.append(session_data['_id']) + + + # Recuperation du titre de la formation + class_data = MYSY_GV.dbname['myclass'].find({'internal_url': str(session_data['class_internal_url']), + 'valide': '1', + 'partner_owner_recid': str(my_partner['recid']), + 'locked': '0'}) + + tab_class = [] + for val in class_data: + tab_class.append(val['_id']) + + # Recuperer les données du client + client_data = MYSY_GV.dbname['partner_client'].find_one({'_id':ObjectId(str(diction['partner_client_id'])), + 'valide':'1', + 'locked':'0', + 'partner_recid': str(my_partner['recid']), + }) + + + tab_client = [] + tab_client.append(client_data['_id']) + + # Creation du dictionnaire d'information à utiliser pour la creation du doc + convention_dictionnary_data = {} + new_diction = {} + new_diction['token'] = diction['token'] + new_diction['list_stagiaire_id'] = tab_participant + new_diction['list_session_id'] = tab_session + new_diction['list_class_id'] = tab_class + new_diction['list_client_id'] = tab_client + + local_status, local_retval = mycommon.Get_Dictionnary_data_For_Template(new_diction) + + if (local_status is False): + return local_status, local_retval + + convention_dictionnary_data = local_retval + + print(" ") + ## Creation du PDF + + body = { + "params": convention_dictionnary_data, + } + + # --- + # Verifier s'il s'agit d'un document à envoyer avec une version de pièce jointe. + if ("joint_pdf" in courrier_template_data.keys() and str(courrier_template_data['joint_pdf']) == "1"): + # Il s'agit bien d'un envoie avec 'contenu_doc' en pièce jointe PDF + """ + 1 - Creation du PDF + """ + contenu_doc_Template = jinja2.Template(str(courrier_template_data['contenu_doc'])) + + sourceHtml = contenu_doc_Template.render(params=body["params"]) + + todays_date = str(date.today().strftime("%d/%m/%Y")) + ts = datetime.now().timestamp() + ts = str(ts).replace(".", "").replace(",", "")[-5:] + + orig_file_name = "Convention_" + str(my_partner['recid'])[0:5] + "_" + str(ts) + ".pdf" + outputFilename = str(MYSY_GV.TEMPORARY_DIRECTORY) + "/" + str(orig_file_name) + + # open output file for writing (truncated binary) + resultFile = open(outputFilename, "w+b") + + # convert HTML to PDF + pisaStatus = pisa.CreatePDF( + src=sourceHtml, # the HTML to convert + dest=resultFile) # file handle to receive result + + # close output file + resultFile.close() + + # Attachement du fichier joint + file_to_attache_to_mail = MIMEBase('application', "octet-stream") + file_to_attache_to_mail.set_payload(open(outputFilename, "rb").read()) + + encoders.encode_base64(file_to_attache_to_mail) + file_to_attache_to_mail.add_header('Content-Disposition', + 'attachment; filename="{0}"'.format(os.path.basename(outputFilename))) + + new_node = {"attached_file": file_to_attache_to_mail} + tab_files_to_attache_to_mail.append(new_node) + + ## Creation du mail au format email + + corps_mail_Template = jinja2.Template(str(courrier_template_data['corps_mail'])) + + sourceHtml = corps_mail_Template.render(params=body["params"]) + + html_mime = MIMEText(sourceHtml, 'html') + + # Creation de l'email à enoyer + msg = MIMEMultipart("alternative") + + else: + # Il s'agit d'une simple email + + ## Creation du mail au format email + contenu_doc_Template = jinja2.Template(str(courrier_template_data['contenu_doc'])) + + sourceHtml = contenu_doc_Template.render(params=body["params"]) + + html_mime = MIMEText(sourceHtml, 'html') + + # Creation de l'email à enoyer + msg = MIMEMultipart("alternative") + + # --- + + """ + ## Creation du PDF + + contenu_doc_Template = jinja2.Template(str(courrier_template_data['contenu_doc'])) + + sourceHtml = contenu_doc_Template.render(params=body["params"]) + + html_mime = MIMEText(sourceHtml, 'html') + + # Creation de l'email à enoyer + msg = MIMEMultipart("alternative") + """ + """ + Recuperation des parametre SMTP du partner si le client a decidé d'utiliser son propre smpt + """ + partner_own_smtp_value = "0" + partner_own_smtp = MYSY_GV.dbname['base_partner_setup'].find_one( + {'partner_owner_recid': str(my_partner['recid']), + 'config_name': 'partner_smtp', + 'valide': '1', + 'locked': '0'}) + + if (partner_own_smtp and "config_value" in partner_own_smtp.keys()): + partner_own_smtp_value = partner_own_smtp['config_value'] + + if (str(partner_own_smtp_value) == "1"): + partner_SMTP_COUNT_password = str(MYSY_GV.dbname['base_partner_setup'].find_one( + {'partner_owner_recid': str(my_partner['recid']), + 'config_name': 'smtp_user_pwd', + 'valide': '1', + 'locked': '0'}, {'config_value': 1})['config_value']) + + partner_SMTP_COUNT_smtpsrv = str(MYSY_GV.dbname['base_partner_setup'].find_one( + {'partner_owner_recid': str(my_partner['recid']), + 'config_name': 'smtp_server', + 'valide': '1', + 'locked': '0'}, {'config_value': 1})['config_value']) + + partner_SMTP_COUNT_user = str(MYSY_GV.dbname['base_partner_setup'].find_one( + {'partner_owner_recid': str(my_partner['recid']), + 'config_name': 'smtp_user', + 'valide': '1', + 'locked': '0'}, {'config_value': 1})['config_value']) + + partner_SMTP_COUNT_From_User = str(MYSY_GV.dbname['base_partner_setup'].find_one( + {'partner_owner_recid': str(my_partner['recid']), + 'config_name': 'smtp_count_from_name', + 'valide': '1', + 'locked': '0'}, {'config_value': 1})['config_value']) + + partner_SMTP_COUNT_port = str(MYSY_GV.dbname['base_partner_setup'].find_one( + {'partner_owner_recid': str(my_partner['recid']), + 'config_name': 'smtp_count_port', + 'valide': '1', + 'locked': '0'}, {'config_value': 1})['config_value']) + + if (str(partner_own_smtp_value) == "1"): + smtpserver = smtplib.SMTP(partner_SMTP_COUNT_smtpsrv, partner_SMTP_COUNT_port) + else: + smtpserver = smtplib.SMTP(MYSY_GV.O365_SMTP_COUNT_smtpsrv, MYSY_GV.O365_SMTP_COUNT_port) + + if (str(partner_own_smtp_value) == "1"): + msg.attach(html_mime) + msg['From'] = partner_SMTP_COUNT_From_User + msg['Bcc'] = 'contact@mysy-training.com' + msg['Subject'] = courrier_template_data['sujet'] + # msg['to'] = "billardman01@hotmail.com" + toaddrs = ", ".join(tab_emails_destinataire) + msg['to'] = str(toaddrs) + + # Attacher l'eventuelle pièces jointes + for myfile in tab_files_to_attache_to_mail: + msg.attach(myfile['attached_file']) + + smtpserver.ehlo() + smtpserver.starttls() + smtpserver.login(partner_SMTP_COUNT_user, partner_SMTP_COUNT_password) + + else: + msg.attach(html_mime) + msg['From'] = MYSY_GV.O365_SMTP_COUNT_From_User + msg['Bcc'] = 'contact@mysy-training.com' + msg['Subject'] = courrier_template_data['sujet'] + # msg['to'] = "billardman01@hotmail.com" + toaddrs = ", ".join(tab_emails_destinataire) + msg['to'] = str(toaddrs) + + for myfile in tab_files_to_attache_to_mail: + msg.attach(myfile['attached_file']) + + smtpserver.ehlo() + smtpserver.starttls() + smtpserver.login(MYSY_GV.O365_SMTP_COUNT_user, MYSY_GV.O365_SMTP_COUNT_password) + + val = smtpserver.send_message(msg) + smtpserver.close() + print(" Email envoyé " + str(val)) + + """ + 25/01/2024 : pour loger une action dans la collection ==> courrier_template_tracking_history + """ + # Recuperation des données du stagiaire + inscription_data = MYSY_GV.dbname['inscription'].find({'session_id': str(diction['session_id']), + 'status': '1', + 'partner_owner_recid': str(my_partner['recid']), + 'client_rattachement_id': str( + diction['partner_client_id'])}) + + for inscription in inscription_data: + + local_status, local_retval = module_editique.Editic_Log_History_Action_From_courrier_template_type_document_ref_interne( + my_partner, "CONVENTION_STAGIAIRE_ENTREPRISE", str(diction['session_id']), 'inscription', + str(inscription['_id']), str(courrier_template_data['_id'])) + + #print(" local_status = ", local_status) + + + """ + # Ajout de l'evenement dans l'historique + """ + + # L'action n'est loggué pour les envois reels (en prod) + if (send_in_production == 1): + now = str(datetime.now().strftime("%d/%m/%Y %H:%M:%S")) + history_event_dict = {} + history_event_dict['token'] = diction['token'] + history_event_dict['related_collection'] = "partner_client" + history_event_dict['related_collection_recid'] = str(diction['partner_client_id']) + history_event_dict['action_date'] = str(now) + history_event_dict['action_description'] = "Convention envoyée par email à la liste : " + str( + tab_emails_destinataire) + local_status, local_retval = mycommon.Collection_Historique.Add_Historique_Event(history_event_dict) + if (local_status is False): + mycommon.myprint( + " WARNING : Impossible de logguer l'historique pour l'évènement : " + str(history_event_dict)) + + return True, "L'email a été correctement envoyé " + + except Exception as e: + exc_type, exc_obj, exc_tb = sys.exc_info() + mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno)) + return False, " Impossible d'envoyer la convention par email " + + diff --git a/main.py b/main.py index f4ffec7..9a66b73 100644 --- a/main.py +++ b/main.py @@ -2161,7 +2161,7 @@ def Duplicate_List_Session_Formation(): """ -API : pour préprer et envoyer les convention en partant d'une session +API : pour préparer et envoyer les convention en partant d'une session """ @app.route('/myclass/api/Prepare_and_Send_Convention_From_Session_By_Email/', methods=['POST','GET']) @crossdomain(origin='*') @@ -7762,6 +7762,29 @@ def Delete_Given_Site_Formation(): +""" +API : pour préparer et envoyer les factures en partant d'une session +""" +@app.route('/myclass/api/Prepare_and_Send_Facture_From_Session_By_Email/', methods=['POST','GET']) +@crossdomain(origin='*') +def Prepare_and_Send_Facture_From_Session_By_Email(): + # On recupere le corps (payload) de la requete + payload = mycommon.strip_dictionary (request.form.to_dict()) + print(" ### Prepare_and_Send_Facture_From_Session_By_Email : payload = ",str(payload)) + + file = [] + if request.method == 'POST': + # Create variable for uploaded file + tab_files = [] + for tmp in request.files.getlist("File"): + tab_files.append(tmp) + + status, retval = SF.Prepare_and_Send_Facture_From_Session_By_Email(tab_files, MYSY_GV.TEMPORARY_DIRECTORY_V2, payload) + return jsonify(status=status, message=retval) + + + + if __name__ == '__main__': print(" debut api") context = SSL.Context(SSL.SSLv23_METHOD) diff --git a/partner_document_mgt.py b/partner_document_mgt.py index 144dfbd..f769bfb 100644 --- a/partner_document_mgt.py +++ b/partner_document_mgt.py @@ -76,6 +76,43 @@ def Add_Partner_Document(diction): data = {} data['partner_owner_recid'] = my_partner['recid'] + if ("original_courrier_template_id" in diction.keys() and diction['original_courrier_template_id']): + is_original_courrier_template_id_valide = MYSY_GV.dbname['courrier_template'].count_documents( + {'_id': ObjectId(str(diction['original_courrier_template_id'])), + 'valide': '1', + 'locked': '0', + 'partner_owner_recid': 'default'}) + if (is_original_courrier_template_id_valide != 1): + mycommon.myprint( + str(inspect.stack()[0][ + 3]) + " L'identifiant du courrier d'origine (original_courrier_template_id) est invalide ") + + return False, " L'identifiant du courrier d'origine (original_courrier_template_id) est invalide " + + # Cette n'est ajoutée que le champ existe et est valide. donc l'indemtation est dans le 'if', normal + data['original_courrier_template_id'] = diction['original_courrier_template_id'] + + # Recuperation de quelques valeurs par défaut + is_original_courrier_template_id_data = MYSY_GV.dbname['courrier_template'].find_one( + {'_id': ObjectId(str(diction['original_courrier_template_id'])), + 'valide': '1', + 'locked': '0', + 'partner_owner_recid': 'default'}) + + if ("duplicate" in is_original_courrier_template_id_data.keys()): + data['duplicate'] = is_original_courrier_template_id_data['duplicate'] + + if ("joint_pdf" in is_original_courrier_template_id_data.keys()): + data['joint_pdf'] = is_original_courrier_template_id_data['joint_pdf'] + + if ("edit_by_client" in is_original_courrier_template_id_data.keys()): + data['edit_by_client'] = is_original_courrier_template_id_data['edit_by_client'] + + if ("type_doc" in is_original_courrier_template_id_data.keys()): + data['type_doc'] = is_original_courrier_template_id_data['type_doc'] + + + ref_interne = "" if ("ref_interne" in diction.keys()): if diction['ref_interne']: @@ -101,21 +138,6 @@ def Add_Partner_Document(diction): data['nom'] = nom - if( "original_courrier_template_id" in diction.keys() and diction['original_courrier_template_id']): - is_original_courrier_template_id_valide = MYSY_GV.dbname['courrier_template'].count_documents({'_id':ObjectId(str(diction['original_courrier_template_id'])), - 'valide':'1', - 'locked':'0', - 'partner_owner_recid':'default'}) - if( is_original_courrier_template_id_valide != 1 ): - mycommon.myprint( - str(inspect.stack()[0][ - 3]) + " L'identifiant du courrier d'origine (original_courrier_template_id) est invalide ") - - return False, " L'identifiant du courrier d'origine (original_courrier_template_id) est invalide " - - # Cette n'est ajoutée que le champ existe et est valide. donc l'indemtation est dans le 'if', normal - data['original_courrier_template_id'] = diction['original_courrier_template_id'] - sujet = "" if ("sujet" in diction.keys()): diff --git a/partner_invoice.py b/partner_invoice.py index 0f9fac1..80082ca 100644 --- a/partner_invoice.py +++ b/partner_invoice.py @@ -193,7 +193,7 @@ def Invoice_Partner_Order(diction): """ - # Rcuperation de la sequence de l'objet "partner_invoice_header" dans la collection : "mysy_sequence" + # Récuperation de la sequence de l'objet "partner_invoice_header" dans la collection : "mysy_sequence" retval_sequence_invoice = MYSY_GV.dbname['mysy_sequence'].find_one({'partner_invoice_header': 'partner_order_header', 'valide': '1', 'partner_owner_recid': str( my_partner['recid'])}) diff --git a/prj_common.py b/prj_common.py index 5a39952..cc7fdd0 100644 --- a/prj_common.py +++ b/prj_common.py @@ -4879,3 +4879,5 @@ def Get_Partner_Currency(partner_owner_recid): exc_type, exc_obj, exc_tb = sys.exc_info() myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno)) return False + +