Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5diff
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
erp5diff
Commits
b57f4836
Commit
b57f4836
authored
Oct 28, 2009
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attributes are be ordered to have a expected result (unit test concerns)
parent
18ec8799
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
README
README
+4
-4
No files found.
README
View file @
b57f4836
...
...
@@ -394,9 +394,9 @@ ERP5Diff Usage and its output example
>>> erp5diff.compare(old_xml, new_xml)
>>> erp5diff.output()
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:update select="/object[@id='313730']/title/attribute::attribute_a">nnn</xupdate:update>
<xupdate:update select="/object[@id='313730']/title/attribute::attribute_b">nnn</xupdate:update>
<xupdate:update select="/object[@id='313730']/title/attribute::attribute_c">nnn</xupdate:update>
<xupdate:update select="/object[@id='313730']/title/attribute::attribute_a">nnn</xupdate:update>
</xupdate:modifications>
14. Remove one attribute
...
...
@@ -464,9 +464,9 @@ ERP5Diff Usage and its output example
>>> erp5diff.compare(old_xml, new_xml)
>>> erp5diff.output()
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:remove select="/object[@id='313730']/first_name/attribute::attribute_a"/>
<xupdate:remove select="/object[@id='313730']/first_name/attribute::attribute_b"/>
<xupdate:remove select="/object[@id='313730']/first_name/attribute::attribute_c"/>
<xupdate:remove select="/object[@id='313730']/first_name/attribute::attribute_a"/>
</xupdate:modifications>
17. Append one attribute
...
...
@@ -514,8 +514,8 @@ ERP5Diff Usage and its output example
>>> erp5diff.output()
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:append select="/object[@id='313730']/last_name">
<xupdate:attribute name="attribute_b">bbb</xupdate:attribute>
<xupdate:attribute name="attribute_a">aaa</xupdate:attribute>
<xupdate:attribute name="attribute_b">bbb</xupdate:attribute>
</xupdate:append>
</xupdate:modifications>
...
...
@@ -539,9 +539,9 @@ ERP5Diff Usage and its output example
>>> erp5diff.output()
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:append select="/object[@id='313730']/last_name">
<xupdate:attribute name="attribute_a">aaa</xupdate:attribute>
<xupdate:attribute name="attribute_b">bbb</xupdate:attribute>
<xupdate:attribute name="attribute_c">ccc</xupdate:attribute>
<xupdate:attribute name="attribute_a">aaa</xupdate:attribute>
</xupdate:append>
</xupdate:modifications>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment