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
6c949cad
Commit
6c949cad
authored
Jan 25, 2011
by
Nicolas Delaby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix release (add missing egg's namespace declaration)
improve README
parent
978600c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
12 deletions
+79
-12
CHANGES.txt
CHANGES.txt
+11
-6
README
README
+59
-6
setup.py
setup.py
+9
-0
No files found.
CHANGES.txt
View file @
6c949cad
0.8.1.3 (unreleased)
------------------
0.8.1.4 (unreleased)
--------------------
0.8.1.3 (2011/01/25)
--------------------
* add long_description, improve README
* add missing namespace declaration of egg
0.8.1.2 (2011/01/25)
------------------
------------------
--
* [fix] installation of egg
0.8.1.1 (2011/01/25)
------------------
------------------
--
* [Fix] position starts to 1
[Nicolas Delaby]
version 0.8.1 Nicolas Delaby
==========================
==========================
==
Bug Fix
--------
* Some nodes stay orphans if they are replaced by another one and followed
by a modification (test 30)
by a modification (test 30)
* Exclude comments or processing instruction as sibling node
version 0.8 Nicolas Delaby
...
...
README
View file @
6c949cad
This is a XUpdate Generator for ERP5.
Introduction
============
This is a XUpdate Generator to compare any XML document.
See <http://xmldb-org.sourceforge.net/xupdate/> for information on
XUpdate.
See <http://erp5.org/> for information on ERP5.
Installation
============
python setup install
Test
====
python setup test
Usage
=====
Once you have installed erp5diff, you can use "erp5diff" in a shell::
erp5diff old.xml new.xml
Or in a python console::
from ERP5Diff import ERP5Diff
erp5diff = ERP5Diff()
old_xml = """
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
</ul>
"""
new_xml = """
<ul>
<li>5</li>
<li>6</li>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>7</li>
<li>8</li>
<li>9</li>
</ul>
"""
erp5diff.compare(old_xml, new_xml)
erp5diff.output()
<xupdate:modifications xmlns:xupdate="http://www.xmldb.org/xupdate" version="1.0">
<xupdate:remove select="/ul/li[5]"/>
<xupdate:remove select="/ul/li[6]"/>
<xupdate:append child="first()">
<xupdate:element name="li">5</xupdate:element>
<xupdate:element name="li">6</xupdate:element>
</xupdate:append>
</xupdate:modifications>
For the installation, do "python setup.py install".
Once you have installed erp5diff, you can use "erp5diff" in a shell:
$ erp5diff old.xml new.xml
See the manpage erp5diff(1) or "erp5diff --help" for more information.
- 2003-12-04, Yoshinori OKUJI <yo@nexedi.com>
- 2009-09-15, Tatuya Kamada <tatuya@nexedi.com>
- 2009-2011, Nicolas Delaby <nicolas@nexedi.com>
setup.py
View file @
6c949cad
...
...
@@ -9,10 +9,19 @@ api_version = re.search(r'\s*__version__\s*=\s*(\S+)',
revision = 3
version = '
%
s
.
%
s
' % (api_version.replace("'", ''), revision)
def read(name):
return open(name).read()
long_description=(
read('README')
+ '
\
n
' +
read('CHANGES.txt')
)
setup(name="
erp5diff
",
version=version,
description="
XUpdate
Generator
for
ERP5
",
long_description=long_description,
author="
Yoshinori
OKUJI
",
author_email="
yo
@
nexedi
.
com
",
url="
http
:
//
www
.
erp5
.
org
/
",
...
...
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