rrr
parent
f4db24a458
commit
80bb16ba97
|
@ -1,13 +1,11 @@
|
|||
<?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="22/01/2024 -22h00">
|
||||
<change afterPath="$PROJECT_DIR$/__init__.py" afterDir="false" />
|
||||
<change afterPath="$PROJECT_DIR$/module_editique.py" afterDir="false" />
|
||||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="24/01/2024 -12h00">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" 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$/Session_Formation.py" beforeDir="false" afterPath="$PROJECT_DIR$/Session_Formation.py" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/module_editique.py" beforeDir="false" afterPath="$PROJECT_DIR$/module_editique.py" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
|
@ -77,13 +75,6 @@
|
|||
<option name="presentableId" value="Default" />
|
||||
<updated>1680804787304</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00152" summary="17/11/2023 - 16h">
|
||||
<created>1700233488529</created>
|
||||
<option name="number" value="00152" />
|
||||
<option name="presentableId" value="LOCAL-00152" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1700233488530</updated>
|
||||
</task>
|
||||
<task id="LOCAL-00153" summary="18/11/2023 - 17h00">
|
||||
<created>1700322992177</created>
|
||||
<option name="number" value="00153" />
|
||||
|
@ -420,7 +411,14 @@
|
|||
<option name="project" value="LOCAL" />
|
||||
<updated>1705957023842</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="201" />
|
||||
<task id="LOCAL-00201" summary="24/01/2024 -12h00">
|
||||
<created>1706182967822</created>
|
||||
<option name="number" value="00201" />
|
||||
<option name="presentableId" value="LOCAL-00201" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1706182967824</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="202" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
|
@ -435,7 +433,6 @@
|
|||
</option>
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<MESSAGE value="16/12/2023 - 23h12" />
|
||||
<MESSAGE value="18/12/2023 - 18:00" />
|
||||
<MESSAGE value="18/12/2023 - 22:00" />
|
||||
<MESSAGE value="20/12/2023 - 18h" />
|
||||
|
@ -460,6 +457,7 @@
|
|||
<MESSAGE value="19/01/2024 - 16h" />
|
||||
<MESSAGE value="21/01/2024 -18h30" />
|
||||
<MESSAGE value="22/01/2024 -22h00" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="22/01/2024 -22h00" />
|
||||
<MESSAGE value="24/01/2024 -12h00" />
|
||||
<option name="LAST_COMMIT_MESSAGE" value="24/01/2024 -12h00" />
|
||||
</component>
|
||||
</project>
|
1010
Log/log_file.log
1010
Log/log_file.log
File diff suppressed because one or more lines are too long
|
@ -4153,6 +4153,37 @@ def Prepare_and_Send_Convention_From_Session_By_Email(tab_files, Folder, diction
|
|||
tab_files_to_attache_to_mail = []
|
||||
|
||||
|
||||
|
||||
"""
|
||||
25/01/2024 : pour loger une action dans la collection ==> courrier_template_tracking_history
|
||||
"""
|
||||
courrier_template_tracking_id = ""
|
||||
courrier_template_tracking_data = MYSY_GV.dbname['courrier_template_tracking'].find_one({'partner_owner_recid':str(my_partner['recid']),
|
||||
'valide':'1',
|
||||
'locked':'0',
|
||||
'courrier_template_id':str(diction['courrier_template_id'])})
|
||||
if(courrier_template_tracking_data is None ):
|
||||
mycommon.myprint(
|
||||
" WARNING impossible de recuperer le 'courrier_template_tracking' pour courrier_template_id : " +str(diction['courrier_template_id']) )
|
||||
return True, " WARNING impossible de récuperer le 'courrier_template_tracking' pour courrier_template_id : " +str(diction['courrier_template_id'])
|
||||
|
||||
|
||||
courrier_template_tracking_id = str(courrier_template_tracking_data['_id'])
|
||||
|
||||
history_data_to_log = {}
|
||||
history_data_to_log ['partner_owner_recid'] = str(my_partner['recid'])
|
||||
history_data_to_log['related_collection_recid'] = str(diction['session_id'])
|
||||
history_data_to_log['courrier_template_tracking_id'] = courrier_template_tracking_id
|
||||
history_data_to_log['date_update'] = str(datetime.now())
|
||||
history_data_to_log['update_by'] = str(my_partner['_id'])
|
||||
history_data_to_log['valide'] = "1"
|
||||
history_data_to_log['locked'] = "0"
|
||||
|
||||
print( "#### history_data_to_log = ", history_data_to_log)
|
||||
MYSY_GV.dbname['courrier_template_tracking_history'].insert_one(history_data_to_log)
|
||||
|
||||
|
||||
|
||||
return True, " Les conventions ont été correctement envoyées par emails"
|
||||
|
||||
except Exception as e:
|
||||
|
|
|
@ -310,7 +310,7 @@ def Get_Editable_Document_By_Partner_By_Collection(diction):
|
|||
'valide':'1',
|
||||
'locked':'0'}
|
||||
|
||||
#print(" #### is_document_has_history_event qry = ", local_qry)
|
||||
print(" #### is_document_has_history_event qry = ", local_qry)
|
||||
|
||||
is_document_has_history_event = MYSY_GV.dbname['courrier_template_tracking_history'].count_documents(local_qry)
|
||||
|
||||
|
|
Loading…
Reference in New Issue