bug creation doc
This commit is contained in:
@@ -123,13 +123,14 @@ def doc_edit(request):
|
||||
for param, db_value in doc.items():
|
||||
if param in request.params and request.params[param] != db_value:
|
||||
new_values[param] = request.params[param]
|
||||
|
||||
if new_values:
|
||||
update_doc(request, doc_id, intitule, texte, theme)
|
||||
|
||||
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))
|
||||
else:
|
||||
return HTTPFound(location=request.route_url('archives',theme=theme))
|
||||
return HTTPFound(location=request.route_url('archives',theme=request.params['theme']))
|
||||
|
||||
if 'form.deleted' in request.params:
|
||||
if doc_id != '0':
|
||||
|
||||
Reference in New Issue
Block a user