forked from ScoDoc/ScoDoc
Fix #362
This commit is contained in:
parent
1e7cc06399
commit
7bc5a5ffd1
@ -693,16 +693,18 @@ sco_publish(
|
|||||||
@scodoc7func
|
@scodoc7func
|
||||||
def doAddAnnotation(etudid, comment):
|
def doAddAnnotation(etudid, comment):
|
||||||
"ajoute annotation sur etudiant"
|
"ajoute annotation sur etudiant"
|
||||||
cnx = ndb.GetDBConnexion()
|
etud = Identite.query.get_or_404(etudid) # check existence
|
||||||
sco_etud.etud_annotations_create(
|
if comment:
|
||||||
cnx,
|
cnx = ndb.GetDBConnexion()
|
||||||
args={
|
sco_etud.etud_annotations_create(
|
||||||
"etudid": etudid,
|
cnx,
|
||||||
"comment": comment,
|
args={
|
||||||
"author": current_user.user_name,
|
"etudid": etudid,
|
||||||
},
|
"comment": comment,
|
||||||
)
|
"author": current_user.user_name,
|
||||||
logdb(cnx, method="addAnnotation", etudid=etudid)
|
},
|
||||||
|
)
|
||||||
|
logdb(cnx, method="addAnnotation", etudid=etudid)
|
||||||
return flask.redirect(
|
return flask.redirect(
|
||||||
url_for("scolar.ficheEtud", scodoc_dept=g.scodoc_dept, etudid=etudid)
|
url_for("scolar.ficheEtud", scodoc_dept=g.scodoc_dept, etudid=etudid)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user