[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/utils.py If exported value is None, attribute value is empty string (fixes a crash on contentrules configuration export)
Thomas Desvenain
thomas.desvenain at gmail.com
Wed Mar 23 11:35:03 EDT 2011
Log message for revision 121097:
If exported value is None, attribute value is empty string (fixes a crash on contentrules configuration export)
Changed:
U Products.GenericSetup/trunk/Products/GenericSetup/utils.py
-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/utils.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/utils.py 2011-03-23 15:33:52 UTC (rev 121096)
+++ Products.GenericSetup/trunk/Products/GenericSetup/utils.py 2011-03-23 15:35:03 UTC (rev 121097)
@@ -354,7 +354,7 @@
if a_value is None:
a_value = ""
else:
- a_value = escape(a_value.encode('utf-8'), quote=True))
+ a_value = escape(a_value.encode('utf-8'), quote=True)
wrapper.queue(' %s="%s"' % (a_name, a_value))
More information about the checkins
mailing list