enhanced update doc ending
This commit is contained in:
@@ -178,6 +178,9 @@ def doc_edit(request):
|
|||||||
|
|
||||||
if len(intitule) > 0 and len(texte) > 0:
|
if len(intitule) > 0 and len(texte) > 0:
|
||||||
update_doc(request, doc_id, intitule, texte, theme)
|
update_doc(request, doc_id, intitule, texte, theme)
|
||||||
|
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'))
|
return HTTPFound(location=request.route_url('doc_list'))
|
||||||
else:
|
else:
|
||||||
message = "Veuillez saisir un intitule et un texte."
|
message = "Veuillez saisir un intitule et un texte."
|
||||||
|
|||||||
Reference in New Issue
Block a user