Commit 6c949cad authored by Nicolas Delaby's avatar Nicolas Delaby

Bug fix release (add missing egg's namespace declaration)

improve README
parent 978600c1
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
......
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>
......@@ -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/",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment