[Erp5-report] r42585 nicolas - in /erp5/trunk/utils/xupdate_processor: ./ src/xupdate_proce...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jan 21 15:12:25 CET 2011
Author: nicolas
Date: Fri Jan 21 15:12:25 2011
New Revision: 42585
URL: http://svn.erp5.org?rev=42585&view=rev
Log:
Fix sub element might have been append in wrong order
Modified:
erp5/trunk/utils/xupdate_processor/CHANGES.txt
erp5/trunk/utils/xupdate_processor/setup.py
erp5/trunk/utils/xupdate_processor/src/xupdate_processor/content_handler.py
erp5/trunk/utils/xupdate_processor/src/xupdate_processor/tests/xupdate_processor_test_suite.py
Modified: erp5/trunk/utils/xupdate_processor/CHANGES.txt
URL: http://svn.erp5.org/erp5/trunk/utils/xupdate_processor/CHANGES.txt?rev=42585&r1=42584&r2=42585&view=diff
==============================================================================
--- erp5/trunk/utils/xupdate_processor/CHANGES.txt [utf8] (original)
+++ erp5/trunk/utils/xupdate_processor/CHANGES.txt [utf8] Fri Jan 21 15:12:25 2011
@@ -1,9 +1,15 @@
History
=======
-0.4 (unreleased)
+0.5 (unreleased)
----------------
+
+0.4 (2010-01-21)
+----------------
+ - [Fix] sub element might have been append in wrong order
+ [nicolas Delaby]
+
0.3 2010-01-19
--------------
- Update setup.py
Modified: erp5/trunk/utils/xupdate_processor/setup.py
URL: http://svn.erp5.org/erp5/trunk/utils/xupdate_processor/setup.py?rev=42585&r1=42584&r2=42585&view=diff
==============================================================================
--- erp5/trunk/utils/xupdate_processor/setup.py [utf8] (original)
+++ erp5/trunk/utils/xupdate_processor/setup.py [utf8] Fri Jan 21 15:12:25 2011
@@ -3,7 +3,7 @@
from setuptools import setup, find_packages
-version = '0.3'
+version = '0.4'
def read(name):
return open(name).read()
Modified: erp5/trunk/utils/xupdate_processor/src/xupdate_processor/content_handler.py
URL: http://svn.erp5.org/erp5/trunk/utils/xupdate_processor/src/xupdate_processor/content_handler.py?rev=42585&r1=42584&r2=42585&view=diff
==============================================================================
--- erp5/trunk/utils/xupdate_processor/src/xupdate_processor/content_handler.py [utf8] (original)
+++ erp5/trunk/utils/xupdate_processor/src/xupdate_processor/content_handler.py [utf8] Fri Jan 21 15:12:25 2011
@@ -279,6 +279,7 @@ class XUpdateHandler(ContentHandler):
node_stack_position = self._current_position_to_append_stack.pop()
node_to_append_list = [self._node_stack.pop() for node in self._node_stack[node_stack_position:]]
#Stay orphans do not remove from stack
+ node_to_append_list.reverse()
node = self._node_stack[-1]
node.extend(node_to_append_list)
if len(node):
Modified: erp5/trunk/utils/xupdate_processor/src/xupdate_processor/tests/xupdate_processor_test_suite.py
URL: http://svn.erp5.org/erp5/trunk/utils/xupdate_processor/src/xupdate_processor/tests/xupdate_processor_test_suite.py?rev=42585&r1=42584&r2=42585&view=diff
==============================================================================
--- erp5/trunk/utils/xupdate_processor/src/xupdate_processor/tests/xupdate_processor_test_suite.py [utf8] (original)
+++ erp5/trunk/utils/xupdate_processor/src/xupdate_processor/tests/xupdate_processor_test_suite.py [utf8] Fri Jan 21 15:12:25 2011
@@ -475,6 +475,17 @@ class TestXUpdateProcessor(unittest.Test
<error_message type="string"/>
<state type="string">current</state>
</xupdate:element>
+ <a>
+ <a>
+ <a/>
+ <b/>
+ <c/>
+ </a>
+ <b/>
+ <c/>
+ </a>
+ <b/>
+ <c/>
</xupdate:insert-after>
<xupdate:insert-after select="/erp5/object1">
<action type="string">edit</action>
@@ -498,6 +509,17 @@ class TestXUpdateProcessor(unittest.Test
<error_message type="string"/>
<state type="string">current</state>
</workflow_action>
+ <a>
+ <a>
+ <a/>
+ <b/>
+ <c/>
+ </a>
+ <b/>
+ <c/>
+ </a>
+ <b/>
+ <c/>
<object1/>
<action type="string">edit</action>
<comment type="None"/>
More information about the Erp5-report
mailing list