27/09/23 - 23h
parent
58073bf25d
commit
e7bed218dd
|
@ -4,7 +4,9 @@
|
|||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="26/09/23 - 23h">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" 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$/partner_document_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/partner_document_mgt.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Session_Formation.py" beforeDir="false" afterPath="$PROJECT_DIR$/Session_Formation.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/email_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/email_mgt.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/ressources_humaines.py" beforeDir="false" afterPath="$PROJECT_DIR$/ressources_humaines.py" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
@ -68,13 +70,6 @@
|
|||
<option name="presentableId" value="Default" />
|
||||
<updated>1680804787304</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00065" summary="12/08/23 - 12h">
|
||||
<created>1691835820504</created>
|
||||
<option name="number" value="00065" />
|
||||
<option name="presentableId" value="LOCAL-00065" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1691835820505</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00066" summary="13/08/23 - 14h">
|
||||
<created>1691927654529</created>
|
||||
<option name="number" value="00066" />
|
||||
|
@ -411,7 +406,14 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1695761971079</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="114" />
|
||||
<task id="LOCAL-00114" summary="26/09/23 - 23h">
|
||||
<created>1695805016861</created>
|
||||
<option name="number" value="00114" />
|
||||
<option name="presentableId" value="LOCAL-00114" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1695805016862</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="115" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
|
|
503
Log/log_file.log
503
Log/log_file.log
|
@ -1821714,3 +1821714,506 @@ INFO:root:2023-09-27 10:46:10.741918 : Security check : IP adresse '127.0.0.1'
|
|||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:46:10] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_template_ref_interne/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 10:46:17.556082 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 10:46:17] "POST /myclass/api/Get_Given_Partner_Document/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 19:39:40.209873 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 19:39:40.210874 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 19:39:40.210874 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 19:39:40.210874 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 19:39:40.210874 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
||||
* Running on http://localhost:5001
|
||||
INFO:werkzeug:[33mPress CTRL+C to quit[0m
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 19:39:58.179198 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 19:39:58.179198 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 19:39:58.179198 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 19:39:58.179198 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 19:39:58.179198 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-09-27 19:43:29.626822 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:29.629059 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:29.631074 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:29] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:29] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:29] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 19:43:38.377342 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:38] "POST /myclass/api/partner_login/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 19:43:38.830820 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:38.837740 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:38.844390 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:38.856171 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:38.861684 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:38] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:38] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:38] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:38] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 19:43:38.950254 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:38] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 19:43:43.061889 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:43.066578 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:43.068575 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:43.074636 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:43] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:43] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:43] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:43] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 19:43:52.802141 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:43:54.269437 : Add_Update_SessionFormation_mass_for_many_class Le champ 'distanciel' de ligne 2 est incorrecte.
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:43:54] "POST /myclass/api/Add_Update_SessionFormation_mass_for_many_class/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 19:45:42.247961 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 19:45:42.247961 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 19:45:42.247961 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 19:45:42.247961 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 19:45:42.247961 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-09-27 19:45:55.835572 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:45:56.953533 : Add_Update_SessionFormation_mass_for_many_class Le champ 'distanciel' de ligne 2 est incorrecte. Valeur reçue : 0.0
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:45:56] "POST /myclass/api/Add_Update_SessionFormation_mass_for_many_class/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 19:54:45.510341 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 19:54:45.511346 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 19:54:45.511346 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 19:54:45.511346 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 19:54:45.511346 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 19:55:32.559515 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 19:55:32.559515 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 19:55:32.559515 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 19:55:32.559515 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 19:55:32.559515 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-09-27 19:55:32.740439 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 19:55:33.556430 : Add_Update_SessionFormation - L'étape '0.0' n'est pas autorisée
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 19:55:33] "POST /myclass/api/Add_Update_SessionFormation_mass_for_many_class/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 19:57:22.122044 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 19:57:22.122044 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 19:57:22.122044 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 19:57:22.122044 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 19:57:22.122044 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 19:59:07.522675 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 19:59:07.523675 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 19:59:07.523675 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 19:59:07.523675 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 19:59:07.523675 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:04:05.611433 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:04:05.611433 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:04:05.611433 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:04:05.611433 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:04:05.611433 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:05:17.066303 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:05:17.066303 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:05:17.067301 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:05:17.067301 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:05:17.067301 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:07:19.305620 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:07:19.306616 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:07:19.306616 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:07:19.306616 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:07:19.306616 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:09:07.095050 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:09:07.095050 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:09:07.095050 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:09:07.095050 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:09:07.095050 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:09:34.719334 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:09:34.720333 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:09:34.720333 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:09:34.720333 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:09:34.720333 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:10:40.498589 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:10:40.499596 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:10:40.499596 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:10:40.499596 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:10:40.499596 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:11:09.243113 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:11:09.244129 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:11:09.244129 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:11:09.244129 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:11:09.244129 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:12:01.169876 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:12:01.169876 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:12:01.169876 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:12:01.169876 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:12:01.169876 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:12:48.997198 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:12:48.997198 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:12:48.997198 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:12:48.997198 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:12:48.997198 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:14:41.719285 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:14:41.719285 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:14:41.720732 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:14:41.720732 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:14:41.720732 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:14:57.694373 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:14:57.695410 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:14:57.695410 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:14:57.695410 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:14:57.695410 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:15:27.634749 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:15:27.634749 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:15:27.634749 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:15:27.634749 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:15:27.634749 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:15:56.697007 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:15:56.698014 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:15:56.698014 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:15:56.698014 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:15:56.698014 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:16:48.024697 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:16:48.024697 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:16:48.024697 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:16:48.025699 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:16:48.025699 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-09-27 20:17:18.966875 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:17:20.174577 : CheckisDate -time data '' does not match format '%d/%m/%Y' - ERRORRRR AT Line : 654
|
||||
INFO:root:2023-09-27 20:17:20.177575 : Add_Update_SessionFormation_mass_for_many_class - Impossible de créer/mettre à jour la session de formation à ligne 7.La date_debut_inscription n'est pas au format jj/mm/aaaa
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:17:20] "POST /myclass/api/Add_Update_SessionFormation_mass_for_many_class/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:21:45.338506 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:21:45.338506 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:21:45.338506 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:21:45.338506 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:21:45.338506 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:24:30.953448 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:24:30.954433 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:24:30.954433 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:24:30.954433 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:24:30.954433 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:32:37.493783 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:32:37.494785 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:32:37.494785 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:32:37.494785 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:32:37.494785 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
||||
* Running on http://localhost:5001
|
||||
INFO:werkzeug:[33mPress CTRL+C to quit[0m
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 20:32:50.376754 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 20:32:50.376754 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 20:32:50.378013 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 20:32:50.378013 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 20:32:50.378013 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-09-27 20:32:54.108637 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:32:54] "POST /myclass/api/Add_Update_SessionFormation_mass_for_many_class/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:32:55.136074 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:32:55.140074 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:32:55] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:32:55] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:33:32.573458 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:33:32.575540 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:33:32.586524 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:32] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:32] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:32] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:33:33.904818 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:33:33.910414 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:33:33.916925 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:33] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:33] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:33] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:33:47.400454 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:47] "POST /myclass/api/GetAllValideSessionPartner_List_filter_like/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:33:51.953616 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:33:51.957669 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:33:51.963820 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:51] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:51] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:33:51] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:34:26.255072 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:34:26] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:34:32.339146 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:34:32.344372 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:34:32.353057 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:34:32] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:34:32] "POST /myclass/api/GetSessionFormation/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:34:32] "POST /myclass/api/GetAllClassStagiaire/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:36:12.367949 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:36:12.374752 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:36:12.380966 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:36:12.390062 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:36:12] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:36:12] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:36:12] "POST /myclass/api/Get_Statgaire_List_Partner_with_filter/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:36:12] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:37:00.968369 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:37:00] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:37:01.172956 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:37:01] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:37:30.880830 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:37:30.889532 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:37:30.891556 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:37:30.900441 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:37:30] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:37:30] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:37:30] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:37:31] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:37:38.195217 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:37:38] "POST /myclass/api/Add_Update_SessionFormation_mass_for_many_class/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-09-27 20:37:39.135219 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-09-27 20:37:39.139230 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:37:39] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [27/Sep/2023 20:37:39] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 21:04:25.344793 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:04:25.344793 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:04:25.344793 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:04:25.345784 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:04:25.345784 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 21:05:48.216724 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:05:48.217763 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:05:48.217763 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:05:48.217763 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:05:48.217763 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 21:09:48.027261 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:09:48.028342 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:09:48.028342 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:09:48.028342 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:09:48.028342 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:11:31.894374 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:11:31.894891 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:11:31.894891 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:11:31.894891 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:11:31.894891 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:11:49.928652 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:11:49.929630 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:11:49.929630 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:11:49.929630 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:11:49.929630 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:13:06.180097 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:13:06.181101 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:13:06.181101 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:13:06.181101 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:13:06.181101 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 21:13:51.023596 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:13:51.023596 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:13:51.023596 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:13:51.023596 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:13:51.023596 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 21:14:19.055085 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:14:19.055085 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:14:19.056086 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:14:19.056086 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:14:19.056086 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 21:14:38.379031 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:14:38.379031 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:14:38.379031 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:14:38.379031 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:14:38.379031 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 21:16:38.113071 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:16:38.113071 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:16:38.113071 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:16:38.113071 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:16:38.113071 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\email_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 21:21:29.738567 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:21:29.738567 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:21:29.738567 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:21:29.738567 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:21:29.738567 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:46:16.585454 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:46:16.585454 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:46:16.585454 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:46:16.585454 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:46:16.585454 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
INFO:werkzeug:[31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
|
||||
* Running on http://localhost:5001
|
||||
INFO:werkzeug:[33mPress CTRL+C to quit[0m
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-09-27 21:46:25.450556 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:46:25.450556 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:46:25.451560 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:46:25.451560 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:46:25.451560 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:51:31.382255 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:51:31.382255 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:51:31.382255 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:51:31.382255 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:51:31.382255 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:51:45.210070 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:51:45.210070 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:51:45.210070 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:51:45.211068 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:51:45.211068 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:53:28.531916 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:53:28.531916 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:53:28.531916 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:53:28.533018 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:53:28.533018 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:55:00.918761 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:55:00.918761 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:55:00.918761 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:55:00.918761 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:55:00.919759 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:55:56.305303 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:55:56.305303 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:55:56.305303 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:55:56.305303 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:55:56.305303 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:56:32.390102 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:56:32.390102 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:56:32.390102 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:56:32.391103 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:56:32.391103 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
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-09-27 21:57:53.118655 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-09-27 21:57:53.118655 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-09-27 21:57:53.118655 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-09-27 21:57:53.118655 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-09-27 21:57:53.118655 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
|
|
|
@ -117,12 +117,15 @@ def Add_Update_SessionFormation(diction):
|
|||
if ("date_debut" in diction.keys()):
|
||||
mydata['date_debut'] = diction['date_debut']
|
||||
|
||||
etape = "0"
|
||||
if ("session_etape" in diction.keys()):
|
||||
if(str(diction['session_etape']) not in MYSY_GV.SESSION_ETAPE):
|
||||
etape = str(diction['session_etape'])
|
||||
etape = str(mycommon.tryInt(etape))
|
||||
if(str(etape) not in MYSY_GV.SESSION_ETAPE):
|
||||
mycommon.myprint(str(inspect.stack()[0][3]) + " - L'étape '"+str(diction['session_etape'])+"' n'est pas autorisée ")
|
||||
return False, "L'étape '"+str(diction['session_etape'])+"' n'est pas autorisée "
|
||||
|
||||
mydata['session_etape'] = diction['session_etape']
|
||||
mydata['session_etape'] = etape
|
||||
|
||||
|
||||
if ("date_fin" in diction.keys()):
|
||||
|
@ -130,21 +133,21 @@ def Add_Update_SessionFormation(diction):
|
|||
|
||||
|
||||
if ("distantiel" in diction.keys()):
|
||||
mydata['distantiel'] = diction['distantiel']
|
||||
mydata['distantiel'] = str(mycommon.tryInt(str(diction['distantiel'])))
|
||||
|
||||
|
||||
if ("presentiel" in diction.keys()):
|
||||
mydata['presentiel'] = diction['presentiel']
|
||||
mydata['presentiel'] = str(mycommon.tryInt(str(diction['presentiel'])))
|
||||
|
||||
if ("lms_class_code" in diction.keys()):
|
||||
mydata['lms_class_code'] = diction['lms_class_code']
|
||||
|
||||
if ("session_ondemande" in diction.keys()):
|
||||
mydata['session_ondemande'] = diction['session_ondemande']
|
||||
mydata['session_ondemande'] = str(mycommon.tryInt(str(diction['session_ondemande'])))
|
||||
|
||||
|
||||
if ("nb_participant" in diction.keys()):
|
||||
mydata['nb_participant'] = diction['nb_participant']
|
||||
mydata['nb_participant'] = str(mycommon.tryInt(str(diction['nb_participant'])))
|
||||
|
||||
if ("prix_session" in diction.keys()):
|
||||
mydata['prix_session'] = diction['prix_session']
|
||||
|
@ -159,7 +162,15 @@ def Add_Update_SessionFormation(diction):
|
|||
|
||||
if ("code_postal" in diction.keys()):
|
||||
if diction['code_postal']:
|
||||
mydata['code_postal'] = diction['code_postal']
|
||||
if( "." in str(diction['code_postal']) ):
|
||||
#/!\ : l'utilisateur envoie un code poster au format entier, plutot que string.
|
||||
mydata['code_postal'] = str(diction['code_postal']).split(".")[0]
|
||||
elif( "." in str(diction['code_postal']) ):
|
||||
#/!\ : l'utilisateur envoie un code poster au format entier, plutot que string.
|
||||
mydata['code_postal'] = str(diction['code_postal']).split(",")[0]
|
||||
else:
|
||||
mydata['code_postal'] = str(diction['code_postal'])
|
||||
|
||||
else:
|
||||
mydata['code_postal'] = ""
|
||||
|
||||
|
@ -180,7 +191,7 @@ def Add_Update_SessionFormation(diction):
|
|||
|
||||
|
||||
if ("session_status" in diction.keys()):
|
||||
mydata['session_status'] = diction['session_status']
|
||||
mydata['session_status'] = str(mycommon.tryInt(str(diction['session_status'])))
|
||||
|
||||
if ("date_debut_inscription" in diction.keys()):
|
||||
mydata['date_debut_inscription'] = diction['date_debut_inscription']
|
||||
|
@ -215,23 +226,6 @@ def Add_Update_SessionFormation(diction):
|
|||
|
||||
return False, " -Formation : "+str(code_session)+" : La date de fin n'est pas au format jj/mm/aaaa "
|
||||
|
||||
local_status = mycommon.CheckisDate(str(diction['date_debut_inscription'])[0:10])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Formation : "+str(code_session)+" : Impossible de créer/mettre à jour la session de formation. La date_debut_inscription n'est pas au format jj/mm/aaaa ")
|
||||
|
||||
return False, " -Formation : "+str(code_session)+" : La date de début d'inscription n'est pas au format jj/mm/aaaa "
|
||||
|
||||
local_status = mycommon.CheckisDate(str(diction['date_fin_inscription'])[0:10])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " -Formation : "+str(code_session)+" : La date de fin d'inscription n'est pas au format jj/mm/aaaa ")
|
||||
|
||||
return False, " - Formation : "+str(code_session)+" :La date de fin d'inscription n'est pas au format jj/mm/aaaa "
|
||||
|
||||
|
||||
|
||||
if (datetime.strptime(str(diction['date_debut'])[0:10], '%d/%m/%Y') > datetime.strptime(
|
||||
str(diction['date_fin'])[0:10], '%d/%m/%Y')):
|
||||
|
@ -244,39 +238,62 @@ def Add_Update_SessionFormation(diction):
|
|||
return False, " Formation : "+str(code_session)+" : La date debut de formation " + str(diction['date_debut']) + \
|
||||
" est postérieure à la date de fin de formation " + str(diction['date_fin']) + " "
|
||||
|
||||
# Verification de la cohérence des dates d'inscription si on a bien une date debut et une date de fin
|
||||
if (str(diction['date_debut_inscription']).strip() != "" and str(
|
||||
diction['date_fin_inscription']).strip() != ""):
|
||||
local_status = mycommon.CheckisDate(str(diction['date_debut_inscription'])[0:10])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Formation : " + str(
|
||||
code_session) + " : Impossible de créer/mettre à jour la session de formation. La date_debut_inscription n'est pas au format jj/mm/aaaa ")
|
||||
|
||||
if (datetime.strptime(str(diction['date_debut_inscription'])[0:10], '%d/%m/%Y') > datetime.strptime(
|
||||
str(diction['date_fin_inscription'])[0:10], '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " Formation : "+str(code_session)+" : La date date_debut_inscription " + str(
|
||||
diction['date_debut_inscription']) +
|
||||
" est postérieure à la date de date_fin_inscription " + str(diction['date_fin_inscription']) )
|
||||
return False, " -Formation : " + str(
|
||||
code_session) + " : La date de début d'inscription n'est pas au format jj/mm/aaaa "
|
||||
|
||||
return False, " Formation : "+str(code_session)+" : La date_debut_inscription " + str(diction['date_debut_inscription']) + \
|
||||
" est postérieure à la date_fin_inscription " + str(diction['date_fin_inscription']) + " "
|
||||
local_status = mycommon.CheckisDate(str(diction['date_fin_inscription'])[0:10])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " -Formation : " + str(
|
||||
code_session) + " : La date de fin d'inscription n'est pas au format jj/mm/aaaa ")
|
||||
|
||||
return False, " - Formation : " + str(
|
||||
code_session) + " :La date de fin d'inscription n'est pas au format jj/mm/aaaa "
|
||||
|
||||
|
||||
if (datetime.strptime(str(diction['date_debut_inscription'])[0:10], '%d/%m/%Y') > datetime.strptime(
|
||||
str(diction['date_fin_inscription'])[0:10], '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " Formation : "+str(code_session)+" : La date date_debut_inscription " + str(
|
||||
diction['date_debut_inscription']) +
|
||||
" est postérieure à la date de date_fin_inscription " + str(diction['date_fin_inscription']) )
|
||||
|
||||
return False, " Formation : "+str(code_session)+" : La date_debut_inscription " + str(diction['date_debut_inscription']) + \
|
||||
" est postérieure à la date_fin_inscription " + str(diction['date_fin_inscription']) + " "
|
||||
|
||||
|
||||
|
||||
# Verification : Date de debut inscription n'est pas > date de fin de formation
|
||||
if (datetime.strptime(str(diction['date_debut_inscription'])[0:10], '%d/%m/%Y') > datetime.strptime(
|
||||
str(diction['date_fin'])[0:10], '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " -Formation : "+str(code_session)+" : La date de debut d'inscription " + str( diction['date_debut_inscription']) + " est postérieure à la date de fin de formation " + str(diction['date_fin']))
|
||||
# Verification : Date de debut inscription n'est pas > date de fin de formation
|
||||
if (datetime.strptime(str(diction['date_debut_inscription'])[0:10], '%d/%m/%Y') > datetime.strptime(
|
||||
str(diction['date_fin'])[0:10], '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " -Formation : "+str(code_session)+" : La date de debut d'inscription " + str( diction['date_debut_inscription']) + " est postérieure à la date de fin de formation " + str(diction['date_fin']))
|
||||
|
||||
return False, " Formation : "+str(code_session)+" : La date de debut d'inscription " + str( diction['date_debut_inscription']) + " est postérieure à la date de fin de formation " + str(diction['date_fin'])+" "
|
||||
return False, " Formation : "+str(code_session)+" : La date de debut d'inscription " + str( diction['date_debut_inscription']) + " est postérieure à la date de fin de formation " + str(diction['date_fin'])+" "
|
||||
|
||||
# Verification : Date de fin inscription n'est pas > date de fin de formation
|
||||
if (datetime.strptime(str(diction['date_fin_inscription'])[0:10], '%d/%m/%Y') > datetime.strptime(
|
||||
str(diction['date_fin'])[0:10], '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " -Formation : "+str(code_session)+" : La date de fin d'inscription " + str(
|
||||
# Verification : Date de fin inscription n'est pas > date de fin de formation
|
||||
if (datetime.strptime(str(diction['date_fin_inscription'])[0:10], '%d/%m/%Y') > datetime.strptime(
|
||||
str(diction['date_fin'])[0:10], '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " -Formation : "+str(code_session)+" : La date de fin d'inscription " + str(
|
||||
diction['date_fin_inscription'])[0:10] + " est postérieure à la date de fin de la formation " + str(
|
||||
diction['date_fin'])[0:10])
|
||||
|
||||
return False, " Formation : "+str(code_session)+" : La date de fin d'inscription " + str(
|
||||
diction['date_fin_inscription'])[0:10] + " est postérieure à la date de fin de la formation " + str(
|
||||
diction['date_fin'])[0:10])
|
||||
|
||||
return False, " Formation : "+str(code_session)+" : La date de fin d'inscription " + str(
|
||||
diction['date_fin_inscription'])[0:10] + " est postérieure à la date de fin de la formation " + str(
|
||||
diction['date_fin'])[0:10] + " "
|
||||
diction['date_fin'])[0:10] + " "
|
||||
|
||||
|
||||
"""
|
||||
|
@ -1376,7 +1393,7 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
|
|||
session_ondemande = "0"
|
||||
if ("session_ondemande" in df.keys()):
|
||||
if (str(df['session_ondemande'].values[n])):
|
||||
session_ondemande = str(df['session_ondemande'].values[n]).strip()
|
||||
session_ondemande = str(mycommon.tryInt(str(df['session_ondemande'].values[n]).strip()))
|
||||
|
||||
if( session_ondemande != "1" and session_ondemande != "0"):
|
||||
mycommon.myprint(
|
||||
|
@ -1393,12 +1410,23 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
|
|||
if ("code_postal" in df.keys()):
|
||||
if (str(df['code_postal'].values[n])):
|
||||
local_code_postal = str(df['code_postal'].values[n]).strip()
|
||||
if ("." in str(local_code_postal)):
|
||||
# /!\ : l'utilisateur envoie un code poster au format entier, plutot que string.
|
||||
local_code_postal = str(local_code_postal).split(".")[0]
|
||||
elif ("." in str(local_code_postal)):
|
||||
# /!\ : l'utilisateur envoie un code poster au format entier, plutot que string.
|
||||
local_code_postal = str(local_code_postal).split(",")[0]
|
||||
else:
|
||||
local_code_postal = str(local_code_postal)
|
||||
|
||||
|
||||
mydata['code_postal'] = local_code_postal
|
||||
|
||||
distanciel = ""
|
||||
if ("distanciel" in df.keys()):
|
||||
if (str(df['distanciel'].values[n])):
|
||||
distanciel = str(df['distanciel'].values[n]).strip()
|
||||
distanciel = str(mycommon.tryInt(distanciel))
|
||||
if (distanciel != "1" and distanciel != "0"):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " Le champ 'distanciel' de ligne " + str(
|
||||
|
@ -1414,6 +1442,8 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
|
|||
if ("presentiel" in df.keys()):
|
||||
if (str(df['presentiel'].values[n])):
|
||||
presentiel = str(df['presentiel'].values[n]).strip()
|
||||
presentiel = str(mycommon.tryInt(presentiel))
|
||||
|
||||
if (presentiel != "1" and presentiel != "0"):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " Le champ 'presentiel' de ligne " + str(
|
||||
|
@ -1463,6 +1493,7 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
|
|||
if ("session_status" in df.keys()):
|
||||
if (str(df['session_status'].values[n])):
|
||||
session_status = str(df['session_status'].values[n]).strip()
|
||||
session_status = str(mycommon.tryInt(session_status))
|
||||
mydata['session_status'] = session_status
|
||||
|
||||
|
||||
|
@ -1470,6 +1501,7 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
|
|||
if ("session_etape" in df.keys()):
|
||||
if (str(df['session_etape'].values[n])):
|
||||
session_etape = str(df['session_etape'].values[n]).strip()
|
||||
session_etape = str(mycommon.tryInt(session_etape))
|
||||
mydata['session_etape'] = session_etape
|
||||
|
||||
"""
|
||||
|
@ -1489,38 +1521,41 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None):
|
|||
"""
|
||||
|
||||
mydata['date_debut_inscription'] = str(df['date_debut_inscription'].values[n]).strip().split(" ")[0]
|
||||
local_status = mycommon.CheckisDate(mydata['date_debut_inscription'])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(n+2) + "."
|
||||
"La date_debut_inscription n'est pas au format jj/mm/aaaa ")
|
||||
if( str(mydata['date_debut_inscription']).strip() != ""):
|
||||
local_status = mycommon.CheckisDate(mydata['date_debut_inscription'])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(n+2) + "."
|
||||
"La date_debut_inscription n'est pas au format jj/mm/aaaa ")
|
||||
|
||||
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n+2) + ". La date_debut_inscription n'est pas au format jj/mm/aaaa "
|
||||
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n+2) + ". La date_debut_inscription n'est pas au format jj/mm/aaaa "
|
||||
|
||||
|
||||
mydata['date_fin_inscription'] = str(df['date_fin_inscription'].values[n]).strip().split(" ")[0]
|
||||
local_status = mycommon.CheckisDate(mydata['date_fin_inscription'])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
if (str(mydata['date_fin_inscription']).strip() != ""):
|
||||
local_status = mycommon.CheckisDate(mydata['date_fin_inscription'])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(n+2) + "."
|
||||
"La date_fin_inscription n'est pas au format jj/mm/aaaa ")
|
||||
|
||||
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n+1) + ". La date_fin_inscription n'est pas au format jj/mm/aaaa "
|
||||
|
||||
## Verification de la cohérence des dates. Date_du doit <= Date_au
|
||||
if (datetime.strptime(str(mydata['date_debut_inscription']).strip(), '%d/%m/%Y') > datetime.strptime(
|
||||
str(mydata['date_fin_inscription']).strip(), '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer la session de formation : La date debut des inscriptions " + str(
|
||||
mydata['date_debut_inscription']) +
|
||||
" est postérieure à la date de fin des inscriptions " + str(mydata['date_fin_inscription']) + " pour la ligne "+str(n+2)+" ")
|
||||
## Verification de la cohérence des dates. date_debut_inscription doit <= date_fin_inscription
|
||||
if( str(mydata['date_debut_inscription']).strip() != "" and str(mydata['date_fin_inscription']).strip() != "" ):
|
||||
if (datetime.strptime(str(mydata['date_debut_inscription']).strip(), '%d/%m/%Y') > datetime.strptime(
|
||||
str(mydata['date_fin_inscription']).strip(), '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer la session de formation : La date debut des inscriptions " + str(
|
||||
mydata['date_debut_inscription']) +
|
||||
" est postérieure à la date de fin des inscriptions " + str(mydata['date_fin_inscription']) + " pour la ligne "+str(n+2)+" ")
|
||||
|
||||
return False, " Impossible de créer la session de formation : La date de fin des inscriptions est antérieure à la date de début des inscriptions : Ligne "+str(n+2)+" "
|
||||
return False, " Impossible de créer la session de formation : La date de fin des inscriptions est antérieure à la date de début des inscriptions : Ligne "+str(n+2)+" "
|
||||
|
||||
mydata['token'] = str(my_token)
|
||||
mydata['class_internal_url'] = str(class_internal_url)
|
||||
|
@ -1833,6 +1868,7 @@ def Controle_Add_Update_SessionFormation_mass(saved_file=None, Folder=None, dict
|
|||
if ("session_ondemande" in df.keys()):
|
||||
if (str(df['session_ondemande'].values[n])):
|
||||
session_ondemande = str(df['session_ondemande'].values[n]).strip()
|
||||
session_ondemande = str(mycommon.tryInt(str(session_ondemande)))
|
||||
|
||||
if (session_ondemande != "1" and session_ondemande != "0"):
|
||||
mycommon.myprint(
|
||||
|
@ -1847,12 +1883,25 @@ def Controle_Add_Update_SessionFormation_mass(saved_file=None, Folder=None, dict
|
|||
if ("code_postal" in df.keys()):
|
||||
if (str(df['code_postal'].values[n])):
|
||||
local_code_postal = str(df['code_postal'].values[n]).strip()
|
||||
|
||||
if ("." in str(local_code_postal)):
|
||||
# /!\ : l'utilisateur envoie un code poster au format entier, plutot que string.
|
||||
local_code_postal = str(local_code_postal).split(".")[0]
|
||||
elif ("." in str(local_code_postal)):
|
||||
# /!\ : l'utilisateur envoie un code poster au format entier, plutot que string.
|
||||
local_code_postal = str(local_code_postal).split(",")[0]
|
||||
else:
|
||||
local_code_postal = str(local_code_postal)
|
||||
|
||||
|
||||
mydata['code_postal'] = local_code_postal
|
||||
|
||||
distanciel = ""
|
||||
if ("distanciel" in df.keys()):
|
||||
if (str(df['distanciel'].values[n])):
|
||||
distanciel = str(df['distanciel'].values[n]).strip()
|
||||
distanciel = str(mycommon.tryInt(distanciel))
|
||||
|
||||
if (distanciel != "1" and distanciel != "0"):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " Le champ 'distanciel' de ligne " + str(
|
||||
|
@ -1866,6 +1915,8 @@ def Controle_Add_Update_SessionFormation_mass(saved_file=None, Folder=None, dict
|
|||
if ("presentiel" in df.keys()):
|
||||
if (str(df['presentiel'].values[n])):
|
||||
presentiel = str(df['presentiel'].values[n]).strip()
|
||||
presentiel = str(mycommon.tryInt(presentiel))
|
||||
|
||||
if (presentiel != "1" and presentiel != "0"):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " Le champ 'presentiel' de ligne " + str(
|
||||
|
@ -2265,18 +2316,29 @@ def Add_Update_SessionFormation_mass_for_many_class(file=None, Folder=None, dict
|
|||
if ("code_postal" in df.keys()):
|
||||
if (str(df['code_postal'].values[n])):
|
||||
local_code_postal = str(df['code_postal'].values[n]).strip()
|
||||
|
||||
if ("." in str(local_code_postal)):
|
||||
# /!\ : l'utilisateur envoie un code poster au format entier, plutot que string.
|
||||
local_code_postal = str(local_code_postal).split(".")[0]
|
||||
elif ("." in str(local_code_postal)):
|
||||
# /!\ : l'utilisateur envoie un code poster au format entier, plutot que string.
|
||||
local_code_postal = str(local_code_postal).split(",")[0]
|
||||
else:
|
||||
local_code_postal = str(local_code_postal)
|
||||
|
||||
mydata['code_postal'] = local_code_postal
|
||||
|
||||
distanciel = ""
|
||||
if ("distanciel" in df.keys()):
|
||||
if (str(df['distanciel'].values[n])):
|
||||
distanciel = str(df['distanciel'].values[n]).strip()
|
||||
distanciel = str(mycommon.tryInt(distanciel))
|
||||
if (distanciel != "1" and distanciel != "0"):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " Le champ 'distanciel' de ligne " + str(
|
||||
n + 2) + " est incorrecte.")
|
||||
n + 2) + " est incorrecte. Valeur reçue : "+str(distanciel))
|
||||
return False, " Le champ 'distanciel' de ligne " + str(
|
||||
n + 2) + " est incorrecte. Les valeurs acceptées sont '1' ou '0' ou vide"
|
||||
n + 2) + " est incorrecte. Les valeurs acceptées sont '1' ou '0' ou vide. Valeur reçue : "+str(distanciel)
|
||||
|
||||
mydata['distantiel'] = distanciel
|
||||
|
||||
|
@ -2284,6 +2346,7 @@ def Add_Update_SessionFormation_mass_for_many_class(file=None, Folder=None, dict
|
|||
if ("presentiel" in df.keys()):
|
||||
if (str(df['presentiel'].values[n])):
|
||||
presentiel = str(df['presentiel'].values[n]).strip()
|
||||
presentiel = str(mycommon.tryInt(presentiel))
|
||||
if (presentiel != "1" and presentiel != "0"):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][3]) + " Le champ 'presentiel' de ligne " + str(
|
||||
|
@ -2327,12 +2390,16 @@ def Add_Update_SessionFormation_mass_for_many_class(file=None, Folder=None, dict
|
|||
if ("session_status" in df.keys()):
|
||||
if (str(df['session_status'].values[n])):
|
||||
session_status = str(df['session_status'].values[n]).strip()
|
||||
|
||||
session_status = str(mycommon.tryInt(session_status))
|
||||
mydata['session_status'] = session_status
|
||||
|
||||
session_etape = ""
|
||||
session_etape = "0"
|
||||
if ("session_etape" in df.keys()):
|
||||
if (str(df['session_etape'].values[n])):
|
||||
session_etape = str(df['session_etape'].values[n]).strip()
|
||||
|
||||
session_etape = str(mycommon.tryInt(session_etape))
|
||||
mydata['session_etape'] = session_etape
|
||||
|
||||
"""
|
||||
|
@ -2352,40 +2419,43 @@ def Add_Update_SessionFormation_mass_for_many_class(file=None, Folder=None, dict
|
|||
"""
|
||||
|
||||
mydata['date_debut_inscription'] = str(df['date_debut_inscription'].values[n]).strip().split(" ")[0]
|
||||
local_status = mycommon.CheckisDate(mydata['date_debut_inscription'])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n + 2) + "."
|
||||
"La date_debut_inscription n'est pas au format jj/mm/aaaa ")
|
||||
if( str(mydata['date_debut_inscription']).strip() != ""):
|
||||
local_status = mycommon.CheckisDate(mydata['date_debut_inscription'])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n + 2) + "."
|
||||
"La date_debut_inscription n'est pas au format jj/mm/aaaa ")
|
||||
|
||||
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n + 2) + ". La date_debut_inscription n'est pas au format jj/mm/aaaa "
|
||||
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n + 2) + ". La date_debut_inscription n'est pas au format jj/mm/aaaa "
|
||||
|
||||
mydata['date_fin_inscription'] = str(df['date_fin_inscription'].values[n]).strip().split(" ")[0]
|
||||
local_status = mycommon.CheckisDate(mydata['date_fin_inscription'])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n + 2) + "."
|
||||
"La date_fin_inscription n'est pas au format jj/mm/aaaa ")
|
||||
if (str(mydata['date_fin_inscription']).strip() != ""):
|
||||
local_status = mycommon.CheckisDate(mydata['date_fin_inscription'])
|
||||
if (local_status is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n + 2) + "."
|
||||
"La date_fin_inscription n'est pas au format jj/mm/aaaa ")
|
||||
|
||||
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n + 1) + ". La date_fin_inscription n'est pas au format jj/mm/aaaa "
|
||||
return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str(
|
||||
n + 1) + ". La date_fin_inscription n'est pas au format jj/mm/aaaa "
|
||||
|
||||
## Verification de la cohérence des dates. Date_du doit <= Date_au
|
||||
if (datetime.strptime(str(mydata['date_debut_inscription']).strip(), '%d/%m/%Y') > datetime.strptime(
|
||||
str(mydata['date_fin_inscription']).strip(), '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer la session de formation : La date debut des inscriptions " + str(
|
||||
mydata['date_debut_inscription']) +
|
||||
" est postérieure à la date de fin des inscriptions " + str(
|
||||
mydata['date_fin_inscription']) + " pour la ligne " + str(n + 2) + " ")
|
||||
if (str(mydata['date_debut_inscription']).strip() != "" and str(mydata['date_fin_inscription']).strip() != ""):
|
||||
if (datetime.strptime(str(mydata['date_debut_inscription']).strip(), '%d/%m/%Y') > datetime.strptime(
|
||||
str(mydata['date_fin_inscription']).strip(), '%d/%m/%Y')):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - Impossible de créer la session de formation : La date debut des inscriptions " + str(
|
||||
mydata['date_debut_inscription']) +
|
||||
" est postérieure à la date de fin des inscriptions " + str(
|
||||
mydata['date_fin_inscription']) + " pour la ligne " + str(n + 2) + " ")
|
||||
|
||||
return False, " Impossible de créer la session de formation : La date de fin des inscriptions est antérieure à la date de début des inscriptions : Ligne " + str(
|
||||
return False, " Impossible de créer la session de formation : La date de fin des inscriptions est antérieure à la date de début des inscriptions : Ligne " + str(
|
||||
n + 2) + " "
|
||||
|
||||
mydata['token'] = str(my_token)
|
||||
|
|
34
email_mgt.py
34
email_mgt.py
|
@ -24,7 +24,7 @@ import sib_api_v3_sdk
|
|||
from sib_api_v3_sdk.rest import ApiException
|
||||
import jinja2
|
||||
import strype_payement as strype_payement
|
||||
|
||||
import ressources_humaines as ressources_humaines
|
||||
|
||||
configuration = sib_api_v3_sdk.Configuration()
|
||||
configuration.api_key['api-key'] = MYSY_GV.SENDINBLUE_API_KEY
|
||||
|
@ -1291,6 +1291,9 @@ def send_partner_account_mail(message, account_mail):
|
|||
'''
|
||||
Apres l'activation du compte pro,
|
||||
cet email envoie le token et mot de passe temporaire à l'utilisateur
|
||||
|
||||
/!\ : update du 27/09/2023 :
|
||||
Apres l'activation du compte, il faut créer l'employé rattaché à cet utilisateur
|
||||
'''
|
||||
def Pro_Account_Token_Pass(account_mail, my_token):
|
||||
try:
|
||||
|
@ -1309,11 +1312,7 @@ def Pro_Account_Token_Pass(account_mail, my_token):
|
|||
"""send_smtp_email = sib_api_v3_sdk.SendSmtpEmail(template_id=18, params={"user_name": str(account_mail), "secrete":str(my_token) },
|
||||
to=to, bcc=bcc)
|
||||
"""
|
||||
print("debut envoi mail de test ")
|
||||
# on rentre les renseignements pris sur le site du fournisseur
|
||||
|
||||
|
||||
|
||||
smtpserver = smtplib.SMTP(MYSY_GV.O365_SMTP_COUNT_smtpsrv, MYSY_GV.O365_SMTP_COUNT_port)
|
||||
|
||||
|
||||
|
@ -1351,6 +1350,31 @@ def Pro_Account_Token_Pass(account_mail, my_token):
|
|||
val = smtpserver.send_message(msg)
|
||||
smtpserver.close()
|
||||
print(" Email envoyé " + str(val))
|
||||
"""
|
||||
Update du 27/09/2023 : Apres activation du compte pro, on va créer l'employé rattaché à ce compte
|
||||
"""
|
||||
|
||||
# Recuperation des données du partner
|
||||
my_partner = MYSY_GV.dbname['partnair_account'].find_one({'email':str(account_mail)})
|
||||
if( my_partner is None):
|
||||
mycommon.myprint(" WARNING : Impossible de recuperer les données du partner. Impossible de créer le compte employé de l'administrateur")
|
||||
return True
|
||||
|
||||
|
||||
data_employe_admin = {}
|
||||
data_employe_admin['partner_recid'] = str(my_partner['recid'])
|
||||
data_employe_admin['nom'] = str(my_partner['nom'])
|
||||
data_employe_admin['email'] = str(account_mail)
|
||||
data_employe_admin['comment'] = "Compte Administrateur"
|
||||
data_employe_admin['is_partner_admin_account'] = "1"
|
||||
|
||||
print(" #### data_employe_admin = ", str(data_employe_admin))
|
||||
local_status, local_retval = ressources_humaines.Add_Partner_Admin_Ressource_Humaine_No_Toke(data_employe_admin)
|
||||
|
||||
if( local_status is False):
|
||||
mycommon.myprint(str(local_retval))
|
||||
return True
|
||||
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
|
|
|
@ -28,6 +28,104 @@ import GlobalVariable as MYSY_GV
|
|||
import ela_index_bdd_classes as eibdd
|
||||
import email_mgt as email
|
||||
|
||||
"""
|
||||
Cette fonction crée le compte employé administrateur.
|
||||
Ceci est fait à l'activation du compte, donc à ce moment il n'y pas de token de connexion.
|
||||
D'ou la creation d'une fonction à part
|
||||
"""
|
||||
def Add_Partner_Admin_Ressource_Humaine_No_Toke(diction):
|
||||
|
||||
try:
|
||||
diction = mycommon.strip_dictionary(diction)
|
||||
|
||||
"""
|
||||
Verification des input acceptés
|
||||
"""
|
||||
field_list = ['partner_recid', "nom", "email", "comment"]
|
||||
|
||||
incom_keys = diction.keys()
|
||||
for val in incom_keys:
|
||||
if val not in field_list:
|
||||
mycommon.myprint(str(
|
||||
inspect.stack()[0][3]) + " Le champ '" + val + "' n'est pas autorisé")
|
||||
return False, " Les informations fournies sont incorrectes",
|
||||
|
||||
"""
|
||||
Verification des champs obligatoires
|
||||
"""
|
||||
field_list_obligatoire = [ "partner_recid", "email", ]
|
||||
|
||||
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, " Les informations fournies sont incorrectes",
|
||||
|
||||
"""
|
||||
Verification de l'identité et autorisation de l'entité qui
|
||||
appelle cette API
|
||||
"""
|
||||
partner_recid = ""
|
||||
if ("partner_recid" in diction.keys()):
|
||||
if diction['partner_recid']:
|
||||
partner_recid = diction['partner_recid']
|
||||
|
||||
"""
|
||||
Recuperation des données fournies en entrée
|
||||
"""
|
||||
data = {}
|
||||
data['partner_recid'] = partner_recid
|
||||
|
||||
nom = ""
|
||||
if ("nom" in diction.keys()):
|
||||
if diction['nom']:
|
||||
nom = diction['nom']
|
||||
data['nom'] = diction['nom']
|
||||
|
||||
data['is_partner_admin_account'] = "1"
|
||||
|
||||
data['ismanager'] = "0"
|
||||
|
||||
email = ""
|
||||
if ("email" in diction.keys()):
|
||||
if diction['email']:
|
||||
email = diction['email']
|
||||
data['email'] = diction['email']
|
||||
if( mycommon.isEmailValide(email) is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " - L'adresse email "+str(email)+" n'est pas valide")
|
||||
|
||||
return False, " - - L'adresse email "+str(email)+" n'est pas valide "
|
||||
|
||||
comment = ""
|
||||
if ("comment" in diction.keys()):
|
||||
if diction['comment']:
|
||||
comment = diction['comment']
|
||||
data['comment'] = diction['comment']
|
||||
|
||||
|
||||
data['profil'] = "partner_admin"
|
||||
|
||||
data['valide'] = '1'
|
||||
data['locked'] = '0'
|
||||
data['date_update'] = str(datetime.now())
|
||||
|
||||
|
||||
inserted_id = ""
|
||||
inserted_id = MYSY_GV.dbname['ressource_humaine'].insert_one(data).inserted_id
|
||||
if (not inserted_id):
|
||||
mycommon.myprint(
|
||||
" Impossible de créer la compte adminstrateur du partenaire ")
|
||||
return False, " Impossible de créer la compte adminstrateur du partenaire "
|
||||
|
||||
|
||||
return True, " Le compte administrateur du partenaire a été correctement crée"
|
||||
|
||||
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 créer la compte adminstrateur du partenaire (2) "
|
||||
|
||||
|
||||
def Add_Ressource_Humaine(diction):
|
||||
|
@ -40,7 +138,8 @@ def Add_Ressource_Humaine(diction):
|
|||
"""
|
||||
field_list = ['token', "nom", "email", "telephone", "website", "comment",'adr_adresse', 'adr_code_postal',
|
||||
'adr_ville', 'adr_pays', 'profil', 'telephone_mobile', 'linkedin',
|
||||
'facebook', 'twitter', 'prenom', 'fonction', 'civilite', 'superieur_hierarchie_id', 'ismanager']
|
||||
'facebook', 'twitter', 'prenom', 'fonction', 'civilite', 'superieur_hierarchie_id', 'ismanager',
|
||||
]
|
||||
|
||||
incom_keys = diction.keys()
|
||||
for val in incom_keys:
|
||||
|
@ -123,6 +222,7 @@ def Add_Ressource_Humaine(diction):
|
|||
prenom = diction['prenom']
|
||||
data['prenom'] = diction['prenom']
|
||||
|
||||
|
||||
ismanager = "0"
|
||||
if ("ismanager" in diction.keys()):
|
||||
if diction['ismanager']:
|
||||
|
@ -257,6 +357,7 @@ def Add_Ressource_Humaine(diction):
|
|||
data['valide'] = '1'
|
||||
data['locked'] = '0'
|
||||
data['date_update'] = str(datetime.now())
|
||||
data['is_partner_admin_account'] = "0"
|
||||
|
||||
# Creation du RecId
|
||||
data['recid'] = mycommon.create_user_recid()
|
||||
|
@ -495,7 +596,7 @@ def Update_Ressource_Humaine(diction):
|
|||
"""
|
||||
Clés de mise à jour
|
||||
"""
|
||||
data_cle = {'_id': ObjectId(str(diction['_id'])), 'valide': '1', 'locked': '0', 'partner_recid': str(my_partner['recid']),}
|
||||
data_cle = {'_id': ObjectId(str(diction['_id'])), 'valide': '1', 'is_partner_admin_account':'0', 'locked': '0', 'partner_recid': str(my_partner['recid']),}
|
||||
|
||||
|
||||
inserted_id = ""
|
||||
|
@ -609,6 +710,7 @@ def Delete_Ressource_Humaine(diction):
|
|||
Suppression de l'employé
|
||||
"""
|
||||
MYSY_GV.dbname['ressource_humaine'].delete_many({'_id': ObjectId(str(diction['_id'])),
|
||||
'is_partner_admin_account': '0',
|
||||
'partner_recid': str(my_partner['recid']),})
|
||||
|
||||
|
||||
|
@ -682,6 +784,7 @@ def Get_List_Ressource_Humaine(diction):
|
|||
|
||||
data_cle['locked'] = "0"
|
||||
data_cle['valide'] = "1"
|
||||
data_cle['is_partner_admin_account'] = "0"
|
||||
|
||||
RetObject = []
|
||||
val_tmp = 1
|
||||
|
@ -919,7 +1022,7 @@ def Get_List_Ressource_Humaine_with_filter(diction):
|
|||
data_cle['locked'] = "0"
|
||||
data_cle['valide'] = "1"
|
||||
|
||||
find_qry = {'$and':[{'partner_recid': str(my_partner['recid']), 'valide':'1', 'locked':'0' }, filt_nom, filt_email] }
|
||||
find_qry = {'$and':[{'partner_recid': str(my_partner['recid']), 'valide':'1', 'locked':'0', 'is_partner_admin_account':'0' }, filt_nom, filt_email] }
|
||||
|
||||
|
||||
new_myquery = [{'$match': find_qry},
|
||||
|
@ -1094,6 +1197,7 @@ def Get_List_Ressource_Humaine_no_filter(diction):
|
|||
|
||||
data_cle['locked'] = "0"
|
||||
data_cle['valide'] = "1"
|
||||
data_cle['is_partner_admin_account'] = "0"
|
||||
|
||||
find_qry = {'partner_recid': str(my_partner['recid']), 'valide':'1', 'locked':'0' }
|
||||
|
||||
|
@ -1179,6 +1283,7 @@ def Get_Given_Ressource_Humaine(diction):
|
|||
|
||||
data_cle['valide'] = "1"
|
||||
data_cle['locked'] = "0"
|
||||
data_cle['is_partner_admin_account'] = "0"
|
||||
|
||||
RetObject = []
|
||||
val_tmp = 1
|
||||
|
@ -1486,6 +1591,7 @@ def Get_List_Manager_Ressource_Humaine(diction):
|
|||
data_cle['ismanager'] = "1"
|
||||
data_cle['locked'] = "0"
|
||||
data_cle['valide'] = "1"
|
||||
data_cle['is_partner_admin_account'] = "0"
|
||||
|
||||
RetObject = []
|
||||
val_tmp = 1
|
||||
|
|
Loading…
Reference in New Issue