simplifier le global_layout
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -128,7 +128,6 @@ def redefinir_mdp(request):
|
||||
@forbidden_view_config(renderer='../templates/members/login.pt')
|
||||
def login(request):
|
||||
|
||||
current_route_path = request.current_route_path()
|
||||
login = ''
|
||||
login_url = request.route_url('login')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user