08/03/26 - 20h

Signed-off-by: Cherif <cbalde@mysy-training.com>
master_Elyos_FI
Cherif 2026-03-08 20:14:45 +01:00
parent eabcd10798
commit 70a673f8cc
4 changed files with 2474 additions and 230 deletions

View File

@ -7,7 +7,8 @@
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="07/03/26 - 16h">
<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$/prj_common.py" beforeDir="false" afterPath="$PROJECT_DIR$/prj_common.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/base_class_calcul_note.py" beforeDir="false" afterPath="$PROJECT_DIR$/base_class_calcul_note.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/jury_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/jury_mgt.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />

File diff suppressed because it is too large Load Diff

View File

@ -924,7 +924,9 @@ def Get_List_Evaluation_Final_Note_Classement_Detail_With_Filter(diction):
'valide': '1',
'locked': '0',
'partner_owner_recid': str(my_partner['recid'])}):
tab_inscription_id.append(str(tmp['inscription_id']))
if("inscription_id" in tmp.keys() and tmp['inscription_id'] ):
tab_inscription_id.append(str(tmp['inscription_id']))
if (len(tab_inscription_id) > 0):
filt_apprenant_id_from_jury_seance = {'inscription_id': {'$in': tab_inscription_id}}
@ -1234,14 +1236,13 @@ def Get_List_Evaluation_UE_Note_Classement_With_Filter(diction):
tab_inscription_id = []
if ("jury_apprenant_agenda_id" in diction.keys() and diction['jury_apprenant_agenda_id']):
for tmp in MYSY_GV.dbname['jury_apprenant'].find({'agenda_id': str(diction['jury_apprenant_agenda_id']),
'valide': '1',
'locked': '0',
'partner_owner_recid': str(my_partner['recid'])}):
tab_inscription_id.append(str(tmp['inscription_id']))
if( "inscription_id" in tmp.keys() and tmp['inscription_id'] ):
tab_inscription_id.append(str(tmp['inscription_id']))
if(len(tab_inscription_id) > 0 ):
filt_apprenant_id_from_jury_seance = {'inscription_id': {'$in': tab_inscription_id}}
@ -1330,6 +1331,7 @@ def Get_List_Evaluation_UE_Note_Classement_With_Filter(diction):
RetObject.append(mycommon.JSONEncoder().encode(user))
return True, RetObject

View File

