From 553d765a715254c2f0be8ead899936d0d3d7bac8 Mon Sep 17 00:00:00 2001 From: cherif Date: Tue, 22 Aug 2023 20:00:26 +0200 Subject: [PATCH] 22/08/23 - 20h --- .idea/workspace.xml | 29 ++--- Log/log_file.log | 277 +++++++++++++++++++++++++++++++++++++++++ ressources_humaines.py | 10 +- 3 files changed, 294 insertions(+), 22 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 80df766..4a44ec5 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,15 +1,10 @@ - + - - - - - - + @@ -431,7 +426,6 @@ - @@ -456,6 +450,7 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index 4444199..8c24397 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1773414,3 +1773414,280 @@ INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 13:08:23] "POST /myclass/api/GetSession INFO:root:2023-08-22 13:08:24.583472 : Security check : IP adresse '127.0.0.1' connected INFO:root:2023-08-22 13:08:25.108496 : GetSpecificPartnerAttestation_Certificat Impossible de recuperer les données de ce template INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 13:08:25] "POST /myclass/api/GetSpecificPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:22.886068 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-22 18:41:22.887069 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-22 18:41:22.887069 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-22 18:41:22.888081 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-22 18:41:22.888081 : ++ 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-08-22 18:41:44.957333 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-22 18:41:44.957333 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-22 18:41:44.958333 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-22 18:41:44.958333 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-22 18:41:44.958333 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 100-515-922 +INFO:root:2023-08-22 18:41:55.224708 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:55.225837 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:55.228921 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:55] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:55] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:55] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:55.826366 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:55.828613 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:55] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.320958 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.325003 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.330004 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.336001 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.337001 : La session de connexion n'est pas valide +INFO:root:2023-08-22 18:41:56.339043 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.345520 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.349264 : La session de connexion n'est pas valide +INFO:root:2023-08-22 18:41:56.350274 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.358250 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.360272 : La session de connexion n'est pas valide +INFO:root:2023-08-22 18:41:56.364492 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.370484 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.374495 : La session de connexion n'est pas valide +INFO:root:2023-08-22 18:41:56.376488 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.381469 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.386724 : La session de connexion n'est pas valide +INFO:root:2023-08-22 18:41:56.389045 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.395408 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.396411 : La session de connexion n'est pas valide +INFO:root:2023-08-22 18:41:56.400532 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.409791 : La session de connexion n'est pas valide +INFO:root:2023-08-22 18:41:56.411783 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.414296 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.420768 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.435378 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.436971 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.438659 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:41:56.445142 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:41:56.448250 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:41:56] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:51:19.438165 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:19] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:51:19.779347 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:51:19.783344 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:51:19.787504 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:51:19.793604 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:19] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:19] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:51:19.806349 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:19] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:19] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:51:19.869675 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:19] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:51:21.647946 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:51:21.650293 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:51:21.655851 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:51:21.659646 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:21] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:21] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:21] "POST /myclass/api/Get_Statgaire_List_Partner_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:51:23.031699 : GetAllValideSessionPartner_List -'session_etape' - ERRORRRR AT Line : 677 +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:51:23] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:57:11.694627 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:57:11.697179 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:57:11.706632 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:57:11] "POST /myclass/api/getRecodedParnterImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:57:11] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:58:37.857317 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:58:37] "POST /myclass/api/Add_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 18:58:37.872692 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:58:37.894281 : Add_Ressource_Humaine - La valeur 'related_collection' n'est pas presente dans liste +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:58:37] "POST /myclass/api/Add_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\ressources_humaines.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-22 18:59:03.317305 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-22 18:59:03.317305 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-22 18:59:03.317305 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-22 18:59:03.317305 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-22 18:59:03.318305 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 100-515-922 +INFO:root:2023-08-22 18:59:39.735370 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:59:39] "POST /myclass/api/Add_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 18:59:39.741599 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:59:39] "POST /myclass/api/Add_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 18:59:57.003384 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:59:57] "POST /myclass/api/Add_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 18:59:57.011004 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 18:59:57.539578 : Add_Ressource_Humaine - Il existe déjà une personne qui porte le même email principal = email_employe1@mysy.com +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 18:59:57] "POST /myclass/api/Add_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\ressources_humaines.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-22 19:00:43.325074 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-22 19:00:43.325074 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-22 19:00:43.325074 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-22 19:00:43.325074 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-22 19:00:43.325074 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 100-515-922 +INFO:root:2023-08-22 19:00:49.487098 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:00:49] "POST /myclass/api/Add_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 19:00:49.494175 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:00:49] "POST /myclass/api/Add_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:01:02.630049 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:01:02] "POST /myclass/api/Add_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 19:01:02.638007 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:01:02] "POST /myclass/api/Add_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:01:46.622645 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:01:46] "POST /myclass/api/Add_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 19:01:46.630712 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:01:46] "POST /myclass/api/Add_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:01:50.312047 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:01:50] "POST /myclass/api/Add_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 19:01:50.318430 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:01:50.874544 : Add_Ressource_Humaine - Il existe déjà une personne qui porte le même email principal = email_employe3@mysy.com +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:01:50] "POST /myclass/api/Add_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:02:23.360211 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:02:23] "POST /myclass/api/Add_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 19:02:23.368741 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:02:23] "POST /myclass/api/Add_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:02:41.779146 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:02:41] "POST /myclass/api/Add_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 19:02:41.787254 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:02:41] "POST /myclass/api/Add_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:03:23.256439 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:03:23] "POST /myclass/api/Get_List_Ressource_Humaine HTTP/1.1" 308 - +INFO:root:2023-08-22 19:03:23.264822 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:03:23] "POST /myclass/api/Get_List_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:03:39.179723 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:03:39] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter HTTP/1.1" 308 - +INFO:root:2023-08-22 19:03:39.194165 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:03:39] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:04:06.970729 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:04:06] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter HTTP/1.1" 308 - +INFO:root:2023-08-22 19:04:06.977746 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:04:06] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:22:07.238981 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:22:07.242005 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:22:07.244998 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:22:07] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:22:07.257596 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:22:07] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:22:07] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:22:11.176253 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:22:11] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:23:54.441417 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:23:54] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:25:33.222045 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:25:33] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\ressources_humaines.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-22 19:33:26.644226 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-22 19:33:26.644226 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-22 19:33:26.644226 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-22 19:33:26.644226 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-22 19:33:26.644226 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 100-515-922 +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\ressources_humaines.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-22 19:34:06.482991 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-22 19:34:06.482991 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-22 19:34:06.482991 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-22 19:34:06.482991 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-22 19:34:06.482991 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 100-515-922 +INFO:root:2023-08-22 19:43:55.309997 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:43:55] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:44:26.585972 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:44:26.589589 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:44:26.592763 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:44:26.598516 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:44:26] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:44:26.608637 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:44:26] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:44:26] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:44:26] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:44:26.741865 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:44:26] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:49:53.312650 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:49:53] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:50:03.050491 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:50:03] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:51:53.410057 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:51:53] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:52:02.694640 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:52:02.698746 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:52:02.703943 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:52:02] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:52:02.709756 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:52:02] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:52:02.719178 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:52:02] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:52:02] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:52:02.845271 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:52:02] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:52:10.543621 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:52:10] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:52:14.656452 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:52:14] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:53:08.503064 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:53:08] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:53:31.947694 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:53:31.951695 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:53:31.956254 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:53:31.963910 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:53:31] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:53:31.975908 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:53:31] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:53:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:53:31] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:53:32.099745 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:53:32] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:53:34.728809 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:53:34] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:53:37.958438 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:53:37] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\ressources_humaines.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-08-22 19:55:44.136603 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-22 19:55:44.136603 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-22 19:55:44.136603 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-22 19:55:44.136603 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-22 19:55:44.136603 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 100-515-922 +INFO:root:2023-08-22 19:56:13.187668 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:56:13.193671 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:56:13.198669 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:56:13.200678 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-22 19:56:13.218462 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:56:13] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:56:13] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:56:13] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:56:13] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:56:13.321095 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:56:13] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:56:14.830829 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:56:14] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-22 19:56:17.793679 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [22/Aug/2023 19:56:17] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - diff --git a/ressources_humaines.py b/ressources_humaines.py index 6e15a1c..ecd70ec 100644 --- a/ressources_humaines.py +++ b/ressources_humaines.py @@ -40,7 +40,7 @@ def Add_Ressource_Humaine(diction): """ field_list = ['token', "nom", "email", "telephone", "website", "comment",'adr_adresse', 'adr_code_postal', 'adr_ville', 'adr_pays', 'profil', 'telephone_mobile', 'linkedin', - 'facebook', 'twitter', 'prenom', 'fonction', 'civilite'] + 'facebook', 'twitter', 'prenom', 'fonction', 'civilite', 'resp_hierarchie_id'] incom_keys = diction.keys() for val in incom_keys: @@ -52,7 +52,7 @@ def Add_Ressource_Humaine(diction): """ Verification des champs obligatoires """ - field_list_obligatoire = ['token', "email", 'related_collection', 'related_collection_owner_email',] + field_list_obligatoire = ['token', "email", ] for val in field_list_obligatoire: if val not in diction: @@ -99,7 +99,7 @@ def Add_Ressource_Humaine(diction): str(inspect.stack()[0][ 3]) + " - Il existe déjà une personne qui porte le même email principal = " +str(diction['email'])) - return False, " - Vous avez déjà une personne qui a le même email principal " + return False, " - Vous avez déjà une personne qui a le même email principal " +str(diction['email'])+" " @@ -268,7 +268,7 @@ def Update_Ressource_Humaine(diction): field_list = ['token', "raison_sociale", "nom", "prenom", "email", "telephone", "website", "comment",'adr_adresse', 'adr_code_postal', 'adr_ville', 'adr_pays', 'profil', 'telephone_mobile', 'linkedin', - 'facebook', 'twitter', '_id', 'prenom', 'fonction', 'civilite'] + 'facebook', 'twitter', '_id', 'prenom', 'fonction', 'civilite', 'resp_hierarchie_id'] incom_keys = diction.keys() @@ -709,7 +709,7 @@ def Get_Given_Ressource_Humaine(diction): """ data_cle = {} data_cle['partner_recid'] = str(my_partner['recid']) - data_cle['_id'] = str(diction['_id']) + data_cle['_id'] = ObjectId(str(diction['_id'])) data_cle['valide'] = "1" data_cle['locked'] = "0"