[Erp5-report] r15067 - /erp5/trunk/products/ERP5/Document/TextDocument.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jun 29 13:50:14 CEST 2007
Author: ivan
Date: Fri Jun 29 13:50:13 2007
New Revision: 15067
URL: http://svn.erp5.org?rev=15067&view=rev
Log:
Do not fail if text_content is missing when editing TextDocument instances.
Modified:
erp5/trunk/products/ERP5/Document/TextDocument.py
Modified: erp5/trunk/products/ERP5/Document/TextDocument.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TextDocument.py?rev=15067&r1=15066&r2=15067&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TextDocument.py (original)
+++ erp5/trunk/products/ERP5/Document/TextDocument.py Fri Jun 29 13:50:13 2007
@@ -112,7 +112,7 @@
# HTML tags (will replace them accordingly) so this is the last possible
# step where we can check if any other scripts wouldn't try to set manually
# bad HTML content.
- if isHTMLSafe(kw['text_content']):
+ if isHTMLSafe(kw.get('text_content', '')):
Document._edit(self, **kw)
else:
raise ValueError, "HTML contains illegal tags."
More information about the Erp5-report
mailing list