diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 3ef60e6..c4aad60 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,12 +1,12 @@ - + - + @@ -428,7 +428,6 @@ - @@ -453,6 +452,7 @@ - \ No newline at end of file diff --git a/Log/log_file.log b/Log/log_file.log index 3674dfe..aaa7781 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1792528,3 +1792528,260 @@ INFO:root:2023-09-07 14:00:13.665727 : Security check : IP adresse '127.0.0.1' INFO:root:2023-09-07 14:00:13.669724 : Security check : IP adresse '127.0.0.1' connected INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 14:00:13] "POST /myclass/api/Get_Given_Partner_Order_Lines/ HTTP/1.1" 200 - INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 14:00:13] "POST /myclass/api/Get_Given_Partner_Order/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:11.356497 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-09-07 15:53:11.357492 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-09-07 15:53:11.357492 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-09-07 15:53:11.357492 : ++ FLASK PORT 5001 ++ +INFO:root:2023-09-07 15:53:11.357492 : ++ LMS_BAS_URL mysy-training.com/ ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +INFO:root:2023-09-07 15:53:23.053337 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-09-07 15:53:23.053337 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-09-07 15:53:23.053337 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-09-07 15:53:23.053337 : ++ FLASK PORT 5001 ++ +INFO:root:2023-09-07 15:53:23.053337 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 160-206-918 +INFO:root:2023-09-07 15:53:49.588082 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:49.588082 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:49.591085 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:49] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:49] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:49] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:50.278560 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:50.280589 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:50] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.384732 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.389731 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.404717 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.417735 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.428736 : La session de connexion n'est pas valide +INFO:root:2023-09-07 15:53:51.428736 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.432178 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.440203 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.444206 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.451200 : La session de connexion n'est pas valide +INFO:root:2023-09-07 15:53:51.453361 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.461358 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.464365 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.465359 : La session de connexion n'est pas valide +INFO:root:2023-09-07 15:53:51.468383 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.477674 : La session de connexion n'est pas valide +INFO:root:2023-09-07 15:53:51.476384 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.490564 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.501560 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.507651 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.512649 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.516971 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.520479 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.526978 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.531972 : La session de connexion n'est pas valide +INFO:root:2023-09-07 15:53:51.534970 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.546979 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.547975 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:51.548969 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:51.557266 : La session de connexion n'est pas valide +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:51] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:57.944718 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:57] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:58.154985 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:58.160001 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:58.163001 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 15:53:58.170989 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:58] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:58] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:58.197693 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:58] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:58] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:53:58.256277 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:53:58] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:54:27.070801 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:54:27] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:59:46.782502 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:59:46] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 15:59:53.103801 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 15:59:53] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:00:30.517372 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:00:30] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:00:36.291911 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:00:36] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:01:19.042836 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:01:19] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:06:01.014173 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:06:01] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:06:06.831006 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:06:06] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:07:59.160266 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:07:59] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:08:05.255084 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:08:05] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:09:03.309279 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:09:03] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:09:09.640427 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:09:09] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:16:19.274119 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:16:19] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:16:53.045406 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:16:53] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:17:04.237758 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:17:04] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:17:44.908856 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:17:44] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:18:44.265278 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:18:44] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:21:24.487080 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:21:24] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:26:57.639040 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:26:57] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:27:45.229234 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:27:45] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:28:07.102784 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:28:07] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:28:24.283670 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:28:24] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:31:13.619800 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:31:13] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:31:20.594662 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:31:20] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:32:25.043677 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:32:25] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:41:38.270473 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:41:38] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:41:50.678073 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:41:50] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:42:09.197258 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:42:09] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:43:20.929768 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:43:20] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:47:55.661697 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:47:55] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:48:45.257916 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:48:45] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:49:03.883429 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:49:03] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:49:35.081456 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:49:35] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:50:41.875975 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:50:41] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:51:02.328437 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:51:02] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:55:37.189048 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:55:37] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 16:56:36.767935 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 16:56:36] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\tools_cherif.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-09-07 17:05:28.407779 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-09-07 17:05:28.408779 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-09-07 17:05:28.408779 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-09-07 17:05:28.408779 : ++ FLASK PORT 5001 ++ +INFO:root:2023-09-07 17:05:28.408779 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 160-206-918 +INFO:root:2023-09-07 17:05:36.203835 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:05:36] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:05:54.312905 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:05:54] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +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-09-07 17:12:15.400789 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-09-07 17:12:15.400789 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-09-07 17:12:15.400789 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-09-07 17:12:15.400789 : ++ FLASK PORT 5001 ++ +INFO:root:2023-09-07 17:12:15.400789 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 160-206-918 +INFO:root:2023-09-07 17:17:54.029335 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-09-07 17:17:54.032340 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:17:54] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:17:54] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:18:01.386258 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:18:01] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:18:01.391127 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:18:01] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\tools_cherif\\tools_cherif.py', reloading +INFO:werkzeug: * Restarting with stat +INFO:root:2023-09-07 17:19:29.086548 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-09-07 17:19:29.087543 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-09-07 17:19:29.087543 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-09-07 17:19:29.087543 : ++ FLASK PORT 5001 ++ +INFO:root:2023-09-07 17:19:29.087543 : ++ LMS_BAS_URL mysy-training.com/ ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 160-206-918 +INFO:root:2023-09-07 17:19:31.310001 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:19:31] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:19:31.316004 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:19:31] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:20:08.825132 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:20:08] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:20:08.830129 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:20:08] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:20:53.237089 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:20:53] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:20:53.240492 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:20:53] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:28:06.721151 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:28:06] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:28:06.725585 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:28:06] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:28:50.158089 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:28:50] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:28:50.161472 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:28:50] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:30:24.188683 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:30:24] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:30:24.192745 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:30:24] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:31:57.634451 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:31:57] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:31:57.641276 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:31:57] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:32:59.230600 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:32:59] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:32:59.233910 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:32:59] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:37:22.550485 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:37:22] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:37:22.553504 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:37:22] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:38:06.432958 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:38:06] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:38:06.438583 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:38:06] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:44:05.858757 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:44:05] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:44:05.862719 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:44:05] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:54:52.329078 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:54:52] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:54:52.333734 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:54:52] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:57:15.416050 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:57:15] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:57:15.421232 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:57:15] "POST /myclass/api/Get_Personnalisable_Collection_Fields/ HTTP/1.1" 200 - +INFO:root:2023-09-07 17:59:10.732112 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:59:10] "POST /myclass/api/Add_Partner_Document/ HTTP/1.1" 404 - +INFO:root:2023-09-07 17:59:36.888883 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [07/Sep/2023 17:59:36] "POST /myclass/api/Add_Partner_Document/ HTTP/1.1" 404 - diff --git a/main.py b/main.py index 104de33..a7409c6 100644 --- a/main.py +++ b/main.py @@ -2605,6 +2605,18 @@ def test_jnja2_database(): """ API Test : Recuperation des collections et champ personnalisables """ +@app.route('/myclass/api/Get_Personnalisable_Collection_Fields/', methods=['POST','GET']) +@crossdomain(origin='*') +def Get_Personnalisable_Collection_Fields(): + # On recupere le corps (payload) de la requete + payload = mycommon.strip_dictionary (request.form.to_dict()) + print(" ### Get_Personnalisable_Collection_Fields : payload = ", payload) + localStatus, message = tools_cherif.Get_Personnalisable_Collection_Fields() + return jsonify(status=localStatus, message=message) + + + +"API qui retourne la liste des champs personalisables" @app.route('/myclass/api/Get_Personnalisable_Collection/', methods=['POST','GET']) @crossdomain(origin='*') def Get_Personnalisable_Collection(): diff --git a/partner_order.py b/partner_order.py index eafb748..dbdd9f7 100644 --- a/partner_order.py +++ b/partner_order.py @@ -2199,9 +2199,6 @@ def Delete_Partner_Order_Line(diction): return False, " Impossible de supprimer la ligne de la commande" - - - """ Recuperation d'une commande donnée à partir du '_id' """ diff --git a/tools_cherif/tools_cherif.py b/tools_cherif/tools_cherif.py index a73a829..2c1d121 100644 --- a/tools_cherif/tools_cherif.py +++ b/tools_cherif/tools_cherif.py @@ -855,41 +855,56 @@ def test_jnja2_database(diction): """ -Cette fonction retourne la liste de collections utilisable dans la personnalisation d'un document +Cette fonction retourne la liste des champs (+ collection) utilisable dans la personnalisation d'un document """ -def Get_Personnalisable_Collection(): +def Get_Personnalisable_Collection_Fields(): try: RetObject = [] - mycollection = {"collection_technical_name":'inscription', "collection_fonctional_name":'Inscription'} - mycollection['fields'] = [] - mycollection_field1 = {"field_technical_name":'session_id', "field_fonctional_name":'Session Code'} - mycollection_field2 = {"field_technical_name": 'class_internal_url', "field_fonctional_name": 'Title Formation'} - mycollection_field3 = {"field_technical_name": 'date_du', "field_fonctional_name": 'Date debut'} - mycollection_field4 = {"field_technical_name": 'date_au', "field_fonctional_name": 'Date Fin'} - mycollection['fields'].append(mycollection_field1) - mycollection['fields'].append(mycollection_field2) - mycollection['fields'].append(mycollection_field3) - mycollection['fields'].append(mycollection_field4) - - RetObject.append(mycommon.JSONEncoder().encode(mycollection)) - - mycollection2 = {"collection_technical_name": 'myclass', "collection_fonctional_name": 'Formation'} - mycollection2['fields'] = [] - mycollection2_field1 = {"field_technical_name": 'title', "field_fonctional_name": 'Titre'} - mycollection2_field2 = {"field_technical_name": 'plus_produit', "field_fonctional_name": 'Avantage'} - mycollection2_field3 = {"field_technical_name": 'objectif', "field_fonctional_name": 'Objectif'} - - mycollection2['fields'].append(mycollection2_field1) - mycollection2['fields'].append(mycollection2_field2) - mycollection2['fields'].append(mycollection2_field3) + mycollection_field1 = {"collection_technical_name":'inscription', "collection_fonctional_name":'Inscription', "field_technical_name":'session_id', "field_fonctional_name":'Session Code'} + mycollection_field2 = {"collection_technical_name":'inscription', "collection_fonctional_name":'Inscription', "field_technical_name": 'class_internal_url', "field_fonctional_name": 'Title Formation'} + mycollection_field3 = {"collection_technical_name":'inscription', "collection_fonctional_name":'Inscription', "field_technical_name": 'date_du', "field_fonctional_name": 'Date debut'} + mycollection_field4 = {"collection_technical_name":'inscription', "collection_fonctional_name":'Inscription', "field_technical_name": 'date_au', "field_fonctional_name": 'Date Fin'} + RetObject.append(mycommon.JSONEncoder().encode(mycollection_field1)) + RetObject.append(mycommon.JSONEncoder().encode(mycollection_field2)) + RetObject.append(mycommon.JSONEncoder().encode(mycollection_field3)) + RetObject.append(mycommon.JSONEncoder().encode(mycollection_field4)) + + + mycollection2_field1 = {"collection_technical_name": 'myclass', "collection_fonctional_name": 'Formation', "field_technical_name": 'title', "field_fonctional_name": 'Titre'} + mycollection2_field2 = {"collection_technical_name": 'myclass', "collection_fonctional_name": 'Formation',"field_technical_name": 'plus_produit', "field_fonctional_name": 'Avantage'} + mycollection2_field3 = {"collection_technical_name": 'myclass', "collection_fonctional_name": 'Formation',"field_technical_name": 'objectif', "field_fonctional_name": 'Objectif'} + RetObject.append(mycommon.JSONEncoder().encode(mycollection2_field1)) + RetObject.append(mycommon.JSONEncoder().encode(mycollection2_field2)) + RetObject.append(mycommon.JSONEncoder().encode(mycollection2_field3)) - RetObject.append(mycommon.JSONEncoder().encode(mycollection2)) return True, RetObject except Exception as e: exc_type, exc_obj, exc_tb = sys.exc_info() print(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno)) - return False, " Impossible de recuperer la liste collections personnalisables" \ No newline at end of file + return False, " Impossible de recuperer la liste collections personnalisables" + + +""" +Fonction retourne la liste des collection eligibles à la personnalisation des document +""" +def Get_Personnalisable_Collection(): + try: + RetObject = [] + + mycollection_field1 = {"collection_technical_name": 'inscription', "collection_fonctional_name": 'Inscription',} + mycollection_field2 = {"collection_technical_name": 'myclass', "collection_fonctional_name": 'Formation',} + + RetObject.append(mycommon.JSONEncoder().encode(mycollection_field1)) + RetObject.append(mycommon.JSONEncoder().encode(mycollection_field2)) + + return True, RetObject + + except Exception as e: + exc_type, exc_obj, exc_tb = sys.exc_info() + print(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno)) + return False, " Impossible de recuperer la liste collections personnalisables" +