From 6017796f3c7c4d6bd8aea6e8830cca36fd3fe807 Mon Sep 17 00:00:00 2001 From: cherif Date: Sun, 27 Aug 2023 13:34:59 +0200 Subject: [PATCH] 27/08/23 - 13h --- .idea/workspace.xml | 22 +- Log/log_file.log | 685 +++++++++++++++++++++++++++++++++++++++++ main.py | 25 ++ ressources_humaines.py | 205 +++++++++++- 4 files changed, 921 insertions(+), 16 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index a5784bf..c0a35aa 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,7 @@ - + @@ -69,13 +69,6 @@ @@ -427,7 +427,6 @@ - @@ -452,6 +451,7 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index ca39b08..6ae5e0b 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1782142,3 +1782142,688 @@ INFO:werkzeug:127.0.0.1 - - [26/Aug/2023 19:56:49] "POST /myclass/api/Get_Given_ INFO:werkzeug:127.0.0.1 - - [26/Aug/2023 19:56:49] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [26/Aug/2023 19:56:49] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ 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-26 19:58:15.302300 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-26 19:58:15.302300 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-26 19:58:15.303314 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-26 19:58:15.303314 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-26 19:58:15.303314 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 10:01:53.722289 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:01:53.722424 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:01:53.722424 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:01:53.722424 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:01:53.722424 : ++ 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-27 10:02:12.630031 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:02:12.630031 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:02:12.630031 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:02:12.630031 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:02:12.631520 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 10:03:11.309601 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:11.312682 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:11.314738 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:11] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:11] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:11] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:12.485408 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:12.488348 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:12] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.183534 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.187019 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.192008 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.196654 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.201046 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.205938 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.212531 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.213526 : La session de connexion n'est pas valide +INFO:root:2023-08-27 10:03:13.216137 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.220575 : La session de connexion n'est pas valide +INFO:root:2023-08-27 10:03:13.221987 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.225966 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.231891 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.240368 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.240368 : La session de connexion n'est pas valide +INFO:root:2023-08-27 10:03:13.243149 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.250593 : La session de connexion n'est pas valide +INFO:root:2023-08-27 10:03:13.253003 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.256664 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.257678 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.268445 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.270442 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.275450 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.282416 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.291759 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.294361 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.299770 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:13.306738 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.309758 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:13.315675 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:13] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:17.089869 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:17] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:17.277361 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:17.280568 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:17.285563 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:17.290082 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:17] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:17] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:17.303981 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:17] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:17] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:17.365305 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:17] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:23.066036 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:23.073395 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:23.079697 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:23] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:23] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:23] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:03:29.144056 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:29.149618 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:03:29.156798 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:29] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:29] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:03:29] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ 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-27 10:04:36.060785 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:04:36.061784 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:04:36.061784 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:04:36.061784 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:04:36.061784 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +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-27 10:05:54.924401 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:05:54.924401 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:05:54.924401 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:05:54.925401 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:05:54.925401 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +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-27 10:20:56.817156 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:20:56.817156 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:20:56.817156 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:20:56.818166 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:20:56.818166 : ++ 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-27 10:21:07.788209 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:21:07.788209 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:21:07.788209 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:21:07.788209 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:21:07.788209 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 10:22:55.454545 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:22:55.458678 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:22:55.461019 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:22:55] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:22:55] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:22:55] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:25:57.428699 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:25:57.434710 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:25:57.437489 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:25:57] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:25:57] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:25:57] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:33:05.014420 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:33:05.019968 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:33:05] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:33:05.026965 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:33:05.033190 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:33:05] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:33:05] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:33:05.191587 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:33:05.195113 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:33:05.197517 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:33:05] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:33:05] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:33:05] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:33:10.474932 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:33:10.478366 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:33:10.482925 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:33:10] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:33:10] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:33:10] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ 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-27 10:34:19.924287 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:34:19.924287 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:34:19.924287 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:34:19.925288 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:34:19.925288 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 10:34:19.982727 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:34:19.986739 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:34:19.989669 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:34:19.993307 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:34:19.996695 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:34:20] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:34:20.003046 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:34:20] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:34:20] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:34:20] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:34:20.041159 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:34:20] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:34:20] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:34:56.484534 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:34:56.487937 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:34:56.491939 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:34:56] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:34:56] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:34:56] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ 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-27 10:36:17.697230 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:36:17.698240 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:36:17.698240 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:36:17.698240 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:36:17.698240 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 10:37:26.270721 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:37:26.273810 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:37:26.278655 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:37:26] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:37:26.290425 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:37:26] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:37:26] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:37:26.716292 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:37:26.721170 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:37:26.726011 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:37:26] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:37:26] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:37:26] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:38:11.305769 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:38:11.312764 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:38:11] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:38:11.317237 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:38:11.325984 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:38:11] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:38:11] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:38:11.469941 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:38:11.474435 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:38:11.476432 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:38:11] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:38:11] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:38:11] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:38:16.426014 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:38:16.430373 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:38:16.434340 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:38:16] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:38:16] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:38:16] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ 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-27 10:40:17.381162 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:40:17.381162 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:40:17.381162 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:40:17.381162 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:40:17.381162 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 10:40:18.337946 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:40:18.341941 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:40:18.344669 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:40:18] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:40:18] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:40:18] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:40:23.327780 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:40:23.331458 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:40:23.334748 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:40:23] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:40:23] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:40:23] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ 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-27 10:43:01.336104 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:43:01.337102 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:43:01.337102 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:43:01.337102 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:43:01.337102 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 10:43:01.565761 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:43:01.569311 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:43:01.572589 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:43:01] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:43:01] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:43:01] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 10:43:07.149231 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:43:07.154251 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 10:43:07.158254 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:43:07] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:43:07] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 10:43:07] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ 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-27 10:43:52.205400 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 10:43:52.205400 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 10:43:52.205400 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 10:43:52.205400 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 10:43:52.205400 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +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:2023-08-27 11:08:37.642698 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 11:08:37.642698 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 11:08:37.642698 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 11:08:37.643708 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 11:08:37.643708 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 11:18:53.480679 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:18:53.485688 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:18:53.491010 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:18:53] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:18:53] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:18:53] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:19:18.507469 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:19:18.512733 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:19:18.518229 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:18] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:19:18.529888 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:18] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:18] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:19:18.727161 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:19:18.732012 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:19:18.737600 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:18] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:18] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:18] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:19:28.994646 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:19:28.997666 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:19:29.000745 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:29] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:29] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:29] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:19:35.698049 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:35] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:19:43.349439 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:19:43] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:24:54.929254 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:24:54.932182 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:24:54.936012 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:24:54] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:24:54] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:24:54] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:27:26.920719 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:27:26.924330 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:27:26.926936 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:27:26] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:27:26] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:27:26] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:27:56.897784 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:27:56.900729 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:27:56.904741 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:27:56] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:27:56] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:27:56] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:28:05.620521 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:28:05] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:34:31.315942 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:34:31.319321 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:34:31.323343 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:34:31] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:34:31] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:34:31] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:42:44.489671 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:42:44.491706 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:42:44.495698 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:42:44] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:42:44] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:42:44] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 11:42:59.546792 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:42:59.549468 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 11:42:59.552746 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:42:59] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:42:59] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 11:42:59] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:08:14.006727 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 12:08:14.006727 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 12:08:14.006727 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 12:08:14.006727 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 12:08:14.006727 : ++ 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-27 12:08:27.047002 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 12:08:27.047989 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 12:08:27.047989 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 12:08:27.047989 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 12:08:27.047989 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 12:10:45.369779 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:45.371996 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:45.375079 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:45] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:45] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:45] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.055505 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.057530 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.538409 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.543379 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.550368 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.551491 : La session de connexion n'est pas valide +INFO:root:2023-08-27 12:10:46.552823 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.560636 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.562644 : La session de connexion n'est pas valide +INFO:root:2023-08-27 12:10:46.566215 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.574493 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.581334 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.581334 : La session de connexion n'est pas valide +INFO:root:2023-08-27 12:10:46.587338 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.596016 : La session de connexion n'est pas valide +INFO:root:2023-08-27 12:10:46.597333 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.604382 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.608375 : La session de connexion n'est pas valide +INFO:root:2023-08-27 12:10:46.609375 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.612375 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.615883 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.620467 : La session de connexion n'est pas valide +INFO:root:2023-08-27 12:10:46.621471 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.626473 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.635065 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.638761 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.644081 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.649564 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.653949 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 12:10:46.657424 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.660428 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-08-27 12:10:46.668870 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:10:46] "POST /myclass/api/GetActiveSessionFormation_List/ 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-27 12:31:57.835451 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 12:31:57.835451 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 12:31:57.835451 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 12:31:57.835451 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 12:31:57.835451 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +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-27 12:37:32.855172 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 12:37:32.855172 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 12:37:32.856197 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 12:37:32.857225 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 12:37:32.857225 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +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-27 12:48:57.663053 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 12:48:57.664052 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 12:48:57.664052 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 12:48:57.664052 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 12:48:57.664052 : ++ 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-27 12:49:08.602577 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 12:49:08.603578 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 12:49:08.603578 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 12:49:08.603578 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 12:49:08.603578 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +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:2023-08-27 12:52:28.511347 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-08-27 12:52:28.511347 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-08-27 12:52:28.511347 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-08-27 12:52:28.511347 : ++ FLASK PORT 5001 ++ +INFO:root:2023-08-27 12:52:28.511347 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 921-181-024 +INFO:root:2023-08-27 12:53:12.730864 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:53:12] "POST /myclass/api/Get_Related_Target_Collection_Data HTTP/1.1" 308 - +INFO:root:2023-08-27 12:53:12.743949 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 12:53:12] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:07:42.669553 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:42] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:07:43.038206 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:07:43.043987 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:07:43.050597 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:07:43.056205 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:43] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:43] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:07:43.077990 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:43] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:43] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:07:43.207086 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:43] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:07:50.357048 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:07:50.363032 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:07:50.368135 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:07:50.375561 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:50] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:50] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:50] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:50] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:07:57.334252 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:07:57.340289 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:07:57.348726 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:57] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:57] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:07:57] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:08:20.232820 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:08:20] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:09:55.627849 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:09:55.635119 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:09:55.642476 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:09:55] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:09:55.648482 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:09:55] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:09:55] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:09:55] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:14:44.821865 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:14:44.827864 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:14:44.835057 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:44] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:44] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:14:44.848527 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:44] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:14:45.100422 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:14:45.108516 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:14:45.115931 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:45] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:14:45.122963 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:45] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:45] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:45] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:14:58.776750 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:14:58.790905 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:14:58.801908 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:58] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:58] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:14:58] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:15:19.590750 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:15:19] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:16:38.790289 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:16:38.796306 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:16:38] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:16:38.800304 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:16:38.809365 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:16:38] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:16:38] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:16:38.952241 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:16:38.957586 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:16:38.963935 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:16:38.969351 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:16:38] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:16:38] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:16:38] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:16:38] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:17:05.307574 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:17:05.313572 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:17:05.317682 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:17:05] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:17:05] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:17:05] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:17:13.194857 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:17:13] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:22:51.162390 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:22:51.170408 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:22:51] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:22:51.176824 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:22:51.184030 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:22:51] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:22:51] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:22:51.360612 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:22:51.365488 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:22:51.372574 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:22:51] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:22:51.379965 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:22:51] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:22:51] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:22:51] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:23:07.095336 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:23:07.102336 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:23:07.107336 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:23:07] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:23:07] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:23:07] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:23:15.560096 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:23:15] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:26:55.994674 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:26:56] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:26:56.003301 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:26:56.008348 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:26:56] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:26:56.018337 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:26:56] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:26:56.209985 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:26:56.214083 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:26:56.220354 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:26:56] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:26:56.227049 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:26:56] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:26:56] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:26:56] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:28:28.561415 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:28:28.567413 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:28:28.574939 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:28:28] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:28:28] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:28:28] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:28:36.579642 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:28:36] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:29:22.750704 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:29:22.758694 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:29:22.763400 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:22] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:29:22.772843 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:22] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:29:22.920048 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:29:22.925041 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:29:22.930041 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:29:22.936061 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:22] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:22] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:22] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:22] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:29:52.182254 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:29:52.189544 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:52] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:29:52.198349 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:29:52.206343 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:52] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:52] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:29:52.372850 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:29:52.377869 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:52] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:29:52.389391 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:52] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:29:52.406248 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:52] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:29:52] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:30:05.149226 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:30:05.156383 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:30:05.161399 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:30:05] "POST /myclass/api/Get_Given_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:30:05] "POST /myclass/api/getRecoded_Employee_Image_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:30:05] "POST /myclass/api/Get_List_Ressource_Humaine_Affectation/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:30:12.960004 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:30:12] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:31:55.272155 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:31:55.275541 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:31:55.280545 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:31:55.285545 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:31:55] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:31:55] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:31:55] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:31:55] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:33:39.370453 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:33:39.381529 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:33:39.383531 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:33:39.395087 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:33:39] "POST /myclass/api/Get_List_Ressource_Humaine_with_filter/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:33:39] "POST /myclass/api/Get_List_Profil_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:33:39] "POST /myclass/api/Get_List_Manager_Ressource_Humaine/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:33:39] "POST /myclass/api/Get_Related_Target_Collection_Data/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:33:41.866869 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:33:41] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:33:45.720506 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:33:45] "POST /myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - +INFO:root:2023-08-27 13:34:07.978211 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-08-27 13:34:09.578373 : Update_Affectation_Ressource_Humaine_Poste Le champ 'p_affect_comment' n'est pas autorisé +INFO:werkzeug:127.0.0.1 - - [27/Aug/2023 13:34:09] "POST /myclass/api/Update_Affectation_Ressource_Humaine_Poste/ HTTP/1.1" 200 - diff --git a/main.py b/main.py index af98878..2737805 100644 --- a/main.py +++ b/main.py @@ -3882,6 +3882,31 @@ def Delete_Affectation_Ressource_Humaine_Poste(): status, retval = ressources_humaines.Delete_Affectation_Ressource_Humaine_Poste(payload) return jsonify(status=status, message=retval) +""" +API pour recuperer une affectation donnée +""" +@app.route('/myclass/api/Get_Given_Affectation_Ressource_Humaine_Poste/', methods=['POST','GET']) +@crossdomain(origin='*') +def Get_Given_Affectation_Ressource_Humaine_Poste(): + # On recupere le corps (payload) de la requete + payload = mycommon.strip_dictionary (request.form.to_dict()) + print(" ### Get_Given_Affectation_Ressource_Humaine_Poste payload = ",payload) + status, retval = ressources_humaines.Get_Given_Affectation_Ressource_Humaine_Poste(payload) + return jsonify(status=status, message=retval) + +""" +API pour recuperer la liste des 'related_target_collection_object' avec les 'related_target_collection_id_nom' +et de les formater pour une utilisation simple coté front. +""" +@app.route('/myclass/api/Get_Related_Target_Collection_Data/', methods=['POST','GET']) +@crossdomain(origin='*') +def Get_Related_Target_Collection_Data(): + # On recupere le corps (payload) de la requete + payload = mycommon.strip_dictionary (request.form.to_dict()) + print(" ### Get_Related_Target_Collection_Data payload = ",payload) + status, retval = ressources_humaines.Get_Related_Target_Collection_Data(payload) + return jsonify(status=status, message=retval) + diff --git a/ressources_humaines.py b/ressources_humaines.py index a7e2a9c..68d30ff 100644 --- a/ressources_humaines.py +++ b/ressources_humaines.py @@ -1848,6 +1848,11 @@ def Controle_Add_Ressource_Humaine_mass(saved_file=None, Folder=None, diction=No """" Recuperer les affectations d'un employé +:!\ : Pour le moment une affectation ne peut concerner que +- Une formation (collection : myclass) ou +- Une session de formation (collection session_formation) ou +- rien du tout (cela veut dire que la fonction concene le partenaire, donc l'ecole. +exemple : Directeur des etude, etc) """ def Get_List_Ressource_Humaine_Affectation(diction): try: @@ -1858,17 +1863,14 @@ def Get_List_Ressource_Humaine_Affectation(diction): mycommon.myprint( str(inspect.stack()[0][ 3]) + " La valeur '" + val + "' n'est pas presente dans liste ") - return False, " Impossible d'imprimer la fiche detaillée" + 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'] - internal_url = "" - if ("internal_url" in diction.keys()): - if diction['internal_url']: - internal_url = diction['internal_url'] + # Recuperation du recid du partenaire partner_recid = mycommon.get_parnter_recid_from_token(str(my_token)) @@ -1896,6 +1898,42 @@ def Get_List_Ressource_Humaine_Affectation(diction): user = retval user['id'] = str(val_tmp) val_tmp = val_tmp + 1 + + related_target_collection_id_nom = "" + related_target_collection_object = "" + + # Si l'affectation a un 'related_target_collection_id', alors cela veut dire qu'il faut aller chercheer + # la cible de cette affection. + if( "related_target_collection_id" in retval.keys() and "related_target_collection" in retval.keys()): + if( retval["related_target_collection_id"] and retval["related_target_collection"]): + + # Si l'affectation concerne une formation + if( retval["related_target_collection"] == "myclass"): + affectation_target_data = MYSY_GV.dbname[retval["related_target_collection"]].find_one({"_id":ObjectId(str( retval["related_target_collection_id"])), + 'partner_owner_recid':str(partner_recid), + 'valide':'1', 'locked':"0"}) + + if(affectation_target_data is not None): + related_target_collection_id_nom = affectation_target_data["title"] + related_target_collection_object = "Formation" + + elif ( retval["related_target_collection"] == "session_formation") : + # Si l'affectation concerne une session + affectation_target_data = MYSY_GV.dbname[retval["related_target_collection"]].find_one( + {"_id": ObjectId(str(retval["related_target_collection_id"])), + 'partner_owner_recid': str(partner_recid), + 'valide': '1'}) + + if (affectation_target_data is not None): + related_target_collection_id_nom = affectation_target_data["code_session"] + related_target_collection_object = "Session de formation" + + + + + user['related_target_collection_id_nom'] = related_target_collection_id_nom + user['related_target_collection_object'] = related_target_collection_object + RetObject.append(mycommon.JSONEncoder().encode(user)) return True, RetObject @@ -2334,3 +2372,160 @@ def Delete_Affectation_Ressource_Humaine_Poste(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 de supprimer cette affectation " + + +def Get_Given_Affectation_Ressource_Humaine_Poste(diction): + try: + field_list_obligatoire = ['token', 'affectation_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'] + + # Recuperation du recid du partenaire + partner_recid = mycommon.get_parnter_recid_from_token(str(my_token)) + if partner_recid is False: + mycommon.myprint(str(inspect.stack()[0][3]) + " - Impossible d'imprimer la fiche detaillée") + return False, " Les informations d'identification sont invalides" + + local_status, my_partner_data = mycommon.Check_Connexion_And_Return_Partner_Data(diction) + if (local_status is not True): + return local_status, my_partner_data + + qry_affectation = {'partner_owner_recid': str(my_partner_data['recid']), + '_id': ObjectId(str(diction['affectation_id'])), + 'valide': '1', 'locked': '0'} + + print(" ### qry_affectation = ", qry_affectation) + + RetObject = [] + val_tmp = 1 + + for retval in MYSY_GV.dbname['ressource_humaine_affectation'].find(qry_affectation): + user = retval + user['id'] = str(val_tmp) + val_tmp = val_tmp + 1 + + related_target_collection_id_nom = "" + related_target_collection_object = "" + + # Si l'affectation a un 'related_target_collection_id', alors cela veut dire qu'il faut aller chercheer + # la cible de cette affection. + if ("related_target_collection_id" in retval.keys() and "related_target_collection" in retval.keys()): + if (retval["related_target_collection_id"] and retval["related_target_collection"]): + + # Si l'affectation concerne une formation + if (retval["related_target_collection"] == "myclass"): + affectation_target_data = MYSY_GV.dbname[retval["related_target_collection"]].find_one( + {"_id": ObjectId(str(retval["related_target_collection_id"])), + 'partner_owner_recid': str(partner_recid), + 'valide': '1', 'locked': "0"}) + + if (affectation_target_data is not None): + related_target_collection_id_nom = affectation_target_data["title"] + related_target_collection_object = "Formation" + + elif (retval["related_target_collection"] == "session_formation"): + # Si l'affectation concerne une session + affectation_target_data = MYSY_GV.dbname[retval["related_target_collection"]].find_one( + {"_id": ObjectId(str(retval["related_target_collection_id"])), + 'partner_owner_recid': str(partner_recid), + 'valide': '1'}) + + if (affectation_target_data is not None): + related_target_collection_id_nom = affectation_target_data["code_session"] + related_target_collection_object = "Session de formation" + + user['related_target_collection_id_nom'] = related_target_collection_id_nom + user['related_target_collection_object'] = related_target_collection_object + + RetObject.append(mycommon.JSONEncoder().encode(user)) + + return True, RetObject + + 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 recuperer l'affectation de l'employé " + +""" +Cette API permet de recuperer la liste des 'related_target_collection_object' avec les 'related_target_collection_id_nom' +et de les formater pour une utilisation simple coté front. + +les collections cibles sont : +- les formations et les sessions de formation. + +ex : +{ +{'related_target_collection':'session_formation', + 'related_target_collection_id':'64e797fd168e0c57cefe4fd0' + 'related_target_collection_id_nom' : 'ch_Manual_1' + }, + {'related_target_collection':'myclass', + 'related_target_collection_id':'64e79630ea7b810a3d835ceb' + 'related_target_collection_id_nom' : 'PRATICIEN EN AROMATHERAPIE INTEGRATIVE' + }, +} + +""" +def Get_Related_Target_Collection_Data(diction): + try: + field_list_obligatoire = ['token', ] + + 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'] + + # Recuperation du recid du partenaire + partner_recid = mycommon.get_parnter_recid_from_token(str(my_token)) + if partner_recid is False: + mycommon.myprint(str(inspect.stack()[0][3]) + " - Impossible d'imprimer la fiche detaillée") + return False, " Les informations d'identification sont invalides" + + local_status, my_partner_data = mycommon.Check_Connexion_And_Return_Partner_Data(diction) + if (local_status is not True): + return local_status, my_partner_data + + RetObject = [] + + # Recuperation des données des formations + for retval in MYSY_GV.dbname['myclass'].find({'partner_owner_recid':str(partner_recid), + 'valide':'1', 'locked':'0'}, {'_id':1, 'title':1}): + + retval_data = {} + retval_data['related_target_collection'] = "myclass" + retval_data['related_target_collection_id'] = str(retval['_id']) + retval_data['related_target_collection_id_nom'] = str(retval['title']) + RetObject.append(mycommon.JSONEncoder().encode(retval_data)) + + # Recuperation des données des sessions + for retval in MYSY_GV.dbname['session_formation'].find({'partner_owner_recid': str(partner_recid), + 'valide': '1'}, {'_id': 1, 'code_session': 1}): + retval_data = {} + retval_data['related_target_collection'] = "session_formation" + retval_data['related_target_collection_id'] = str(retval['_id']) + retval_data['related_target_collection_id_nom'] = str(retval['code_session']) + RetObject.append(mycommon.JSONEncoder().encode(retval_data)) + + return True, RetObject + + 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 recuperer les information des cibles " \ No newline at end of file