@ -2100,92 +2100,104 @@ def Get_List_Jury(diction):
val_tmp = 0
for retval in MYSY_GV.dbname['jury'].find(data_cle).sort([("_id", pymongo.DESCENDING), ]):
user = retval
user['id'] = str(val_tmp)
val_tmp = val_tmp + 1
# Recuperer le nombre de membre
nb_membre = MYSY_GV.dbname['jury_membre'].count_documents({'partner_owner_recid':str(my_partner['recid']),
'valide':'1',
'locked':'0',
'jury_id':str(retval['_id'])})
user['nb_membre'] = str(nb_membre)
# ne prendre que les jury avec une session valide
is_valide_session = ""
if ("session_id" in retval.keys() and retval['session_id']):
is_valide_session_count = MYSY_GV.dbname['session_formation'].count_documents(
{'_id': ObjectId(retval['session_id']),
'partner_owner_recid': str(my_partner['recid'])})
if (is_valide_session_count <= 0):
is_valide_session = '-1'
if (is_valide_session != "-1"):
user = retval
user['id'] = str(val_tmp)
val_tmp = val_tmp + 1
# Recuperer le nombre de membre
nb_membre = MYSY_GV.dbname['jury_membre'].count_documents({'partner_owner_recid':str(my_partner['recid']),
'valide':'1',
'locked':'0',
'jury_id':str(retval['_id'])})
user['nb_membre'] = str(nb_membre)
#Recuperation des nom et prenom du responsable (chef d'equipe)
chef_jury_nom_prenom = ""
if( "chef_jury_id" in retval.keys() and retval['chef_jury_id']):
chef_jury_id_data = MYSY_GV.dbname['ressource_humaine'].find_one({'partner_recid':str(my_partner['recid']),
'valide':'1',
'locked':'0',
'_id':ObjectId(str(retval['chef_jury_id']))})
#Recuperation des nom et prenom du responsable (chef d'equipe)
chef_jury_nom_prenom = ""
if( "chef_jury_id" in retval.keys() and retval['chef_jury_id']):
chef_jury_id_data = MYSY_GV.dbname['ressource_humaine'].find_one({'partner_recid':str(my_partner['recid']),
'valide':'1',
'locked':'0',
'_id':ObjectId(str(retval['chef_jury_id']))})
if( chef_jury_id_data and 'nom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_id_data['nom']
if( chef_jury_id_data and 'nom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_id_data['nom']
if (chef_jury_id_data and 'prenom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_nom_prenom+ " "+chef_jury_id_data['prenom']
if (chef_jury_id_data and 'prenom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_nom_prenom+ " "+chef_jury_id_data['prenom']
user['chef_jury_nom_prenom'] = str(chef_jury_nom_prenom)
user['chef_jury_nom_prenom'] = str(chef_jury_nom_prenom)
if( "cible" not in user.keys() ):
user['cible'] = ""
if( "cible" not in user.keys() ):
user['cible'] = ""
if ("ue_id" not in user.keys()):
user['ue_id'] = ""
user['ue_code'] = ""
elif ( user['ue_id']):
ue_id_data = MYSY_GV.dbname['unite_enseignement'].find_one({'_id':ObjectId(str(user['ue_id'])),
'valide':'1',
'locked':'0',
'partner_owner_recid':str(my_partner['recid'])})
if ("ue_id" not in user.keys()):
user['ue_id'] = ""
user['ue_code'] = ""
elif ( user['ue_id']):
ue_id_data = MYSY_GV.dbname['unite_enseignement'].find_one({'_id':ObjectId(str(user['ue_id'])),
'valide':'1',
'locked':'0',
'partner_owner_recid':str(my_partner['recid'])})
if( ue_id_data and "code" in ue_id_data.keys() ):
user['ue_code'] = ue_id_data['code']
if( ue_id_data and "code" in ue_id_data.keys() ):
user['ue_code'] = ue_id_data['code']
code_session = ""
if( "session_id" in user.keys() and user['session_id'] ):
session_id_data = MYSY_GV.dbname['session_formation'].find_one({'_id': ObjectId(str(user['session_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
code_session = ""
if( "session_id" in user.keys() and user['session_id'] ):
session_id_data = MYSY_GV.dbname['session_formation'].find_one({'_id': ObjectId(str(user['session_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if (session_id_data and "code_session" in session_id_data.keys()):
code_session= session_id_data['code_session']
if (session_id_data and "code_session" in session_id_data.keys()):
code_session= session_id_data['code_session']
user['code_session'] = code_session
user['code_session'] = code_session
class_groupe_code = ""
class_groupe_nom = ""
class_groupe_type_groupe = ""
class_groupe_code = ""
class_groupe_nom = ""
class_groupe_type_groupe = ""
if ("class_groupe_id" in user.keys() and user['class_groupe_id']):
class_groupe_id_data = MYSY_GV.dbname['groupe_inscription'].find_one(
{'_id': ObjectId(str(user['class_groupe_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if ("class_groupe_id" in user.keys() and user['class_groupe_id']):
class_groupe_id_data = MYSY_GV.dbname['groupe_inscription'].find_one(
{'_id': ObjectId(str(user['class_groupe_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if (class_groupe_id_data and "code" in class_groupe_id_data.keys()):
class_groupe_code = class_groupe_id_data['code']
if (class_groupe_id_data and "code" in class_groupe_id_data.keys()):
class_groupe_code = class_groupe_id_data['code']
if (class_groupe_id_data and "nom" in class_groupe_id_data.keys()):
class_groupe_nom = class_groupe_id_data['nom']
if (class_groupe_id_data and "nom" in class_groupe_id_data.keys()):
class_groupe_nom = class_groupe_id_data['nom']
if (class_groupe_id_data and "type_groupe_code" in class_groupe_id_data.keys()):
class_groupe_type_groupe = class_groupe_id_data['type_groupe_code']
if (class_groupe_id_data and "type_groupe_code" in class_groupe_id_data.keys()):
class_groupe_type_groupe = class_groupe_id_data['type_groupe_code']
else:
user['class_groupe_id'] = ""
else:
user['class_groupe_id'] = ""
user['class_groupe_code'] = class_groupe_code
user['class_groupe_nom'] = class_groupe_nom
user['class_groupe_type_groupe'] = class_groupe_type_groupe
user['class_groupe_code'] = class_groupe_code
user['class_groupe_nom'] = class_groupe_nom
user['class_groupe_type_groupe'] = class_groupe_type_groupe
RetObject.append(mycommon.JSONEncoder().encode(user))
RetObject.append(mycommon.JSONEncoder().encode(user))
return True, RetObject
@ -2253,92 +2265,104 @@ def Get_List_Conseil_Classe(diction):
val_tmp = 0
for retval in MYSY_GV.dbname['jury'].find(data_cle).sort([("_id", pymongo.DESCENDING), ]):
user = retval
user['id'] = str(val_tmp)
val_tmp = val_tmp + 1
# Recuperer le nombre de membre
nb_membre = MYSY_GV.dbname['jury_membre'].count_documents({'partner_owner_recid':str(my_partner['recid']),
'valide':'1',
'locked':'0',
'jury_id':str(retval['_id'])})
user['nb_membre'] = str(nb_membre)
# ne prendre que les jury avec une session valide
is_valide_session = ""
if( "session_id" in retval.keys() and retval['session_id']):
is_valide_session_count = MYSY_GV.dbname['session_formation'].count_documents({'_id':ObjectId(retval['session_id']),
'partner_owner_recid':str(my_partner['recid'])})
if( is_valide_session_count <= 0 ):
is_valide_session = '-1'
#Recuperation des nom et prenom du responsable (chef d'equipe)
chef_jury_nom_prenom = ""
if( "chef_jury_id" in retval.keys() and retval['chef_jury_id']):
chef_jury_id_data = MYSY_GV.dbname['ressource_humaine'].find_one({'partner_recid':str(my_partner['recid']),
'valide':'1',
'locked':'0',
'_id':ObjectId(str(retval['chef_jury_id']))})
if( is_valide_session != "-1"):
user = retval
user['id'] = str(val_tmp)
val_tmp = val_tmp + 1
if( chef_jury_id_data and 'nom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_id_data['nom']
if (chef_jury_id_data and 'prenom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_nom_prenom+ " "+chef_jury_id_data['prenom']
user['chef_jury_nom_prenom'] = str(chef_jury_nom_prenom)
if( "cible" not in user.keys() ):
user['cible'] = ""
if ("ue_id" not in user.keys()):
user['ue_id'] = ""
user['ue_code'] = ""
elif ( user['ue_id']):
ue_id_data = MYSY_GV.dbname['unite_enseignement'].find_one({'_id':ObjectId(str(user['ue_id'])),
'valide':'1',
'locked':'0',
'partner_owner_recid':str(my_partner['recid'])})
if( ue_id_data and "code" in ue_id_data.keys() ):
user['ue_code'] = ue_id_data['code']
code_session = ""
if( "session_id" in user.keys() and user['session_id'] ):
session_id_data = MYSY_GV.dbname['session_formation'].find_one({'_id': ObjectId(str(user['session_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if (session_id_data and "code_session" in session_id_data.keys()):
code_session= session_id_data['code_session']
user['code_session'] = code_session
class_groupe_code = ""
class_groupe_nom = ""
class_groupe_type_groupe = ""
if ("class_groupe_id" in user.keys() and user['class_groupe_id']):
class_groupe_id_data = MYSY_GV.dbname['groupe_inscription'].find_one(
{'_id': ObjectId(str(user['class_groupe_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if (class_groupe_id_data and "code" in class_groupe_id_data.keys()):
class_groupe_code = class_groupe_id_data['code']
if (class_groupe_id_data and "nom" in class_groupe_id_data.keys()):
class_groupe_nom = class_groupe_id_data['nom']
if (class_groupe_id_data and "type_groupe_code" in class_groupe_id_data.keys()):
class_groupe_type_groupe = class_groupe_id_data['type_groupe_code']
else:
user['class_groupe_id'] = ""
# Recuperer le nombre de membre
nb_membre = MYSY_GV.dbname['jury_membre'].count_documents({'partner_owner_recid':str(my_partner['recid']),
'valide':'1',
'locked':'0',
'jury_id':str(retval['_id'])})
user['nb_membre'] = str(nb_membre)
user['class_groupe_code'] = class_groupe_code
user['class_groupe_nom'] = class_groupe_nom
user['class_groupe_type_groupe'] = class_groupe_type_groupe
#Recuperation des nom et prenom du responsable (chef d'equipe)
chef_jury_nom_prenom = ""
if( "chef_jury_id" in retval.keys() and retval['chef_jury_id']):
chef_jury_id_data = MYSY_GV.dbname['ressource_humaine'].find_one({'partner_recid':str(my_partner['recid']),
'valide':'1',
'locked':'0',
'_id':ObjectId(str(retval['chef_jury_id']))})
if( chef_jury_id_data and 'nom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_id_data['nom']
if (chef_jury_id_data and 'prenom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_nom_prenom+ " "+chef_jury_id_data['prenom']
user['chef_jury_nom_prenom'] = str(chef_jury_nom_prenom)
if( "cible" not in user.keys() ):
user['cible'] = ""
if ("ue_id" not in user.keys()):
user['ue_id'] = ""
user['ue_code'] = ""
elif ( user['ue_id']):
ue_id_data = MYSY_GV.dbname['unite_enseignement'].find_one({'_id':ObjectId(str(user['ue_id'])),
'valide':'1',
'locked':'0',
'partner_owner_recid':str(my_partner['recid'])})
if( ue_id_data and "code" in ue_id_data.keys() ):
user['ue_code'] = ue_id_data['code']
code_session = ""
if( "session_id" in user.keys() and user['session_id'] ):
session_id_data = MYSY_GV.dbname['session_formation'].find_one({'_id': ObjectId(str(user['session_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if (session_id_data and "code_session" in session_id_data.keys()):
code_session= session_id_data['code_session']
user['code_session'] = code_session
class_groupe_code = ""
class_groupe_nom = ""
class_groupe_type_groupe = ""
if ("class_groupe_id" in user.keys() and user['class_groupe_id']):
class_groupe_id_data = MYSY_GV.dbname['groupe_inscription'].find_one(
{'_id': ObjectId(str(user['class_groupe_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if (class_groupe_id_data and "code" in class_groupe_id_data.keys()):
class_groupe_code = class_groupe_id_data['code']
if (class_groupe_id_data and "nom" in class_groupe_id_data.keys()):
class_groupe_nom = class_groupe_id_data['nom']
if (class_groupe_id_data and "type_groupe_code" in class_groupe_id_data.keys()):
class_groupe_type_groupe = class_groupe_id_data['type_groupe_code']
else:
user['class_groupe_id'] = ""
user['class_groupe_code'] = class_groupe_code
user['class_groupe_nom'] = class_groupe_nom
user['class_groupe_type_groupe'] = class_groupe_type_groupe
RetObject.append(mycommon.JSONEncoder().encode(user))
RetObject.append(mycommon.JSONEncoder().encode(user))
return True, RetObject
@ -2835,115 +2859,138 @@ def Get_List_jury_With_Filter(diction):
]
print(" ### local_new_myquery_find_team = ", local_new_myquery_find_team)
#print(" ### local_new_myquery_find_team = ", local_new_myquery_find_team)
###
for local_New_retVal in MYSY_GV.dbname['jury'].aggregate(local_new_myquery_find_team):
user = {}
user['id'] = str(val_tmp)
user['_id'] = str(local_New_retVal['_id'])
if( "class_id" in local_New_retVal.keys()):
user['class_id'] = local_New_retVal['class_id']
else:
user['class_id'] = ""
#print(" ##### local_New_retVal == ", local_New_retVal)
# ne prendre que les jury avec une session valide
is_valide_session = ""
if ("cible" not in diction.keys() or diction['cible'] != "admission"):
if ("session_id" in local_New_retVal.keys() and local_New_retVal['session_id']):
is_valide_session_count = MYSY_GV.dbname['session_formation'].count_documents(
{'_id': ObjectId(local_New_retVal['session_id']),
'partner_owner_recid': str(my_partner['recid'])})
code_session = ""
if (local_New_retVal['cible'] != "admission" and "session_id" in local_New_retVal.keys()):
user['session_id'] = local_New_retVal['session_id']
session_id_data = MYSY_GV.dbname['session_formation'].find_one(
{'_id': ObjectId(str(user['session_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if (is_valide_session_count <= 0):
is_valide_session = '-1'
elif( "cible" in diction.keys() and diction['cible'] == "admission"):
if ("session_id" in local_New_retVal.keys() and local_New_retVal['session_id']):
is_valide_session_count = MYSY_GV.dbname['admission_session'].count_documents(
{'_id': ObjectId(local_New_retVal['session_id']),
'partner_owner_recid': str(my_partner['recid'])})
if (session_id_data and "code_session" in session_id_data.keys()):
code_session = session_id_data['code_session']
if (is_valide_session_count <= 0):
is_valide_session = '-1'
elif (local_New_retVal['cible'] == "admission" and "session_id" in local_New_retVal.keys()):
user['session_id'] = local_New_retVal['session_id']
session_id_data = MYSY_GV.dbname['admission_session'].find_one(
{'_id': ObjectId(str(user['session_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if (is_valide_session != "-1"):
user = {}
user['id'] = str(val_tmp)
user['_id'] = str(local_New_retVal['_id'])
if (session_id_data and "code_session" in session_id_data.keys()):
code_session = session_id_data['code_session']
if( "class_id" in local_New_retVal.keys()):
user['class_id'] = local_New_retVal['class_id']
else:
user['class_id'] = ""
else:
user['session_id'] = ""
code_session = ""
if (local_New_retVal['cible'] != "admission" and "session_id" in local_New_retVal.keys()):
user['session_id'] = local_New_retVal['session_id']
session_id_data = MYSY_GV.dbname['session_formation'].find_one(
{'_id': ObjectId(str(user['session_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
user['code_session'] = code_session
if( "code" in local_New_retVal.keys()):
user['code'] = local_New_retVal['code']
else:
user['code'] = ""
if ("description" in local_New_retVal.keys()):
user['description'] = local_New_retVal['description']
else:
user['description'] = ""
if ("email_jury" in local_New_retVal.keys()):
user['email_jury'] = local_New_retVal['email_jury']
else:
user['email_jury'] = ""
if ("chef_jury_id" in local_New_retVal.keys()):
user['chef_jury_id'] = local_New_retVal['chef_jury_id']
else:
user['chef_jury_id'] = ""
if (session_id_data and "code_session" in session_id_data.keys()):
code_session = session_id_data['code_session']
if ("cible" in local_New_retVal.keys()):
user['cible'] = local_New_retVal['cible']
else:
user['cible'] = ""
elif (local_New_retVal['cible'] == "admission" and "session_id" in local_New_retVal.keys()):
user['session_id'] = local_New_retVal['session_id']
session_id_data = MYSY_GV.dbname['admission_session'].find_one(
{'_id': ObjectId(str(user['session_id'])),
'valide': '1',
'partner_owner_recid': str(
my_partner['recid'])})
if (session_id_data and "code_session" in session_id_data.keys()):
code_session = session_id_data['code_session']
else:
user['session_id'] = ""
user['code_session'] = code_session
if( "code" in local_New_retVal.keys()):
user['code'] = local_New_retVal['code']
else:
user['code'] = ""
if ("description" in local_New_retVal.keys()):
user['description'] = local_New_retVal['description']
else:
user['description'] = ""
if ("email_jury" in local_New_retVal.keys()):
user['email_jury'] = local_New_retVal['email_jury']
else:
user['email_jury'] = ""
if ("chef_jury_id" in local_New_retVal.keys()):
user['chef_jury_id'] = local_New_retVal['chef_jury_id']
else:
user['chef_jury_id'] = ""
if ("ue_id" in local_New_retVal.keys() and local_New_retVal['ue_id']):
user['ue_id'] = local_New_retVal['ue_id']
ue_id_data = MYSY_GV.dbname['unite_enseignement'].find_one({'_id': ObjectId(str(user['ue_id'])),
'valide': '1',
'locked': '0',
'partner_owner_recid': str(
my_partner['recid'])})
if ("cible" in local_New_retVal.keys()):
user['cible'] = local_New_retVal['cible']
else:
user['cible'] = ""
if (ue_id_data and "code" in ue_id_data.keys()):
user['ue_code'] = ue_id_data['code']
else:
user['ue_id'] = ""
if ("ue_id" in local_New_retVal.keys() and local_New_retVal['ue_id']):
user['ue_id'] = local_New_retVal['ue_id']
ue_id_data = MYSY_GV.dbname['unite_enseignement'].find_one({'_id': ObjectId(str(user['ue_id'])),
'valide': '1',
'locked': '0',
'partner_owner_recid': str(
my_partner['recid'])})
nb_membre = "0"
if( "jury_membre_collection" in local_New_retVal.keys() ):
nb_membre = len(local_New_retVal['jury_membre_collection'])
if (ue_id_data and "code" in ue_id_data.keys()):
user['ue_code'] = ue_id_data['code']
user['nb_membre'] = str(nb_membre)
else:
user['ue_id'] = ""
# Recuperation des nom et prenom du responsable (chef d'equipe)
chef_jury_nom_prenom = ""
if ("chef_jury_id" in local_New_retVal.keys() and local_New_retVal['chef_jury_id']):
chef_jury_id_data = MYSY_GV.dbname['ressource_humaine'].find_one(
{'partner_recid': str(my_partner['recid']),
'valide': '1',
'locked': '0',
'_id': ObjectId(str(local_New_retVal['chef_jury_id']))})
nb_membre = "0"
if( "jury_membre_collection" in local_New_retVal.keys() ):
nb_membre = len(local_New_retVal['jury_membre_collection'])
if (chef_jury_id_data and 'nom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_id_data['nom']
user['nb_membre'] = str(nb_membre)
if (chef_jury_id_data and 'prenom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_nom_prenom + " " + chef_jury_id_data['prenom']
# Recuperation des nom et prenom du responsable (chef d'equipe)
chef_jury_nom_prenom = ""
if ("chef_jury_id" in local_New_retVal.keys() and local_New_retVal['chef_jury_id']):
chef_jury_id_data = MYSY_GV.dbname['ressource_humaine'].find_one(
{'partner_recid': str(my_partner['recid']),
'valide': '1',
'locked': '0',
'_id': ObjectId(str(local_New_retVal['chef_jury_id']))})
user['chef_jury_nom_prenom'] = str(chef_jury_nom_prenom)
if (chef_jury_id_data and 'nom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_id_data['nom']
val_tmp = val_tmp + 1
RetObject.append(mycommon.JSONEncoder().encode(user))
if (chef_jury_id_data and 'prenom' in chef_jury_id_data.keys()):
chef_jury_nom_prenom = chef_jury_nom_prenom + " " + chef_jury_id_data['prenom']
user['chef_jury_nom_prenom'] = str(chef_jury_nom_prenom)
val_tmp = val_tmp + 1
RetObject.append(mycommon.JSONEncoder().encode(user))
return True, RetObject