From 1476df8ecf0d6f352b3b2ff01c3cc0a4b3cb84b1 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 16 Jan 2021 11:49:02 +0100 Subject: [PATCH] Fix comments on published methods --- ZAbsences.py | 1 + ZNotes.py | 2 ++ ZScoDoc.py | 1 + sco_edit_ue.py | 2 +- sco_formsemestre.py | 2 ++ 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ZAbsences.py b/ZAbsences.py index 33e09b6b7..e10afce5e 100644 --- a/ZAbsences.py +++ b/ZAbsences.py @@ -380,6 +380,7 @@ class ZAbsences( security.declareProtected(ScoView, "CountAbsJust") def CountAbsJust(self, etudid, debut, fin, matin=None, moduleimpl_id=None): + "Count just. abs" if matin != None: matin = _toboolean(matin) ismatin = " AND A.MATIN = %(matin)s " diff --git a/ZNotes.py b/ZNotes.py index d02d384e3..7530d7cd7 100644 --- a/ZNotes.py +++ b/ZNotes.py @@ -1068,6 +1068,8 @@ class ZNotes(ObjectManager, PropertyManager, RoleManager, Item, Persistent, Impl ) return formsemestre_id + security.declareProtected(ScoView, "formsemestre_list") + def formsemestre_list( self, format=None, diff --git a/ZScoDoc.py b/ZScoDoc.py index 76827bd8b..08aaab66e 100644 --- a/ZScoDoc.py +++ b/ZScoDoc.py @@ -592,6 +592,7 @@ E. Viennet (Université Paris 13).

security.declareProtected("View", "standard_html_footer") def standard_html_footer(self, REQUEST=None): + """Le pied de page HTML de la page d'accueil.""" return """

Problèmes et suggestions sur le logiciel: %s

diff --git a/sco_edit_ue.py b/sco_edit_ue.py index 5e9f16b19..b29c613cb 100644 --- a/sco_edit_ue.py +++ b/sco_edit_ue.py @@ -779,7 +779,7 @@ def edit_ue_set_code_apogee(context, id=None, value=None, REQUEST=None): # ---- Table recap formation def formation_table_recap(context, formation_id, format="html", REQUEST=None): - """""" + """Table recapitulant formation.""" F = context.formation_list(args={"formation_id": formation_id}) if not F: raise ScoValueError("invalid formation_id") diff --git a/sco_formsemestre.py b/sco_formsemestre.py index e4c574f87..55c88ecec 100644 --- a/sco_formsemestre.py +++ b/sco_formsemestre.py @@ -213,6 +213,8 @@ def etapes_apo_str(etapes): def do_formsemestre_edit(context, sem, cnx=None, **kw): + """Apply modifications to formsemestre. + Update etapes and resps. Invalidate cache.""" if not cnx: cnx = context.GetDBConnexion()