diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 15b101d..7096f3f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,11 +1,10 @@ - + - - + @@ -427,7 +426,6 @@ - @@ -452,6 +450,7 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index 27c44d3..3ba8ca6 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1821501,3 +1821501,216 @@ INFO:root:2023-09-26 22:58:21.144137 : Security check : IP adresse '127.0.0.1' INFO:werkzeug:127.0.0.1 - - [26/Sep/2023 22:58:21] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - INFO:root:2023-09-26 22:58:27.516311 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [26/Sep/2023 22:58:27] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:08:59.991865 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-09-27 10:08:59.993865 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-09-27 10:08:59.993865 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-09-27 10:08:59.993865 : ++ FLASK PORT 5001 ++ +INFO:root:2023-09-27 10:08:59.993865 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-09-27 10:09:19.883324 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-09-27 10:09:19.883324 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-09-27 10:09:19.883324 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-09-27 10:09:19.883324 : ++ FLASK PORT 5001 ++ +INFO:root:2023-09-27 10:09:19.883324 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2023-09-27 10:09:46.014582 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:46.016931 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:46.018929 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:46] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:46] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:46] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:09:46.379431 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:46.382325 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:46] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:09:47.637205 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:47.639264 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:47.644534 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:09:47.654510 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:47.655870 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:47.658411 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:09:47.957300 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:47.958319 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:47.964739 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:09:47.976556 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:47.977556 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:47.979566 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:47] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:09:48.290180 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:48.292426 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:09:48.301085 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:48.305494 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:48.309511 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:09:48.314514 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:09:48.606929 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:09:48.607919 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:48] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:09:48] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:53.630553 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:53.633034 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:53.635031 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:53] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:53] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:53] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:54.543174 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:54.546168 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:54] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.069810 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:55.074118 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.080077 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:55.086565 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.090627 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:55.094418 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.103462 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:55.108795 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.115951 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:55.118624 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:55.124140 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.135208 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.142887 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:55.150192 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.155998 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.163651 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.172364 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.180219 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:55.185896 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:55.191633 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:55] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:58.720514 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:58] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:58.905770 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:58.910342 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:58.914702 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:58.920746 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:36:58.923250 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:58] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:58] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:58] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:58] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:36:58.982513 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:36:58] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:37:00.955555 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:37:00] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:37:00.958040 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:37:00] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:37:03.800978 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:37:03] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:37:08.187131 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:37:08] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:37:45.982902 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:37:45] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:37:52.317616 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:37:52] "POST /myclass/api/Get_Default_Partner_Document_By_Internal_Ref/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:38:02.876020 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:38:03.845803 : Update_Partner_Document - Le champ 'type_doc' n'est pas accepté. les valeurs acceptées sont ['sms', 'email', 'pdf'] +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:38:03] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:40:53.451662 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:40:53] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:40:53.455524 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:40:53] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:41:03.903524 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:41:03.907674 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:41:03] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:41:03.911674 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:41:03.916677 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:41:03] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:41:03] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:41:04.039042 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:41:04] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:41:04.042085 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:41:04] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:41:06.791293 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:41:06] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:41:17.011001 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:41:17] "POST /myclass/api/Get_Default_Partner_Document_By_Internal_Ref/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:41:51.728908 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:41:51] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:41:51.731920 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:41:51] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:42:50.671014 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:42:50] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:42:50.674382 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:42:50] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:31.440105 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:31] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:31.444635 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:31] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:39.735480 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:43:39.745407 : Update_Partner_Document - Le champ 'type_doc' n'est pas accepté. les valeurs acceptées sont ['sms', 'email', 'pdf'] +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:39] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:46.406585 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:43:46.410379 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:46] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:46.414894 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:46] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:46.422921 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:46] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:46.533252 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:46] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:46.537251 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:46] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:49.242956 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:49] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:53.197530 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:53] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:43:56.761968 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:43:56] "POST /myclass/api/Get_Default_Partner_Document_By_Internal_Ref/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:44:08.500762 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-27 10:44:08.510887 : Update_Partner_Document - Le champ 'type_doc' n'est pas accepté. les valeurs acceptées sont ['sms', 'email', 'pdf'] +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:44:08] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\partner_document_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-09-27 10:45:46.859779 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-09-27 10:45:46.859779 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-09-27 10:45:46.860785 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-09-27 10:45:46.860785 : ++ FLASK PORT 5001 ++ +INFO:root:2023-09-27 10:45:46.860785 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 877-541-979 +INFO:root:2023-09-27 10:45:55.396347 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:45:55] "POST /myclass/api/Update_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:45:56.039179 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:45:56] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:46:10.741918 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:46:10] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 - +INFO:root:2023-09-27 10:46:17.556082 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:46:17] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 - diff --git a/partner_document_mgt.py b/partner_document_mgt.py index 8dae877..1f4d662 100644 --- a/partner_document_mgt.py +++ b/partner_document_mgt.py @@ -130,7 +130,7 @@ def Add_Partner_Document(diction): if ("type_doc" in diction.keys()): if diction['type_doc']: type_doc = diction['type_doc'] - if (type_doc not in MYSY_GV.MODELE_DOCUMENT_TYPE ): + if (str(type_doc).lower().strip() not in MYSY_GV.MODELE_DOCUMENT_TYPE ): mycommon.myprint( str(inspect.stack()[0][ 3]) + " - Le champ 'type_doc' n'est pas accepté. les valeurs acceptées sont "+str(MYSY_GV.MODELE_DOCUMENT_TYPE)) @@ -302,7 +302,7 @@ def Update_Partner_Document(diction): if ("type_doc" in diction.keys()): if diction['type_doc']: type_doc = diction['type_doc'] - if (type_doc not in MYSY_GV.MODELE_DOCUMENT_TYPE): + if (str(type_doc).lower().strip() not in MYSY_GV.MODELE_DOCUMENT_TYPE): mycommon.myprint( str(inspect.stack()[0][ 3]) + " - Le champ 'type_doc' n'est pas accepté. les valeurs acceptées sont " + str(