simplifier le global_layout

This commit is contained in:
2020-08-18 17:17:56 +02:00
parent 44986cd5f4
commit a46587d637
27 changed files with 75 additions and 75 deletions

View File

@@ -12,7 +12,6 @@ from pyramid.httpexceptions import (
)
from pyramid_mailer import get_mailer
from pyramid_mailer.message import Message, Attachment
from docutils.core import publish_parts
from sqlalchemy.exc import DBAPIError
from ..security import groupfinder
@@ -125,7 +124,6 @@ def doc_edit(request):
new_values[param] = request.params[param]
if new_values:
import pdb;pdb.set_trace()
update_doc(request, doc_id, new_values)
if doc_id != '0':
return HTTPFound(location=request.route_url('doc_view', doc_id=doc_id))
@@ -192,10 +190,7 @@ def doc_view(request):
# insèrer le path de static/img
texte = doc.texte.replace('static/img/', "%s/static/img/" % request.application_url)
# convertir reST en HTML
# texte = publish_parts(texte, writer_name='html')['html_body']
# convertir mardown en HTML
from markdown2 import Markdown
markdowner = Markdown()
@@ -229,3 +224,4 @@ monaa.caotek.fr
mailer.send_immediately(message)