preparer pour mysql-connector-python

This commit is contained in:
2018-11-17 10:03:58 +01:00
parent 9c5336b654
commit c43429165a
6 changed files with 8 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ def home(request):
# totaliser les pourcentages
total += item.pc_cible
if total <> 100:
if total != 100:
message = u'Attention, le total de votre répartition cible est incorrect : %s.' % total
# lire les actifs
@@ -195,7 +195,7 @@ def doc_edit(request):
if len(intitule) > 0 and len(texte) > 0:
update_doc(request, doc_id, intitule, texte, theme)
if doc_id <> '0':
if doc_id != '0':
return HTTPFound(location=request.route_url('doc_view', doc_id=doc_id))
else:
return HTTPFound(location=request.route_url('doc_list'))
@@ -203,7 +203,7 @@ def doc_edit(request):
message = "Veuillez saisir un intitule et un texte."
if 'form.deleted' in request.params:
if doc_id <> '0':
if doc_id != '0':
delete_doc(request, doc_id)
request.session.flash(u"<%s> est supprimée avec succès." % intitule, 'success')
return HTTPFound(location=request.route_url('doc_list'))