07/09/2023 - 18h

master
cherif 2023-09-07 18:00:21 +02:00
parent 3bb668f8d6
commit c92fc99a1e
5 changed files with 322 additions and 41 deletions

View File

@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="06/09/2023 - 13h">
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="07/09/2023 - 14h">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/GlobalVariable.py" beforeDir="false" afterPath="$PROJECT_DIR$/GlobalVariable.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Log/log_file.log" beforeDir="false" afterPath="$PROJECT_DIR$/Log/log_file.log" afterDir="false" />
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/partner_order.py" beforeDir="false" afterPath="$PROJECT_DIR$/partner_order.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/tools_cherif/tools_cherif.py" beforeDir="false" afterPath="$PROJECT_DIR$/tools_cherif/tools_cherif.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -70,13 +70,6 @@
<option name="presentableId" value="Default" />
<updated>1680804787304</updated>
</task>
<task id="LOCAL-00050" summary="24/07/23 - 17h">
<created>1690214062664</created>
<option name="number" value="00050" />
<option name="presentableId" value="LOCAL-00050" />
<option name="project" value="LOCAL" />
<updated>1690214062664</updated>
</task>
<task id="LOCAL-00051" summary="25/07/23 - 21h">
<created>1690313186731</created>
<option name="number" value="00051" />
@ -413,7 +406,14 @@
<option name="project" value="LOCAL" />
<updated>1693999843882</updated>
</task>
<option name="localTasksCounter" value="99" />
<task id="LOCAL-00099" summary="07/09/2023 - 14h">
<created>1694088060043</created>
<option name="number" value="00099" />
<option name="presentableId" value="LOCAL-00099" />
<option name="project" value="LOCAL" />
<updated>1694088060043</updated>
</task>
<option name="localTasksCounter" value="100" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
@ -428,7 +428,6 @@
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="19/08/23 - 15h30" />
<MESSAGE value="19/08/23 - 20h30" />
<MESSAGE value="20/08/23 - 23h30" />
<MESSAGE value="21/08/23 - 15h" />
@ -453,6 +452,7 @@
<MESSAGE value="05/09/23 - 20h30" />
<MESSAGE value="06/09/2023 - 11h" />
<MESSAGE value="06/09/2023 - 13h" />
<option name="LAST_COMMIT_MESSAGE" value="06/09/2023 - 13h" />
<MESSAGE value="07/09/2023 - 14h" />
<option name="LAST_COMMIT_MESSAGE" value="07/09/2023 - 14h" />
</component>
</project>

View File

@ -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 -

12
main.py
View File

@ -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():

View File

@ -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'
"""

View File

@ -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"
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"