19/06/23 - 20h21
parent
0153cf73b7
commit
84d84675ae
|
@ -1,10 +1,10 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="13/06/23 - 16h">
|
<list default="true" id="c6d0259a-16e1-410d-91a1-830590ee2a08" name="Changes" comment="13/06/23 - 21h21">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<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$/lms_chamilo/mysy_lms.py" beforeDir="false" afterPath="$PROJECT_DIR$/lms_chamilo/mysy_lms.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/code_promo_mgt.py" beforeDir="false" afterPath="$PROJECT_DIR$/code_promo_mgt.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/prj_common.py" beforeDir="false" afterPath="$PROJECT_DIR$/prj_common.py" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
@ -313,7 +313,14 @@
|
||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1686667154704</updated>
|
<updated>1686667154704</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="36" />
|
<task id="LOCAL-00036" summary="13/06/23 - 21h21">
|
||||||
|
<created>1686684145572</created>
|
||||||
|
<option name="number" value="00036" />
|
||||||
|
<option name="presentableId" value="LOCAL-00036" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1686684145572</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="37" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="Vcs.Log.Tabs.Properties">
|
<component name="Vcs.Log.Tabs.Properties">
|
||||||
|
@ -328,7 +335,6 @@
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value="20/04/23 - 20h" />
|
|
||||||
<MESSAGE value="22/04/23 - 19h" />
|
<MESSAGE value="22/04/23 - 19h" />
|
||||||
<MESSAGE value="23/04/23 - 19h" />
|
<MESSAGE value="23/04/23 - 19h" />
|
||||||
<MESSAGE value="24/04/23 - 21h" />
|
<MESSAGE value="24/04/23 - 21h" />
|
||||||
|
@ -353,6 +359,7 @@
|
||||||
<MESSAGE value="06/06/23 - 19h" />
|
<MESSAGE value="06/06/23 - 19h" />
|
||||||
<MESSAGE value="08/06/23 - 21h" />
|
<MESSAGE value="08/06/23 - 21h" />
|
||||||
<MESSAGE value="13/06/23 - 16h" />
|
<MESSAGE value="13/06/23 - 16h" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="13/06/23 - 16h" />
|
<MESSAGE value="13/06/23 - 21h21" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="13/06/23 - 21h21" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -2828,7 +2828,7 @@ Etape 3 :
|
||||||
Une fois la formation créer et/ou publier, mettre l'url (mysy search) dans la table 'course' de mysy lms.
|
Une fois la formation créer et/ou publier, mettre l'url (mysy search) dans la table 'course' de mysy lms.
|
||||||
Ceci permettra de mettre un bouton de visualisation dans mysy lms.
|
Ceci permettra de mettre un bouton de visualisation dans mysy lms.
|
||||||
|
|
||||||
Etape 4 : (pas fait encore)
|
Etape 4 :
|
||||||
Apres la creation de la formation, on crée la session associée. car dans le cadre du LMS, une formation = 1 session (moteur)
|
Apres la creation de la formation, on crée la session associée. car dans le cadre du LMS, une formation = 1 session (moteur)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -2908,7 +2908,7 @@ def Create_Class_From_Lms(diction):
|
||||||
/!\: Important :
|
/!\: Important :
|
||||||
Dans mysy lms, l'utilisateur crée un titre, puis une description. ex : "objectif": "detail de l'objectif" ou "méthode":"detail de la
|
Dans mysy lms, l'utilisateur crée un titre, puis une description. ex : "objectif": "detail de l'objectif" ou "méthode":"detail de la
|
||||||
de la méthode", etc.
|
de la méthode", etc.
|
||||||
Pour gérer les fautes de frappe dans l'identification des titre, on va utiliser le calcul de distance de Levenshtein
|
Pour gérer les fautes de frappe dans l'identification des titres, on va utiliser le calcul de distance de Levenshtein
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# La liste des champs necessaires à la creation d'une formation dans moteur de recherche
|
# La liste des champs necessaires à la creation d'une formation dans moteur de recherche
|
||||||
|
@ -2918,10 +2918,14 @@ def Create_Class_From_Lms(diction):
|
||||||
new_diction = {}
|
new_diction = {}
|
||||||
local_class_code = ""
|
local_class_code = ""
|
||||||
local_class_title = ""
|
local_class_title = ""
|
||||||
|
local_class_internal_url = ""
|
||||||
|
|
||||||
|
nb_courses_info = 0
|
||||||
|
|
||||||
for courses_info in cur:
|
for courses_info in cur:
|
||||||
pave_title_tab = str(courses_info[0]).split(" ")
|
pave_title_tab = str(courses_info[0]).split(" ")
|
||||||
for local_val in pave_title_tab:
|
for local_val in pave_title_tab:
|
||||||
|
nb_courses_info = nb_courses_info +1
|
||||||
|
|
||||||
if( lev('description',str(local_val).lower() ) <= 2 ):
|
if( lev('description',str(local_val).lower() ) <= 2 ):
|
||||||
new_diction['description'] = courses_info[1]
|
new_diction['description'] = courses_info[1]
|
||||||
|
@ -2929,9 +2933,6 @@ def Create_Class_From_Lms(diction):
|
||||||
if (lev('objectif', str(local_val).lower()) <= 2):
|
if (lev('objectif', str(local_val).lower()) <= 2):
|
||||||
new_diction['objectif'] = courses_info[1]
|
new_diction['objectif'] = courses_info[1]
|
||||||
|
|
||||||
if (lev('programme', str(local_val).lower()) <= 2):
|
|
||||||
new_diction['programme'] = courses_info[1]
|
|
||||||
|
|
||||||
if (lev('prerequis', str(local_val).lower()) <= 2):
|
if (lev('prerequis', str(local_val).lower()) <= 2):
|
||||||
new_diction['prerequis'] = courses_info[1]
|
new_diction['prerequis'] = courses_info[1]
|
||||||
|
|
||||||
|
@ -2953,6 +2954,12 @@ def Create_Class_From_Lms(diction):
|
||||||
local_class_title = courses_info[3]
|
local_class_title = courses_info[3]
|
||||||
local_class_internal_url = courses_info[4]
|
local_class_internal_url = courses_info[4]
|
||||||
|
|
||||||
|
if( nb_courses_info == 0 ):
|
||||||
|
mycommon.myprint(str(inspect.stack()[0][3]) + " - La formation n'a pas tous les champs necessaires pour etre publiée dans le moteur de recherche. "
|
||||||
|
"Vous devez saisir : description, objectif, programme, prerequis, pourqui")
|
||||||
|
return False, str(inspect.stack()[0][3]) + " - La formation n'a pas tous les champs necessaires pour etre publiée dans le moteur de recherche.\n " \
|
||||||
|
" Vous devez saisir : description, objectif, programme, prerequis, pourqui ",
|
||||||
|
|
||||||
if(local_class_code ):
|
if(local_class_code ):
|
||||||
new_diction['external_code'] = local_class_code
|
new_diction['external_code'] = local_class_code
|
||||||
|
|
||||||
|
@ -2968,6 +2975,7 @@ def Create_Class_From_Lms(diction):
|
||||||
new_diction['price'] = "0"
|
new_diction['price'] = "0"
|
||||||
new_diction['duration_unit'] = "user_rythme"
|
new_diction['duration_unit'] = "user_rythme"
|
||||||
new_diction['duration'] = "0"
|
new_diction['duration'] = "0"
|
||||||
|
|
||||||
if( lms_class_domaine ):
|
if( lms_class_domaine ):
|
||||||
new_diction['domaine'] = lms_class_domaine
|
new_diction['domaine'] = lms_class_domaine
|
||||||
|
|
||||||
|
|
|
@ -2024,6 +2024,7 @@ def CreateInternalUrl(sentence=None):
|
||||||
internal_url = ""
|
internal_url = ""
|
||||||
|
|
||||||
if( len(sentence) <= 0 ):
|
if( len(sentence) <= 0 ):
|
||||||
|
myprint(str(inspect.stack()[0][3]) + " - sentence est vide " )
|
||||||
return False, ""
|
return False, ""
|
||||||
|
|
||||||
my_internal_url = sentence
|
my_internal_url = sentence
|
||||||
|
@ -2050,7 +2051,7 @@ def CreateInternalUrl(sentence=None):
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
exc_type, exc_obj, exc_tb = sys.exc_info()
|
exc_type, exc_obj, exc_tb = sys.exc_info()
|
||||||
print(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno))
|
myprint(str(inspect.stack()[0][3]) + " -" + str(e) + " - ERRORRRR AT Line : " + str(exc_tb.tb_lineno))
|
||||||
return False, ""
|
return False, ""
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue