10/04/2024 - 11h50
parent
461fbe59ee
commit
e4f23ec32c
|
@ -1,10 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="09/04/2024 - 15h19">
|
||||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="09/04/2024 - 23h50">
|
||||
<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$/survey_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/survey_mgt.py" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
|
@ -75,13 +74,6 @@
|
|||
<option name="presentableId" value="Default" />
|
||||
<updated>1680804787304</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00214" summary="05/02/2024 -23h">
|
||||
<created>1707172831686</created>
|
||||
<option name="number" value="00214" />
|
||||
<option name="presentableId" value="LOCAL-00214" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1707172831686</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00215" summary="06/02/2024 -20h">
|
||||
<created>1707246725386</created>
|
||||
<option name="number" value="00215" />
|
||||
|
@ -418,7 +410,14 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1712676544738</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="263" />
|
||||
<task id="LOCAL-00263" summary="09/04/2024 - 23h50">
|
||||
<created>1712699498317</created>
|
||||
<option name="number" value="00263" />
|
||||
<option name="presentableId" value="LOCAL-00263" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1712699498318</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="264" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
|
@ -460,7 +459,6 @@
|
|||
</option>
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="06/03/2024 - 22h15" />
|
||||
<MESSAGE value="ssdqs" />
|
||||
<MESSAGE value="07/03/2024 - 22h30" />
|
||||
<MESSAGE value="ddd" />
|
||||
|
@ -485,6 +483,7 @@
|
|||
<MESSAGE value="07/04/2024 - 13h19" />
|
||||
<MESSAGE value="07/04/2024 - 19h19" />
|
||||
<MESSAGE value="09/04/2024 - 15h19" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="09/04/2024 - 15h19" />
|
||||
<MESSAGE value="09/04/2024 - 23h50" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="09/04/2024 - 23h50" />
|
||||
</component>
|
||||
</project>
|
1529
Log/log_file.log
1529
Log/log_file.log
File diff suppressed because one or more lines are too long
|
@ -556,6 +556,24 @@ def Create_One_Survey_To_Inscrit(diction):
|
|||
return False, " L'identifiant de la session est invalide "
|
||||
|
||||
|
||||
"""
|
||||
Recuperation des données de la formation concernée
|
||||
"""
|
||||
class_internal_url = ""
|
||||
if( "class_internal_url" in my_session_data.keys() ):
|
||||
class_internal_url = my_session_data['class_internal_url']
|
||||
|
||||
my_class_data = MYSY_GV.dbname['myclass'].find_one({'internal_url': str(class_internal_url),
|
||||
'valide': '1',
|
||||
'locked':'0',
|
||||
'partner_owner_recid': str( my_partner['recid'])})
|
||||
|
||||
if( my_class_data is None ):
|
||||
mycommon.myprint(
|
||||
str(inspect.stack()[0][
|
||||
3]) + " L'identifiant de la formation est invalide ")
|
||||
return False, " L'identifiant de la formation est invalide "
|
||||
|
||||
"""
|
||||
Recuperer les données de l'inscrit
|
||||
"""
|
||||
|
@ -581,6 +599,7 @@ def Create_One_Survey_To_Inscrit(diction):
|
|||
new_survey_data['formulaire_id'] = str(diction['formulaire_id'])
|
||||
new_survey_data['partner_owner_recid'] = str(my_partner['recid'])
|
||||
new_survey_data['session_id'] = str(diction['session_id'])
|
||||
new_survey_data['class_id'] = str(my_class_data['_id'])
|
||||
new_survey_data['survey_type'] = str(diction['survey_type'])
|
||||
new_survey_data['date_envoi'] = ""
|
||||
|
||||
|
@ -793,12 +812,28 @@ def Send_Survey_TabIds(diction):
|
|||
convention_dictionnary_data = {}
|
||||
new_diction = {}
|
||||
new_diction['token'] = diction['token']
|
||||
|
||||
is_apprenant = 0
|
||||
new_diction['list_stagiaire_id'] = []
|
||||
if( "inscription_id" in local_survey_retval.keys() and local_survey_retval['inscription_id']):
|
||||
new_diction['list_stagiaire_id'].append(ObjectId(str( local_survey_retval['inscription_id'])))
|
||||
|
||||
|
||||
|
||||
new_diction['list_session_id'] = []
|
||||
if ("session_id" in local_survey_retval.keys() and local_survey_retval['session_id']):
|
||||
new_diction['list_session_id'].append(ObjectId(str(local_survey_retval['session_id'])))
|
||||
|
||||
new_diction['list_class_id'] = []
|
||||
if ("class_id" in local_survey_retval.keys() and local_survey_retval['class_id']):
|
||||
new_diction['list_class_id'].append(ObjectId(str(local_survey_retval['class_id'])))
|
||||
|
||||
|
||||
new_diction['list_client_id'] = []
|
||||
new_diction['list_apprenant_id'] = []
|
||||
|
||||
|
||||
|
||||
local_status, local_retval = mycommon.Get_Dictionnary_data_For_Template(new_diction)
|
||||
|
||||
if (local_status is False):
|
||||
|
@ -818,9 +853,12 @@ def Send_Survey_TabIds(diction):
|
|||
"params": convention_dictionnary_data
|
||||
}
|
||||
|
||||
|
||||
|
||||
html = contenu_doc_Template.render(params=body["params"])
|
||||
|
||||
html_mime = MIMEText(html, 'html')
|
||||
subject_doc_Template = jinja2.Template(str(courrier_template_data['sujet']))
|
||||
subject = subject_doc_Template.render(params=body["params"])
|
||||
|
||||
|
||||
html_mime = MIMEText(html, 'html')
|
||||
|
@ -838,7 +876,7 @@ def Send_Survey_TabIds(diction):
|
|||
msg.attach(html_mime)
|
||||
msg['From'] = partner_SMTP_COUNT_From_User
|
||||
msg['Bcc'] = 'contact@mysy-training.com'
|
||||
msg['Subject'] = str(courrier_template_data['sujet'])
|
||||
msg['Subject'] = str(subject)
|
||||
# msg['to'] = "billardman01@hotmail.com"
|
||||
|
||||
msg['to'] = str(local_survey_retval['email'])
|
||||
|
@ -851,7 +889,7 @@ def Send_Survey_TabIds(diction):
|
|||
msg.attach(html_mime)
|
||||
msg['From'] = MYSY_GV.O365_SMTP_COUNT_From_User
|
||||
msg['Bcc'] = 'contact@mysy-training.com'
|
||||
msg['Subject'] = str(courrier_template_data['sujet'])
|
||||
msg['Subject'] = str(subject)
|
||||
# msg['to'] = "billardman01@hotmail.com"
|
||||
|
||||
msg['to'] = str(local_survey_retval['email'])
|
||||
|
|
Loading…
Reference in New Issue