projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ac5d689
)
Bugfix : le format des documents est html picétou !
author
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 28 Nov 2013 10:11:54 +0000
(11:11 +0100)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 28 Nov 2013 10:11:54 +0000
(11:11 +0100)
skins/custom_content/document_edit_form.py
patch
|
blob
|
history
diff --git
a/skins/custom_content/document_edit_form.py
b/skins/custom_content/document_edit_form.py
index
82602ec
..
d652e57
100644
(file)
--- a/
skins/custom_content/document_edit_form.py
+++ b/
skins/custom_content/document_edit_form.py
@@
-11,13
+11,13
@@
if text and same_type(text, []) :
if change and \
context.validateTextFile(**form) and \
context.validateHTML(**form) and \
if change and \
context.validateTextFile(**form) and \
context.validateHTML(**form) and \
- context.document_edit_control(
**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 \
context.setRedirect(context, 'object/edit', **{'ajax':ajax}):
return
elif change_and_view and \
context.validateTextFile(**form) and \
context.validateHTML(**form) and \
- context.document_edit_control(
**form
) and \
+ context.document_edit_control(
text=form.get('text'), text_format='html'
) and \
context.setRedirect(context, 'object/view', **{'ajax':ajax}):
return
context.setRedirect(context, 'object/view', **{'ajax':ajax}):
return