preparer pour mysql-connector-python
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf8 -*-
|
||||
from pyramid_layout.layout import layout_config
|
||||
from .security import groupfinder
|
||||
from views.default import (
|
||||
from .views.default import (
|
||||
to_euro,
|
||||
to_percent,
|
||||
to_decimal,
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
<button class="btn btn-primary" type="submit" name="form.submitted">
|
||||
<span class="glyphicon glyphicon-ok"></span> Enregistrer</button>
|
||||
<button class="btn btn-warning" type="submit" name="form.deleted"
|
||||
tal:condition="actif.no_id <> 0">
|
||||
tal:condition="actif.no_id != 0">
|
||||
<span class="glyphicon glyphicon-remove"></span> Supprimer</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
<button class="btn btn-primary" type="submit" name="form.submitted">
|
||||
<span class="glyphicon glyphicon-ok"></span> Enregistrer</button>
|
||||
<button class="btn btn-warning" type="submit" name="form.deleted"
|
||||
tal:condition="actif.no_id <> 0">
|
||||
tal:condition="actif.no_id != 0">
|
||||
<span class="glyphicon glyphicon-remove"></span> Supprimer</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user