From: Benoît Pin <pin@cri.ensmp.fr>
Date: Thu, 9 Oct 2014 11:58:57 +0000 (+0200)
Subject: Retrait du nettoyage automatique de html : encore une lubie de geek…
X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/commitdiff_plain/e932032bdbb367869cd8c7346a98f6b7660c41dd

Retrait du nettoyage automatique de html : encore une lubie de geek…
---

diff --git a/skins/custom_content/document_edit_form.py b/skins/custom_content/document_edit_form.py
index 8dffe34..c23a9a3 100644
--- a/skins/custom_content/document_edit_form.py
+++ b/skins/custom_content/document_edit_form.py
@@ -11,15 +11,7 @@ if text and same_type(text, []) :
     # and an other from <noscript> tag
     form.update({'text' : text[1]}) 
 
-if change and \
-        context.validateTextFile(**form) and \
-        context.validateHTML(**form) and \
-        context.document_edit_control(text=form.get('text'), text_format='html') and \
-        context.setRedirect(context, 'object/edit', **{'ajax':ajax}):
-    return
-elif change_and_view and \
-        context.validateTextFile(**form) and \
-        context.validateHTML(**form) and \
+if change_and_view and \
         context.document_edit_control(text=form.get('text'), text_format='html') :
     attachments.removeUnusedAttachments(context.EditableBody())
     return context.setRedirect(context, 'object/view', **{'ajax':ajax})