04/12/2023 -17h
parent
9562f45b89
commit
a0b197164e
|
@ -2,15 +2,10 @@
|
|||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="01/12/2023 - 23h">
|
||||
<change afterPath="$PROJECT_DIR$/Dashbord_queries/formation_tbd_qries.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Dashbord_queries/common_tdb_qries.py" beforeDir="false" afterPath="$PROJECT_DIR$/Dashbord_queries/common_tdb_qries.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Dashbord_queries/session_tbd_qries.py" beforeDir="false" afterPath="$PROJECT_DIR$/Dashbord_queries/session_tbd_qries.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Inscription_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/Inscription_mgt.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_invoice.py" beforeDir="false" afterPath="$PROJECT_DIR$/partner_invoice.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/prj_common.py" beforeDir="false" afterPath="$PROJECT_DIR$/prj_common.py" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
|
|
@ -1,12 +1,18 @@
|
|||
"""
|
||||
Ce fichier permets de créer les inscription des stagiaires à une formation
|
||||
"""
|
||||
import smtplib
|
||||
from email import encoders
|
||||
from email.mime.base import MIMEBase
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from email.mime.text import MIMEText
|
||||
|
||||
import pymongo
|
||||
from pymongo import MongoClient
|
||||
import json
|
||||
from bson import ObjectId
|
||||
import re
|
||||
from datetime import datetime
|
||||
from datetime import datetime, date
|
||||
import prj_common as mycommon
|
||||
import secrets
|
||||
import inspect
|
||||
|
@ -27,7 +33,7 @@ import ftplib
|
|||
import pysftp
|
||||
import email_mgt as email_mgt
|
||||
import lms_chamilo.mysy_lms as mys_lms
|
||||
|
||||
from email.message import EmailMessage
|
||||
"""
|
||||
Enregistrement d'un stagiaire
|
||||
|
||||
|
@ -6027,3 +6033,275 @@ def Get_List_Conventions_Stagiaire(diction):
|
|||
exc_type, exc_obj, exc_tb = sys.exc_info()
|
||||
mycommon.myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - Line : " + str(exc_tb.tb_lineno))
|
||||
return False, " Impossible de récupérer la liste des conventions"
|
||||
|
||||
|
||||
"""
|
||||
Cette fonction envoie une convention de stage par email
|
||||
elle prend :
|
||||
- courrier_template_id
|
||||
- inscription_id.
|
||||
|
||||
Dans le cas ou l'utilisateur a modifier l'email du destinataire ou il a donné une
|
||||
adresse email de test, on accepte en non obligatoire
|
||||
- email_test
|
||||
- email_production
|
||||
|
||||
Question : Comment traiter les emails envoyées dans la liste des pièces echangés
|
||||
|
||||
"""
|
||||
def Sent_Convention_Stagiaire_By_Email(diction):
|
||||
try:
|
||||
field_list_obligatoire = [ 'token', 'inscription_id', 'courrier_template_id', 'email_test', 'email_production' ]
|
||||
|
||||
for val in field_list_obligatoire:
|
||||
if val not in diction:
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " La valeur '" + val + "' n'est pas presente dans liste ")
|
||||
return False, " La valeur '" + val + "' n'est pas presente dans liste"
|
||||
|
||||
my_token = ""
|
||||
if ("token" in diction.keys()):
|
||||
if diction['token']:
|
||||
my_token = diction['token']
|
||||
|
||||
|
||||
local_status, my_partner = mycommon.Check_Connexion_And_Return_Partner_Data(diction)
|
||||
if (local_status is not True):
|
||||
return local_status, my_partner
|
||||
|
||||
|
||||
# Verifier que le stagiaire est bien inscrit. Le statut de l'inscription doit etre "1"
|
||||
is_inscription_valide = MYSY_GV.dbname['inscription'].count_documents({'_id':ObjectId(str(diction['inscription_id'])),
|
||||
'status':'1',
|
||||
'partner_owner_recid':str(my_partner['recid'])})
|
||||
|
||||
if( is_inscription_valide != 1 ):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " L'identifiant de l'inscription est invalide ")
|
||||
return False, " L'identifiant de l'inscription est invalide "
|
||||
|
||||
|
||||
# Verification de la validité des adresses email_recu
|
||||
"""
|
||||
/!\ : Si l'email de test est repli, alors on considere que c'est un test, on ne prend pas en compte l'email de email_production.
|
||||
Ceci pour forcer les utilisateur à ne remplir que l'email de prod s'il veulent l'envoyer en prod.
|
||||
|
||||
Si l'adresse email_prodution = "defaul", cela veut dire qu'on envoie la convention à :
|
||||
- l'adresse email du stagiaire et ses tuteurs (si les tuteurs on cochés la case 'inclu com'
|
||||
|
||||
"""
|
||||
tab_emails_destinataire = []
|
||||
if( "email_test" in diction.keys() and diction['email_test']):
|
||||
tab_email_test = str(diction['email_test']).replace(";",",").split(",")
|
||||
for email in tab_email_test:
|
||||
if( mycommon.isEmailValide(email) is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " L'adresse email "+str(email)+" est invalide ")
|
||||
return False, " L'adresse email "+str(email)+" est invalide "
|
||||
tab_emails_destinataire = tab_email_test
|
||||
|
||||
elif ( "email_production" in diction.keys() and diction['email_production']):
|
||||
if( str(diction['email_production']) != "default") :
|
||||
tab_email_prod = str(diction['email_production']).replace(";", ",").split(",")
|
||||
for email in tab_email_prod:
|
||||
if (mycommon.isEmailValide(email) is False):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " L'adresse email " + str(email) + " est invalide ")
|
||||
return False, " L'adresse email " + str(email) + " est invalide "
|
||||
tab_emails_destinataire = tab_email_prod
|
||||
else:
|
||||
tab_email_prod = "default"
|
||||
|
||||
|
||||
else:
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " Aucune adresse email n'a été fourni. ")
|
||||
return False, " Aucune adresse email n'a été fourni. "
|
||||
|
||||
# Verifier que le 'courrier_template_id' est valide
|
||||
qry = {'_id':ObjectId(str(diction['courrier_template_id'])),
|
||||
'valide':'1',
|
||||
'locked':'0',
|
||||
'partner_owner_recid': str(my_partner['recid'])}
|
||||
|
||||
print( " ### qry = ", qry)
|
||||
is_courrier_template_id_valide = MYSY_GV.dbname['courrier_template'].count_documents({'_id':ObjectId(str(diction['courrier_template_id'])),
|
||||
'valide':'1',
|
||||
'locked':'0',
|
||||
'partner_owner_recid': str(my_partner['recid'])}
|
||||
)
|
||||
|
||||
if( is_courrier_template_id_valide != 1 ):
|
||||
mycommon.myprint(str(inspect.stack()[0][3]) + " L'identifiant du modèle de courrier est invalide ")
|
||||
return False, " L'identifiant du modèle de courrier est invalide "
|
||||
|
||||
|
||||
# Recuperation des données du stagaire
|
||||
inscription_data = MYSY_GV.dbname['inscription'].find_one({'_id':ObjectId(str(diction['inscription_id'])),
|
||||
'status':'1',
|
||||
'partner_owner_recid':str(my_partner['recid'])})
|
||||
|
||||
# Recupération des données du modèle de document
|
||||
courrier_template_data = MYSY_GV.dbname['courrier_template'].find_one(
|
||||
{'_id': ObjectId(str(diction['courrier_template_id'])),
|
||||
'valide': '1',
|
||||
'locked': '0',
|
||||
'partner_owner_recid': str(my_partner['recid'])}
|
||||
)
|
||||
|
||||
#Recuperations des info de la session de formation
|
||||
session_data = MYSY_GV.dbname['session_formation'].find_one({'_id': ObjectId(str(inscription_data['session_id'])),'valide': '1',
|
||||
'partner_owner_recid':str(my_partner['recid'])})
|
||||
|
||||
|
||||
# Recuperation du titre de la formation
|
||||
class_data = MYSY_GV.dbname['myclass'].find_one({'internal_url': str(session_data['class_internal_url']),'valide': '1',
|
||||
'partner_owner_recid':str(my_partner['recid']), 'locked':'0'})
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Creation du dictionnaire d'information à utiliser pour la creation du doc
|
||||
convention_dictionnary_data = {}
|
||||
## Creation du PDF
|
||||
contenu_doc_Template = jinja2.Template(str(courrier_template_data['contenu_doc']))
|
||||
|
||||
sourceHtml = contenu_doc_Template.render(params=convention_dictionnary_data)
|
||||
|
||||
todays_date = str(date.today().strftime("%d/%m/%Y"))
|
||||
ts = datetime.now().timestamp()
|
||||
ts = str(ts).replace(".", "").replace(",", "")[-5:]
|
||||
|
||||
orig_file_name = "Convention_" + str(my_partner['recid']) + "_" + str(ts) + ".pdf"
|
||||
outputFilename = str(MYSY_GV.TEMPORARY_DIRECTORY) + "/" + str(orig_file_name)
|
||||
|
||||
# open output file for writing (truncated binary)
|
||||
resultFile = open(outputFilename, "w+b")
|
||||
|
||||
# convert HTML to PDF
|
||||
pisaStatus = pisa.CreatePDF(
|
||||
src=sourceHtml, # the HTML to convert
|
||||
dest=resultFile) # file handle to receive result
|
||||
|
||||
# close output file
|
||||
resultFile.close()
|
||||
|
||||
"""
|
||||
Corps du mail qui accompagne le pdf
|
||||
"""
|
||||
|
||||
corp_mail = '''
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<h3> Attestation de {nom} {prenom} </h3>
|
||||
Bonjour, <br/>
|
||||
Merci de trouver votre attestation de la formation {maformation} en pièce jointe
|
||||
<br/>
|
||||
|
||||
</body>
|
||||
</html>'''
|
||||
html_mime = MIMEText(corp_mail, 'html')
|
||||
|
||||
# Creation de l'email à enoyer
|
||||
print("debut envoi mail de test ")
|
||||
msg = MIMEMultipart("alternative")
|
||||
|
||||
#f = './Invoices/aaa.pdf'
|
||||
part = MIMEBase('application', "octet-stream")
|
||||
part.set_payload(open(outputFilename, "rb").read())
|
||||
encoders.encode_base64(part)
|
||||
part.add_header('Content-Disposition', 'attachment; filename="{0}"'
|
||||
.format(os.path.basename(outputFilename)))
|
||||
|
||||
|
||||
"""
|
||||
Recuperation des parametre SMTP du partner si le client a decidé d'utiliser son propre smpt
|
||||
"""
|
||||
partner_own_smtp_value = "0"
|
||||
partner_own_smtp = MYSY_GV.dbname['base_partner_setup'].find_one(
|
||||
{'partner_owner_recid': str(my_partner['recid']),
|
||||
'config_name': 'partner_smtp',
|
||||
'valide': '1',
|
||||
'locked': '0'})
|
||||
|
||||
if (partner_own_smtp and "config_value" in partner_own_smtp.keys()):
|
||||
partner_own_smtp_value = partner_own_smtp['config_value']
|
||||
|
||||
if (str(partner_own_smtp_value) == "1"):
|
||||
partner_SMTP_COUNT_password = str(MYSY_GV.dbname['base_partner_setup'].find_one(
|
||||
{'partner_owner_recid': str(my_partner['recid']),
|
||||
'config_name': 'smtp_user_pwd',
|
||||
'valide': '1',
|
||||
'locked': '0'}, {'config_value': 1})['config_value'])
|
||||
|
||||
partner_SMTP_COUNT_smtpsrv = str(MYSY_GV.dbname['base_partner_setup'].find_one(
|
||||
{'partner_owner_recid': str(my_partner['recid']),
|
||||
'config_name': 'smtp_server',
|
||||
'valide': '1',
|
||||
'locked': '0'}, {'config_value': 1})['config_value'])
|
||||
|
||||
partner_SMTP_COUNT_user = str(MYSY_GV.dbname['base_partner_setup'].find_one(
|
||||
{'partner_owner_recid': str(my_partner['recid']),
|
||||
'config_name': 'smtp_user',
|
||||
'valide': '1',
|
||||
'locked': '0'}, {'config_value': 1})['config_value'])
|
||||
|
||||
partner_SMTP_COUNT_From_User = str(MYSY_GV.dbname['base_partner_setup'].find_one(
|
||||
{'partner_owner_recid': str(my_partner['recid']),
|
||||
'config_name': 'smtp_count_from_name',
|
||||
'valide': '1',
|
||||
'locked': '0'}, {'config_value': 1})['config_value'])
|
||||
|
||||
partner_SMTP_COUNT_port = str(MYSY_GV.dbname['base_partner_setup'].find_one(
|
||||
{'partner_owner_recid': str(my_partner['recid']),
|
||||
'config_name': 'smtp_count_port',
|
||||
'valide': '1',
|
||||
'locked': '0'}, {'config_value': 1})['config_value'])
|
||||
|
||||
if (str(partner_own_smtp_value) == "1"):
|
||||
smtpserver = smtplib.SMTP(partner_SMTP_COUNT_smtpsrv, partner_SMTP_COUNT_port)
|
||||
else:
|
||||
smtpserver = smtplib.SMTP(MYSY_GV.O365_SMTP_COUNT_smtpsrv, MYSY_GV.O365_SMTP_COUNT_port)
|
||||
|
||||
if (str(partner_own_smtp_value) == "1"):
|
||||
msg.attach(html_mime)
|
||||
msg.attach(part)
|
||||
msg['From'] = partner_SMTP_COUNT_From_User
|
||||
msg['Bcc'] = 'contact@mysy-training.com'
|
||||
msg['Subject'] = courrier_template_data['sujet']
|
||||
msg['to'] = "billardman01@hotmail.com"
|
||||
|
||||
smtpserver.ehlo()
|
||||
smtpserver.starttls()
|
||||
smtpserver.login(partner_SMTP_COUNT_user, partner_SMTP_COUNT_password)
|
||||
|
||||
else:
|
||||
msg.attach(html_mime)
|
||||
msg.attach(part)
|
||||
msg['From'] = MYSY_GV.O365_SMTP_COUNT_From_User
|
||||
msg['Bcc'] = 'contact@mysy-training.com'
|
||||
msg['Subject'] = courrier_template_data['sujet']
|
||||
msg['to'] = "billardman01@hotmail.com"
|
||||
|
||||
smtpserver.ehlo()
|
||||
smtpserver.starttls()
|
||||
smtpserver.login(MYSY_GV.O365_SMTP_COUNT_user, MYSY_GV.O365_SMTP_COUNT_password)
|
||||
|
||||
val = smtpserver.send_message(msg)
|
||||
smtpserver.close()
|
||||
print(" Email envoyé " + str(val))
|
||||
|
||||
return True, "L'email a été correctement envoyé "
|
||||
|
||||
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 récupérer la liste des conventions"
|
394
Log/log_file.log
394
Log/log_file.log
|
@ -1931162,3 +1931162,397 @@ INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 12:26:47] "POST /myclass/api/get_partne
|
|||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 12:26:47] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 12:26:47] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 12:26:47] "POST /myclass/api/Get_Statgaire_List_Partner_with_filter/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:15:19.795267 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:15:19.796276 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:15:19.796276 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:15:19.796276 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:15:19.796276 : ++ 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-12-04 15:15:28.656651 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:15:28.657651 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:15:28.657651 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:15:28.657651 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:15:28.657651 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-12-04 15:16:18.962950 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:18.963971 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:18.965103 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:18] "POST /myclass/api/get_List_domaine_formation/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:19] "POST /myclass/api/Get_Suggested_Fr_Cities/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:19] "POST /myclass/api/Get_Suggested_Word/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:19.915482 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:19.917713 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:20] "POST /myclass/api/get_all_class/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.003323 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:21.004714 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:21.005738 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:21.010238 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.016910 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.019528 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.327561 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:21.331110 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.335015 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.338982 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.343055 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:21.345464 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.639037 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.645300 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:21.647895 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.654129 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.658670 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.661653 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.955298 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:21.958303 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.964300 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:21.967300 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.971303 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:21.974302 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:21] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:22.268758 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:22.270752 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:22] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:22] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:22.274761 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:22] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:22.279759 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 15:16:22.283066 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:22] "POST /myclass/api/getRecodedClassImage_from_front/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 15:16:22.287091 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:22] "POST /myclass/api/GetActiveSessionFormation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 15:16:22] "POST /myclass/api/GetActiveSession_Cities_And_Distance_Formation_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:16:52.293370 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:16:52.294372 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:16:52.294372 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:16:52.294372 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:16:52.294372 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:17:20.500481 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:17:20.500481 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:17:20.501507 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:17:20.501507 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:17:20.501507 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:24:46.141313 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:24:46.141836 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:24:46.141836 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:24:46.141836 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:24:46.141836 : ++ 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-12-04 15:24:54.896211 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:24:54.896211 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:24:54.896211 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:24:54.896211 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:24:54.896211 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:27:52.246664 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:27:52.246664 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:27:52.246664 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:27:52.246664 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:27:52.246664 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:28:44.966690 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:28:44.966690 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:28:44.966690 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:28:44.966690 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:28:44.966690 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:31:07.241486 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:31:07.241486 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:31:07.241486 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:31:07.241486 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:31:07.241486 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:32:31.842989 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:32:31.842989 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:32:31.842989 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:32:31.842989 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:32:31.842989 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:32:46.158656 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:32:46.158656 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:32:46.158656 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:32:46.158656 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:32:46.159656 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:33:03.000170 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:33:03.000170 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:33:03.001176 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:33:03.001176 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:33:03.001176 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:33:23.307963 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:33:23.307963 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:33:23.307963 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:33:23.307963 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:33:23.307963 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:33:54.429848 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:33:54.429848 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:33:54.429848 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:33:54.429848 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:33:54.429848 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:35:12.260331 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:35:12.260331 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:35:12.260331 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:35:12.260331 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:35:12.260331 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:37:07.517954 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:37:07.517954 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:37:07.517954 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:37:07.517954 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:37:07.517954 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 15:48:27.966129 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 15:48:27.966129 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 15:48:27.967661 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 15:48:27.967661 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 15:48:27.967661 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 16:03:50.398677 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 16:03:50.399676 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 16:03:50.399676 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 16:03:50.399676 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 16:03:50.399676 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 16:06:28.733497 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 16:06:28.733497 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 16:06:28.733497 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 16:06:28.733497 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 16:06:28.733497 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-12-04 16:07:08.632250 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:07:08.635271 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:07:08.638270 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:07:08] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:07:08.649825 : Connexion du partner recid = dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a OK. Mise à jour du firstconnexion et/ou lastconnexion : OK
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:07:08] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:07:08] "POST /myclass/api/LMS_Get_Partner_Data/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:07:08.754008 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:07:08.757233 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:07:08.759527 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:07:08.765467 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:07:08.770459 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:07:08] "POST /myclass/api/Get_Partner_List_Partner_Client/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:07:08] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:07:08] "POST /myclass/api/Get_Partner_Object_Specific_Valide_Displayed_Fields/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:07:08] "POST /myclass/api/GetAllValideSessionPartner_List/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:07:08] "POST /myclass/api/Get_Statgaire_List_Partner_with_filter/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:08:54.938832 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:08:54] "POST /myclass/api/Get_Personnalisable_Collection/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:08:54.944913 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:08:54] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:08:56.641187 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:08:56] "POST /myclass/api/Get_List_Default_Partner_Document/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:09:28.365527 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:09:28.368539 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:09:28] "POST /myclass/api/Get_Given_DFAULT_Partner_Document/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:09:28] "POST /myclass/api/Get_Given_Personnalisable_Fields_By_courrier_template_id/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:09:47.996371 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:09:48] "POST /myclass/api/Add_Partner_Document/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:09:51.224030 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:09:51] "POST /myclass/api/Get_List_Partner_Document_no_filter/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 16:17:27.473033 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 16:17:27.473033 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 16:17:27.473033 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 16:17:27.473033 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 16:17:27.473033 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-12-04 16:18:59.198436 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:18:59] "[32mPOST /myclass/api/Create_Automatic_Sequence HTTP/1.1[0m" 308 -
|
||||
INFO:root:2023-12-04 16:18:59.208015 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:19:00.867766 : Create_Automatic_Sequence Le champ 'inscription_id' n'est pas autorisé
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:19:00] "POST /myclass/api/Create_Automatic_Sequence/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:19:34.210315 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:19:34] "[32mPOST /myclass/api/Sent_Convention_Stagiaire_By_Email HTTP/1.1[0m" 308 -
|
||||
INFO:root:2023-12-04 16:19:34.217036 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:19:34.222394 : Sent_Convention_Stagiaire_By_Email La valeur 'email_production' n'est pas presente dans liste
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:19:34] "POST /myclass/api/Sent_Convention_Stagiaire_By_Email/ HTTP/1.1" 200 -
|
||||
INFO:root:2023-12-04 16:19:45.478018 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:19:45] "[32mPOST /myclass/api/Sent_Convention_Stagiaire_By_Email HTTP/1.1[0m" 308 -
|
||||
INFO:root:2023-12-04 16:19:45.483232 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:19:45.506740 : Sent_Convention_Stagiaire_By_Email -'' - Line : 6093
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:19:45] "POST /myclass/api/Sent_Convention_Stagiaire_By_Email/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 16:21:09.847619 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 16:21:09.847619 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 16:21:09.847619 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 16:21:09.847619 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 16:21:09.848619 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-12-04 16:21:19.357564 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:21:19] "[32mPOST /myclass/api/Sent_Convention_Stagiaire_By_Email HTTP/1.1[0m" 308 -
|
||||
INFO:root:2023-12-04 16:21:19.368347 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:21:20.129451 : Sent_Convention_Stagiaire_By_Email L'identifiant du modèle de courrier est invalide
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:21:20] "POST /myclass/api/Sent_Convention_Stagiaire_By_Email/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 16:22:46.466426 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 16:22:46.466426 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 16:22:46.466426 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 16:22:46.466426 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 16:22:46.466426 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-12-04 16:22:52.414715 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:22:52] "[32mPOST /myclass/api/Sent_Convention_Stagiaire_By_Email HTTP/1.1[0m" 308 -
|
||||
INFO:root:2023-12-04 16:22:52.422709 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:22:52.910414 : Sent_Convention_Stagiaire_By_Email L'identifiant du modèle de courrier est invalide
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:22:52] "POST /myclass/api/Sent_Convention_Stagiaire_By_Email/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 16:23:53.330239 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 16:23:53.330239 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 16:23:53.331248 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 16:23:53.331248 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 16:23:53.331248 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-12-04 16:23:53.427028 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:23:53] "[32mPOST /myclass/api/Sent_Convention_Stagiaire_By_Email HTTP/1.1[0m" 308 -
|
||||
INFO:root:2023-12-04 16:23:53.440056 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:root:2023-12-04 16:23:54.310409 : Sent_Convention_Stagiaire_By_Email -'praticien-en-aromatherapie-integrative-2ea' is not a valid ObjectId, it must be a 12-byte input or a 24-character hex string - Line : 6160
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:23:54] "POST /myclass/api/Sent_Convention_Stagiaire_By_Email/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 16:24:29.233313 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 16:24:29.234311 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 16:24:29.234311 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 16:24:29.234311 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 16:24:29.234311 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-12-04 16:24:29.265452 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:24:29] "[32mPOST /myclass/api/Sent_Convention_Stagiaire_By_Email HTTP/1.1[0m" 308 -
|
||||
INFO:root:2023-12-04 16:24:29.272385 : Security check : IP adresse '127.0.0.1' connected
|
||||
DEBUG:xhtml2pdf:pisaDocument options:
|
||||
src = '<p>bonjour cherif, ce ci est une convention pdffffff</p>'
|
||||
dest = <_io.BufferedRandom name='./temp_direct/Convention_dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a_94029.pdf'>
|
||||
path = None
|
||||
link_callback = None
|
||||
xhtml = False
|
||||
context_meta = None
|
||||
INFO:root:2023-12-04 16:24:30.122889 : Sent_Convention_Stagiaire_By_Email -Attach is not valid on a message with a non-multipart payload - Line : 6285
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:24:30] "POST /myclass/api/Sent_Convention_Stagiaire_By_Email/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 16:25:53.301098 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 16:25:53.301098 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 16:25:53.301098 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 16:25:53.301098 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 16:25:53.301098 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
INFO:root:2023-12-04 16:25:53.334636 : Security check : IP adresse '127.0.0.1' connected
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:25:53] "[32mPOST /myclass/api/Sent_Convention_Stagiaire_By_Email HTTP/1.1[0m" 308 -
|
||||
INFO:root:2023-12-04 16:25:53.342629 : Security check : IP adresse '127.0.0.1' connected
|
||||
DEBUG:xhtml2pdf:pisaDocument options:
|
||||
src = '<p>bonjour cherif, ce ci est une convention pdffffff</p>'
|
||||
dest = <_io.BufferedRandom name='./temp_direct/Convention_dbdd36f3d86a73e2bfac7b3f10f062ce1e7c22f7da37de192a_72957.pdf'>
|
||||
path = None
|
||||
link_callback = None
|
||||
xhtml = False
|
||||
context_meta = None
|
||||
INFO:werkzeug:127.0.0.1 - - [04/Dec/2023 16:25:56] "POST /myclass/api/Sent_Convention_Stagiaire_By_Email/ HTTP/1.1" 200 -
|
||||
INFO:werkzeug: * Detected change in 'C:\\Users\\billa\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 17:03:53.573231 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 17:03:53.573231 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 17:03:53.573231 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 17:03:53.573231 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 17:03:53.573231 : ++ 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\\Inscription_mgt.py', reloading
|
||||
INFO:werkzeug: * Restarting with stat
|
||||
INFO:root:2023-12-04 17:04:17.070412 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++
|
||||
INFO:root:2023-12-04 17:04:17.070412 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++
|
||||
INFO:root:2023-12-04 17:04:17.071455 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++
|
||||
INFO:root:2023-12-04 17:04:17.071455 : ++ FLASK PORT 5001 ++
|
||||
INFO:root:2023-12-04 17:04:17.071455 : ++ LMS_BAS_URL mysy-training.com/ ++
|
||||
WARNING:werkzeug: * Debugger is active!
|
||||
INFO:werkzeug: * Debugger PIN: 877-541-979
|
||||
|
|
11
main.py
11
main.py
|
@ -4002,6 +4002,17 @@ def Get_List_Conventions_Stagiaire():
|
|||
return jsonify(status=status, message=retval)
|
||||
|
||||
|
||||
"""
|
||||
Envoie de le convention du stagiaire
|
||||
"""
|
||||
@app.route('/myclass/api/Sent_Convention_Stagiaire_By_Email/', methods=['POST','GET'])
|
||||
@crossdomain(origin='*')
|
||||
def Sent_Convention_Stagiaire_By_Email():
|
||||
# On recupere le corps (payload) de la requete
|
||||
payload = mycommon.strip_dictionary (request.form.to_dict())
|
||||
print(" ### Sent_Convention_Stagiaire_By_Email payload = ",payload)
|
||||
status, retval = inscription.Sent_Convention_Stagiaire_By_Email(payload)
|
||||
return jsonify(status=status, message=retval)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue