10/08/2024 - 20h32s

master
cherif 2024-08-10 21:39:26 +02:00
parent f02ad50d3a
commit 280c351e12
4 changed files with 2090 additions and 13 deletions

View File

@ -4,6 +4,7 @@
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="08/08/2024 - 20h32s">
<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$/Session_Formation_Sequence.py" beforeDir="false" afterPath="$PROJECT_DIR$/Session_Formation_Sequence.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/groupe_inscrit_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/groupe_inscrit_mgt.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@ -74,13 +75,6 @@
<option name="presentableId" value="Default" />
<updated>1680804787304</updated>
</task>
<task id="LOCAL-00318" summary="sd">
<created>1717150367241</created>
<option name="number" value="00318" />
<option name="presentableId" value="LOCAL-00318" />
<option name="project" value="LOCAL" />
<updated>1717150367241</updated>
</task>
<task id="LOCAL-00319" summary="sss">
<created>1717159892367</created>
<option name="number" value="00319" />
@ -417,7 +411,14 @@
<option name="project" value="LOCAL" />
<updated>1722703608307</updated>
</task>
<option name="localTasksCounter" value="367" />
<task id="LOCAL-00367" summary="08/08/2024 - 20h32s">
<created>1723210885739</created>
<option name="number" value="00367" />
<option name="presentableId" value="LOCAL-00367" />
<option name="project" value="LOCAL" />
<updated>1723210885743</updated>
</task>
<option name="localTasksCounter" value="368" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">

File diff suppressed because it is too large Load Diff

View File

@ -265,6 +265,7 @@ def Add_Session_Sequence(diction):
3]) + " L'identifiant de la ligne de planification de unité d'enseignement est invalide ")
return False, " L'identifiant de la ligne de planification de unité d'enseignement est invalide "
"""
is_valide_unite_enseignement_planif_id_data = MYSY_GV.dbname['unite_enseignement_planif'].find_one(
{'_id': ObjectId(str(diction['ue_planif_line_id'])),
'ue_id': str(diction['ue_id']),
@ -278,6 +279,7 @@ def Add_Session_Sequence(diction):
str(inspect.stack()[0][
3]) + " La ligne de planification de unité d'enseignement est actuellement utilisé. Impossible d'associer à cette ligne à une nouvelle séquence ")
return False, " La ligne de planification de unité d'enseignement est actuellement utilisé. Impossible d'associer à cette ligne à une nouvelle séquence "
"""

View File

@ -62,7 +62,8 @@ def Add_Groupe_Inscrit(diction):
"""
Verification des input acceptés
"""
field_list = ['token', 'code', 'nom', 'description', 'type_groupe_code', 'class_id', 'session_id']
field_list = ['token', 'code', 'nom', 'description', 'type_groupe_code', 'class_id', 'session_id',
'color']
incom_keys = diction.keys()
for val in incom_keys:
@ -188,7 +189,8 @@ def Update_Groupe_Inscrit(diction):
"""
Verification des input acceptés
"""
field_list = ['token', '_id', 'code', 'nom', 'description', 'type_groupe_code', 'class_id', 'session_id']
field_list = ['token', '_id', 'code', 'nom', 'description', 'type_groupe_code', 'class_id', 'session_id',
'color']
incom_keys = diction.keys()
for val in incom_keys:
@ -1493,9 +1495,6 @@ def Automatic_Creation_Groupe_Member_Inscrit(diction):
"""
Creation de la table des groupes
"""
@ -1510,6 +1509,14 @@ def Automatic_Creation_Groupe_Member_Inscrit(diction):
suff_curr_timestamp = diction['racine']
"""
Generer des couleur pour l'affichage coloré dans les
agendas
"""
tab_color_random = ["#" + ''.join([random.choice('0123456789ABCDEF') for j in range(6)])
for i in range(nb_groupe+2)]
while ( cpt < nb_groupe ):
cpt = cpt +1
local_node = {}
@ -1519,6 +1526,7 @@ def Automatic_Creation_Groupe_Member_Inscrit(diction):
local_node['type_groupe_code'] = str(diction['type_groupe_code'])
local_node['class_id'] = str(diction['class_id'])
local_node['session_id'] = str(diction['session_id'])
local_node['color'] = str(tab_color_random['cpt'])
local_node['liste_inscrit'] = []
global_tab_groupe.append(local_node)
@ -1568,6 +1576,7 @@ def Automatic_Creation_Groupe_Member_Inscrit(diction):
new_data['type_groupe_code'] = str(diction['type_groupe_code'])
new_data['class_id'] = str(diction['class_id'])
new_data['session_id'] = str(diction['session_id'])
new_data['color'] = str(val['color'])
new_data['valide'] = "1"