[Erp5-report] r30131 - /erp5/trunk/products/ERP5Type/XMLExportImport.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Oct 29 17:59:54 CET 2009
Author: nicolas
Date: Thu Oct 29 17:59:52 2009
New Revision: 30131
URL: http://svn.erp5.org?rev=30131&view=rev
Log:
Do not set up "num" attribute on "block_data" nodes, as is value can generate accidental diff
Modified:
erp5/trunk/products/ERP5Type/XMLExportImport.py
Modified: erp5/trunk/products/ERP5Type/XMLExportImport.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/XMLExportImport.py?rev=30131&r1=30130&r2=30131&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/XMLExportImport.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/XMLExportImport.py [utf8] Thu Oct 29 17:59:52 2009
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2002-2003 Nexedi SARL and Contributors. All Rights Reserved.
@@ -100,13 +101,11 @@
# <data><block>ZERD</block><block>OEJJM</block></data>
size_block = 60
if isinstance(value, str):
- iterator_block = 0
for index in xrange(0, len(value), size_block):
content = value[index:index + size_block]
data_encoded = standard_b64encode(content)
- block = SubElement(sub_object, 'block_data', num=str(iterator_block))
+ block = SubElement(sub_object, 'block_data')
block.text = data_encoded
- iterator_block += 1
else:
raise "XMLExportImport failed, the data is undefined"
elif prop_type in ('lines', 'tokens',):
More information about the Erp5-report
mailing list