--- openerp-server-5.0.6.orig/debian/rules +++ openerp-server-5.0.6/debian/rules @@ -0,0 +1,29 @@ +#!/usr/bin/make -f + +%: + dh ${@} --with quilt + +override_dh_auto_clean: + dh_auto_clean + + -find $(CURDIR) -type f -name "*.pyc" | xargs rm -f + +override_dh_auto_install: + python setup.py install --no-compile --prefix=$(CURDIR)/debian/openerp-server/usr + + # Adjusting program location + sed -i -e 's|cd .*python.*/site-packages|cd /usr/lib|' debian/openerp-server/usr/bin/openerp-server + mv debian/openerp-server/usr/lib/python*/site-packages/openerp-server debian/openerp-server/usr/lib + rm -rf debian/openerp-server/usr/lib/python* + + # Fixing permissions + find debian/openerp-server/usr/lib/openerp-server/addons -type f -print0 | xargs -0 chmod 0644 + + # Removing double files + rm -rf debian/openerp-server/usr/share/doc/openerp-server-* + +override_dh_installchangelogs: + dh_installchangelogs doc/Changelog + +override_dh_installinit: + dh_installinit --update-rcd-params='defaults 21' --- openerp-server-5.0.6.orig/debian/openerp-server.docs +++ openerp-server-5.0.6/debian/openerp-server.docs @@ -0,0 +1,2 @@ +doc/migrate +doc/tests --- openerp-server-5.0.6.orig/debian/README.source +++ openerp-server-5.0.6/debian/README.source @@ -0,0 +1,37 @@ +Package Repositories +-------------------- + +Backports for the current stable debian distribution as well as snapshots of +unreleased versions may be available in repositories listed on the maintainers +homepage. The current URL of the maintainer homepage can be seen in +debian/copyright. + + +Source Access +------------- + +You can obtain the sources of this package with: + + $ apt-get source ${PACKAGE} + +whereas '${PACKAGE}' has to be replaced with the actual name of the package. + +This package is maintained with the Git version control system. The current git +source tree can be obtained with: + + $ git clone ${GIT_URI} + +whereas '${GIT_URI}' has to be replaced with the actual URI for the Git +repository. The current Git URI can be seen in debian/control in the extracted +package sources. + +More information about Git can be found in the git-core package. + +This package may use the Quilt patch system to manage all modifications to the +upstream source. Changes, if any, are stored in the source package as diffs in +debian/diff and are applied during the build. Current modifications can be +applied to the source tree with: + + $ quilt push -a + +More information about Quilt can be found in the quilt package. --- openerp-server-5.0.6.orig/debian/compat +++ openerp-server-5.0.6/debian/compat @@ -0,0 +1 @@ +7 --- openerp-server-5.0.6.orig/debian/openerp-server.postinst +++ openerp-server-5.0.6/debian/openerp-server.postinst @@ -0,0 +1,62 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +CONFFILE="/etc/openerp-server.conf" +LOGFILE="/var/log/openerp-server.log" + +case "${1}" in + configure) + db_version 2.0 + + db_get openerp-server/username + _USERNAME="${RET:-openerp}" + + db_stop + + if ! getent passwd | grep -q "^${_USERNAME}" + then + adduser --system --no-create-home --quiet --gecos 'Open ERP server' --group ${_USERNAME} + else + echo "Open ERP user (${_USERNAME}) already exists, doing nothing." + fi + + sed -i -e "s|^process_user.*$|process_user = ${_USERNAME}|" ${CONFFILE} + + # Creating log file + touch ${LOGFILE} + chown ${_USERNAME}:adm ${LOGFILE} + chmod 0640 ${LOGFILE} + + # Creating local storage directory + mkdir -p /var/lib/openerp-server/filestore + + # Setting ownership and permissions + chmod 0640 ${CONFFILE} + chown ${_USERNAME}:${_USERNAME} ${CONFFILE} + chown ${_USERNAME}:${_USERNAME} /var/lib/openerp-server -R + + echo + echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" + echo "* Open ERP uses a PostgreSQL database to store its data. With the first *" + echo "* generation of packages, you have to setup this database manually. *" + echo "* Please read /usr/share/doc/openerp-server/README.Debian how to do it. *" + echo "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *" + echo + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`{$1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- openerp-server-5.0.6.orig/debian/control +++ openerp-server-5.0.6/debian/control @@ -0,0 +1,34 @@ +Source: openerp-server +Section: net +Priority: optional +Maintainer: Debian Open Object Maintainers +Uploaders: Daniel Baumann +Build-Depends: debhelper (>= 7.0.50~), python-dev, quilt (>= 0.46-7) +Build-Depends-Indep: python-libxslt1, python-lxml, python-psycopg2 +Standards-Version: 3.8.3 +Homepage: http://www.openerp.com/ +Vcs-Browser: http://git.debian-maintainers.org/?p=open-object/openerp-server.git +Vcs-Git: git://git.debian-maintainers.org/git/open-object/openerp-server.git + +Package: openerp-server +Section: net +Architecture: all +Depends: + ${misc:Depends}, adduser, python, python-libxslt1, python-lxml, + python-psycopg2, python-pydot, python-pychart, python-reportlab, python-tz +Conflicts: tinyerp-server +Replaces: tinyerp-server +Recommends: + graphviz, ghostscript, postgresql, postgresql-client, python-imaging, + python-matplotlib, python-openssl, python-pyparsing +Suggests: openerp-client +Description: Enterprise Resource Management (server) + Open ERP, previously known as TinyERP, is a complete ERP and CRM. The main + features are accounting (analytic and financial), stock management, sales and + purchases management, tasks automation, marketing campaigns, help desk, POS, + etc. Technical features include a distributed server, flexible workflows, an + object database, a dynamic GUI, customizable reports, and NET-RPC and XML-RPC + interfaces. + . + This package contains the Open ERP server, install openerp-client package for + the client. --- openerp-server-5.0.6.orig/debian/openerp-server.init +++ openerp-server-5.0.6/debian/openerp-server.init @@ -0,0 +1,68 @@ +#!/bin/sh + +### BEGIN INIT INFO +# Provides: openerp-server +# Required-Start: $syslog +# Required-Stop: $syslog +# Should-Start: $network +# Should-Stop: $network +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Enterprise Resource Management software +# Description: Open ERP is a complete ERP and CRM software. +### END INIT INFO + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/openerp-server +NAME=openerp-server +DESC=openerp-server + +USER=openerp + +test -x ${DAEMON} || exit 0 + +set -e + +case "${1}" in + start) + echo -n "Starting ${DESC}: " + + start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \ + --chuid ${USER} --background --make-pidfile \ + --exec ${DAEMON} -- --config=/etc/openerp-server.conf + + echo "${NAME}." + ;; + + stop) + echo -n "Stopping ${DESC}: " + + start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid \ + --oknodo + + echo "${NAME}." + ;; + + restart|force-reload) + echo -n "Restarting ${DESC}: " + + start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid \ + --oknodo + + sleep 1 + + start-stop-daemon --start --quiet --pidfile /var/run/${NAME}.pid \ + --chuid ${USER} --background --make-pidfile \ + --exec ${DAEMON} -- --config=/etc/openerp-server.conf + + echo "${NAME}." + ;; + + *) + N=/etc/init.d/${NAME} + echo "Usage: ${NAME} {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- openerp-server-5.0.6.orig/debian/openerp-server.preseed +++ openerp-server-5.0.6/debian/openerp-server.preseed @@ -0,0 +1,5 @@ +################################################################################ +## openerp-server + +#openerp-server openerp-server/username string openerp +################################################################################ --- openerp-server-5.0.6.orig/debian/changelog +++ openerp-server-5.0.6/debian/changelog @@ -0,0 +1,402 @@ +openerp-server (5.0.6-2) unstable; urgency=low + + * Minimizing rules file. + + -- Daniel Baumann Sun, 18 Oct 2009 21:19:57 +0200 + +openerp-server (5.0.6-1) unstable; urgency=low + + * Merging upstream version 5.0.6. + * Rediffing python-lxml.patch. + + -- Daniel Baumann Sat, 17 Oct 2009 08:32:56 +0200 + +openerp-server (5.0.5-1) unstable; urgency=low + + * Merging upstream version 5.0.5. + + -- Daniel Baumann Mon, 21 Sep 2009 20:38:00 +0200 + +openerp-server (5.0.4-1) unstable; urgency=medium + + * Merging upstream version 5.0.4: + - fixes a security problem. + * No longer calling debconf-updatepo in clean target of rules. + + -- Daniel Baumann Mon, 21 Sep 2009 00:01:13 +0200 + +openerp-server (5.0.3-0-2) unstable; urgency=low + + * Adding README.source. + * Moving maintainer homepage from control to copyright. + * Updating README.source. + * Adding patch from upstream to use python-lxml instead of python-xml, + thanks to Alan Bell (Closes: + #543947). + + -- Daniel Baumann Wed, 16 Sep 2009 21:18:30 +0200 + +openerp-server (5.0.3-0-1) unstable; urgency=low + + * Merging upstream version 5.0.3-0. + * Removing xmlrpc.patch, went upstream. + * Using dedicated storage directory in /var/lib/openerp-server, that + way the addons directory can stay read-only for the unprivileged + user. + * Commenting out db_name in config (Closes: #542391). + * Commenting out port in config (Closes: #542406). + * Renaming logfile to openerp-server.log for consistency. + * Commenting out pidfile in config (Closes: #542427). + * Removing debconf handling in postrm, not possible to do that. + * Removing local storage directory on purge. + + -- Daniel Baumann Mon, 24 Aug 2009 20:16:55 +0200 + +openerp-server (5.0.2-0-3) unstable; urgency=low + + * Wrapping and sorting depends. + * Correcting spelling of Open ERP. + * Updating maintainer field. + * Updating vcs fields. + * Updating to standards version 3.8.3. + * Dropping old depends on python-xml (Closes: #543127). + * Adding maintainer homepage field to control. + * Marking maintainer homepage field to be also included in binary + packages and changelog. + + -- Daniel Baumann Mon, 24 Aug 2009 18:23:54 +0200 + +openerp-server (5.0.2-0-2) unstable; urgency=high + + * Adding patch from Panos Christeas to forbid RPC + calls without credentials. All versions of openerp-server affected. + + -- Daniel Baumann Thu, 13 Aug 2009 14:45:17 +0200 + +openerp-server (5.0.2-0-1) unstable; urgency=low + + * Updating standards to 3.8.1. + * Rediffing autobuild.patch (Closes: #538625). + * Upgrading package to standards version 3.8.2. + * Managing setup of unprivileged user account with debconf. + * Using more common directory name to store local debian additions. + * Updating README.Debian to reflect that the database has to be + initialized through the client (Closes: #518675). + * Removing package leftovers in postrm script. + * Merging upstream version 5.0.2-0. + + -- Daniel Baumann Thu, 13 Aug 2009 11:24:59 +0200 + +openerp-server (5.0.1-0-1) unstable; urgency=low + + * Merging upstream version 5.0.1-0. + * Correcting path of openerp-server in README.Debian (Closes: + #520890). + * Correcting user handling in init script and config file (Closes: + #513263, #516348). + * Setting port to 8070. + * Also mentioning debug_mode and price_accuracy in config file + (Closes: #513264). + * Using correct rfc-2822 date formats in changelog. + * Rediffing shebang.patch. + + -- Daniel Baumann Sat, 30 May 2009 12:53:39 +0200 + +openerp-server (5.0.0-3-1) unstable; urgency=low + + * Merging upstream version 5.0.0-3. + * Improving init call in README.Debian, thanks to David Goodenough + . + * Fixed wrapping in README.Debian. + + -- Daniel Baumann Sat, 14 Feb 2009 00:51:00 +0100 + +openerp-server (5.0.0-2-1) unstable; urgency=low + + * Merging upstream version 5.0.0-2 (Closes: #514920). + * Updating README.Debian. + + -- Daniel Baumann Sat, 14 Feb 2009 00:12:00 +0100 + +openerp-server (5.0.0-1) unstable; urgency=low + + * Merging upstream version 5.0.0. + + -- Daniel Baumann Sat, 07 Feb 2009 13:33:00 +0100 + +openerp-server (5.0.0~rc3-1) unstable; urgency=low + + * Adding note about initializing the database in README.Debian. + * Adding changelog for debian version 4.2.3.4-3. + * Merging upstream version 5.0.0~rc3. + * Using quilt rather than dpatch. + * Updating year in copyright file. + * Updating python-openssl depends. + * Updating lintian overrides. + + -- Daniel Baumann Fri, 09 Jan 2009 18:31:00 -0500 + +openerp-server (5.0.0~rc2-1) unstable; urgency=low + + * Updating python xml depends (Closes: #508911). + * Merging upstream version 5.0.0~rc2. + * New upstream no longer uses embedded copies of pydot, pychart and + reportlab (Closes: #468104). + * Rediffing shebang.dpatch. + + -- Daniel Baumann Thu, 25 Dec 2008 15:13:00 +0100 + +openerp-server (5.0.0~rc1.1-2) unstable; urgency=low + + * Adjusting sed call to correct path in /usr/bin/openerp-server. + + -- Daniel Baumann Wed, 17 Dec 2008 08:32:00 +0100 + +openerp-server (5.0.0~rc1.1-1) unstable; urgency=low + + * Merging upstream version 5.0.0~rc1.1. + + -- Daniel Baumann Tue, 16 Dec 2008 13:08:00 +0100 + +openerp-server (5.0.0~rc1-1) unstable; urgency=low + + * Merging upstream version 5.0.0~rc1. + * Removing openerp.dpatch, went upstream. + * Rediffing shebang.dpatch. + * Removing workaround for import_xml.rng, not needed anymore. + + -- Daniel Baumann Tue, 16 Dec 2008 12:51:00 +0100 + +openerp-server (5.0.0~alpha-3) unstable; urgency=low + + * Adding ghostscript, python-matplotlib, and python-pyopenssl to recommends. + * Correcting chown calls in postinst. + * Prefixing debhelper files with package name. + * Adding changelog for debian version 4.2.3.4-2. + * Dropping tinyerp-server transitional package, this allows to have both + packages available in unstable. + + -- Daniel Baumann Sun, 07 Dec 2008 20:13:00 +0100 + +openerp-server (5.0.0~alpha-2) experimental; urgency=low + + * Renaming tinyerp-server to new upstream openerp-server name. + + -- Daniel Baumann Sun, 09 Nov 2008 18:59:00 +0100 + +tinyerp-server (5.0.0~alpha-1) experimental; urgency=low + + * Merging upstream version 5.0.0~alpha. + * Rediffing autobuild.dpatch. + * Removing shebang.dpatch, not needed anymore. + * Removing python2.5.dpatch, not needed anymore. + * Rediffing openerp.dpatch. + * Rediffing migrate.dpatch. + * Not moving server to sbin anymore for the sake of consistency. + * Removing unneeded chmod call for tinyerp-server.py. + * Sorting build-depends, depends and recommends. + * Dropping /etc/default/tinyerp-server in favour of using + /etc/tinyerp-server.conf directly. + * Updating chmod call in rules to also cope with filenames that embedd + whitespaces. + * Adding patch to correct shebang in two addon files. + * Adding workaround for bug in setup.py that puts import_xml.rng into the + wrong location. + * Adding symlink for tinyerp_serverrc manpage to tinyerp-server.conf. + * Renaming everything except the package name itself from tinyerp-server to + openerp-server. + * Updating copyright file to current upstream. + + -- Daniel Baumann Sun, 09 Nov 2008 15:52:00 +0100 + +tinyerp-server (4.2.3.4-3) unstable; urgency=high + + * Updating python depends (Closes: #506615). + * Adding note about initializising the database in README.Debian + (Closes: #464557). + + -- Daniel Baumann Mon, 10 Nov 2008 12:40:00 +0100 + +tinyerp-server (4.2.3.4-2) unstable; urgency=low + + * Correcting chown calls in postinst. + + -- Daniel Baumann Mon, 10 Nov 2008 12:40:00 +0100 + +tinyerp-server (4.2.3.4-1) unstable; urgency=low + + * Merging upstream version 4.2.3.4. + * Upgrading package to debhelper 7. + * Upgrading package to standards 3.8.0. + * Updating homepage field in control file. + * Adding vcs fields in control file. + * Rewriting copyright file in machine-interpretable format. + * Using lintian debhelper to install lintian overrides. + * Removing bind-exit.dpatch, went upstream. + * Updating default database port. + * Adding logfile handling. + * Updating postresql recommends. + * Reordering and splitting out rules file into individual debhelper files. + * Applying some shell cosmetics to init and maintainer scripts. + * Adding patch to update homepage location of tinyerp. + * Setting ownership of addons directory in postinst (Closes: #487112). + * Adding patch from Brian DeRocher to fix sql syntax in + migrate script (Closes: #467517). + + -- Daniel Baumann Sun, 09 Nov 2008 09:11:00 +0100 + +tinyerp-server (4.2.2-2) unstable; urgency=medium + + * Readding depends to python-psycopg (Closes: #463079, #493374). + * Adding depends to python-tz (Closes: #482359). + + -- Daniel Baumann Sun, 03 Aug 2008 00:20:00 +0200 + +tinyerp-server (4.2.2-1) unstable; urgency=low + + * New upstream release (Closes: #477698). + * Dropping depends against python-xml (Closes: #468619). + + -- Daniel Baumann Sat, 26 Apr 2008 16:15:00 +0200 + +tinyerp-server (4.2.1-1) unstable; urgency=low + + * Maintainer upload from the Zuerich BSP. + * New upstream release. + * Bumping to new policy. + * Using new homepage field in control. + * Including documentation for migration and testing (Closes: #445464). + * Adjusting 04-bind-exit.dpatch to new upstream release. + * Added lintian overrides. + * Depending now on python-psycopg2, not python-psycopg anymore + (Closes: #445464). + + -- Daniel Baumann Sat, 12 Jan 2008 15:20:00 +0100 + +tinyerp-server (4.2.0-1) unstable; urgency=medium + + * New upstream release. + + -- Daniel Baumann Wed, 31 Oct 2007 21:31:00 +0100 + +tinyerp-server (4.0.3-3) unstable; urgency=medium + + * Setting database port to 5433 (Closes: #443626). + * Applied patch from Aldrin Martoq to make tinyerp-server compatible with + python 2.5. + * Applied patch from Luca Falavigna to fix exception + raised when address is already in use. + + -- Daniel Baumann Sat, 29 Sep 2007 17:07:00 +0200 + +tinyerp-server (4.0.3-2) unstable; urgency=low + + * Check for existence of deluser in postrm (Closes: #431532). + + -- Daniel Baumann Tue, 03 Jul 2007 11:01:00 +0200 + +tinyerp-server (4.0.3-1) unstable; urgency=low + + * New upstream release. + * Taking package back, Jean-Marc seems to be MIA. + * Changed wording of 'listen to all interfaces' paragraph in README.Debian, + thanks to Gerfried Fuchs . + * Added lsb header to init script. + + -- Daniel Baumann Fri, 01 Jun 2007 11:59:00 +0200 + +tinyerp-server (4.0.2-3) unstable; urgency=low + + * Setting maintainer to Jean-Marc, this time really :) + + -- Daniel Baumann Wed, 28 Mar 2007 21:48:00 +0100 + +tinyerp-server (4.0.2-2) unstable; urgency=low + + * Setting maintainer to Jean-Marc. + + -- Daniel Baumann Wed, 07 Feb 2007 13:41:00 +0100 + +tinyerp-server (4.0.2-1) unstable; urgency=low + + * New upstream release. + * Some minor cleanups. + + -- Daniel Baumann Thu, 18 Jan 2007 14:19:00 +0100 + +tinyerp-server (4.0.1-1) unstable; urgency=low + + * New upstream release. + * Removed 03-setup.dpatch, went upstream. + + -- Daniel Baumann Fri, 29 Dec 2006 01:03:00 +0100 + +tinyerp-server (4.0.0-1) unstable; urgency=low + + * New upstream release. + * Added patch to fix a typo in setup.py. + + -- Daniel Baumann Tue, 05 Dec 2006 17:43:00 +0100 + +tinyerp-server (4.0.0~rc1-2) unstable; urgency=low + + * Cleaned up build-depends. + + -- Daniel Baumann Tue, 05 Dec 2006 13:19:00 +0100 + +tinyerp-server (4.0.0~rc1-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Tue, 05 Dec 2006 12:57:00 +0100 + +tinyerp-server (3.5.0-1) experimental; urgency=low + + * New upstream release. + + -- Daniel Baumann Mon, 23 Oct 2006 12:23:00 +0200 + +tinyerp-server (3.4.2-1) unstable; urgency=low + + * New upstream release. + * New email address. + * Complying with new python policy (Closes: #380973). + * Adjusted postgre depends (Closes: #376614). + + -- Daniel Baumann Mon, 16 Oct 2006 14:45:00 +0200 + +tinyerp-server (3.3.0-1) unstable; urgency=low + + * New upstream release (Closes: #369769): + - fixed installation script to install all needed files (Closes: #355224) + * Updated README.Debian (Closes: #352322, #360222, #360223). + * Set to architecture to all (Closes: #356962). + + -- Daniel Baumann Sun, 04 Jun 2006 00:50:00 +0100 + +tinyerp-server (3.2.1-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Thu, 02 Feb 2006 09:44:00 +0100 + +tinyerp-server (3.2.0-1) unstable; urgency=low + + * New upstream release. + * Adjusted shellbang in bin/addons/base/ir/workflow/pydot/dot_parser.py. + + -- Daniel Baumann Tue, 24 Jan 2006 07:00:00 +0100 + +tinyerp-server (3.1.99+3.2.0rc1-1) unstable; urgency=low + + * New upstream release. + + -- Daniel Baumann Tue, 27 Dec 2005 20:00:00 +0100 + +tinyerp-server (3.1.1+debian-1) unstable; urgency=low + + * Initial release (Closes: #301510). + * Rebuild orig.tar.gz to remove unnecessary files in upstreams debian/. + * Added changelog from website. + + -- Daniel Baumann Sun, 16 Oct 2005 13:35:00 +0200 --- openerp-server-5.0.6.orig/debian/openerp-server.templates +++ openerp-server-5.0.6/debian/openerp-server.templates @@ -0,0 +1,9 @@ +Template: openerp-server/username +Type: string +Default: openerp +_Description: Dedicated system account for the Open ERP server: + The Open ERP server must use a dedicated account for its operation so that + the system's security is not compromised by running it with superuser + privileges. + . + Please choose that account's username. --- openerp-server-5.0.6.orig/debian/openerp-server.README.Debian +++ openerp-server-5.0.6/debian/openerp-server.README.Debian @@ -0,0 +1,49 @@ +openerp-server for Debian +------------------------- + +Open ERP uses a PostgreSQL database to store its data. With the first generation +of packages, you have to setup this database manually. Here is a short +explanation how to achieve this (you need to execute all commands as root): + + 0. Making sure, PostgreSQL is running + + # /etc/init.d/postgresql restart + + Note that depending on the version of PostgreSQL installed on your system, + the above syvinit script could also be named postgresql-VERSION (whereas + 'VERSION' needs to be replace with a version number). + + 1. Creating the database user + + # su - postgres -c "createuser -q --createdb --no-createrole --pwprompt openerp" + + Note: If you want to run the database as another user than 'openerp', you + need to replace 'openerp' above with the user you want instead, and you + need to adjust 'db_user = openerp' in /etc/openerp-server.conf too. + + 3. Restarting openerp-server + + # /etc/init.d/openerp-server restart + + + 4. Initializing the database + + Now you can connect with Open ERP client to the database and initialize it. + +Now, you're finish. Please be aware of the following things: + + * openerp-server has by default two accounts: + - User: admin; password: admin + - User: demo; password; demo + + * openerp-server listens by default on port 8070. If you need to change this, + edit /etc/openerp-server.conf and replace 'port = 8070' with + 'port = '. + + * openerp-server in the upstreams configuration listens by default to *all* + interfaces. For security reasons, we do restrict it in the Debian packages + to listen only on localhost. If you need to change this, edit + /etc/openerp-server.conf and replace 'interface = localhost' with + 'interface = '. + + -- Daniel Baumann Fri, 1 Jun 2007 12:00:00 +0200 --- openerp-server-5.0.6.orig/debian/copyright +++ openerp-server-5.0.6/debian/copyright @@ -0,0 +1,245 @@ +Upstream-Homepage: http://www.openerp.com/ +Maintainer-Homepage: http://open-object.debian-maintainers.org/ + +Files: * +Copyright: (C) 2004-2009 Tiny.be +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-3 file. + +Files: + bin/addons/gen_graph.sh + doc/migrate/* +Copyright: (C) 2004-2008 Tiny.be +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: + bin/addons/account/report/general_ledger.py + bin/addons/account/report/general_ledger_landscape.py + bin/addons/account/wizard/wizard_statement_from_invoice.py +Copyright: (C) 2005-2008 CamptoCamp +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: bin/addons/auction/barcode/* +Copyright: (C) 2000 Tyler C. Sarna +License: BSD + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by Tyler C. Sarna. + 4. Neither the name of the author nor the names of contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS + BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + +Files: + bin/addons/base_report_designer/wizard/tiny_sxw2rml/normalized_oo2rml.xsl + bin/addons/base_report_designer/wizard/tiny_sxw2rml/tiny_sxw2rml.py +Copyright: (C) 2005 Martin Simon +License: LGPL-2.1 + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + . + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + . + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + . + On Debian systems, the complete text of the GNU Library General Public License + can be found in /usr/share/common-licenses/LGPL-2.1 file. + +Files: bin/addons/document/ftpserver/* +Copyright: + (C) 2007 Giampaolo Rodola + (C) 2008 Fabien Pinckaers +License: MIT + Permission to use, copy, modify, and distribute this software and + its documentation for any purpose and without fee is hereby + granted, provided that the above copyright notice appear in all + copies and that both that copyright notice and this permission + notice appear in supporting documentation, and that the name of + Giampaolo Rodola' not be used in advertising or publicity pertaining to + distribution of the software without specific, written prior + permission. + . + Giampaolo Rodola' DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN + NO EVENT Giampaolo Rodola' BE LIABLE FOR ANY SPECIAL, INDIRECT OR + CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS + OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, + NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN + CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +Files: bin/addons/hr_holidays/* +Copyright: + (C) 2004-2008 Tiny.be + (C) 2005-2006 Axelor SARL. +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: bin/addons/l10n_chart_uk_minimal/* +Copyright: + (C) 2004-2008 Tiny.be + (C) 2004-2008 Seath Solutions Ltd. +License: GPL-2+ + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-2 file. + +Files: bin/tools/threadinglocal.py +Copyright: (C) 2004-2005 CherryPy Team +License: BSD + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + * Neither the name of the CherryPy Team nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Files: bin/tools/decimal.py +Copyright: (C) 2004 Python Software Foundation. +License: other + This file is distributed under the Python Software License + (http://www.python.org/2.3/license.html). + . + Permission to use, copy, modify, and distribute this software and its + documentation for any purpose and without fee is hereby granted, + provided that the above copyright notice appear in all copies and that + both that copyright notice and this permission notice appear in + supporting documentation, and that the name of Stichting Mathematisch + Centrum or CWI not be used in advertising or publicity pertaining to + distribution of the software without specific, written prior + permission. + +Files: debian/* +Copyright: (C) 2005-2009 Daniel Baumann +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see . + . + On Debian systems, the complete text of the GNU General Public License + can be found in /usr/share/common-licenses/GPL-3 file. --- openerp-server-5.0.6.orig/debian/openerp-server.config +++ openerp-server-5.0.6/debian/openerp-server.config @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +. /usr/share/debconf/confmodule + +db_input low openerp-server/username || true +db_go + +db_stop --- openerp-server-5.0.6.orig/debian/openerp-server.install +++ openerp-server-5.0.6/debian/openerp-server.install @@ -0,0 +1 @@ +debian/local/openerp-server.conf /etc --- openerp-server-5.0.6.orig/debian/openerp-server.postrm +++ openerp-server-5.0.6/debian/openerp-server.postrm @@ -0,0 +1,41 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove) + _USERNAME="openerp" + _GROUPNAME="openerp" + + if [ -x /usr/sbin/deluser ] + then + deluser --quiet --system ${_USERNAME} + fi + + if [ -x /usr/sbin/delgroup ] + then + delgroup --quiet --system --only-if-empty ${_GROUPNAME} || true + fi + + rm -f /usr/lib/openerp-server/addons/__init__.pyc + rmdir --ignore-fail-on-non-empty /usr/lib/openerp-server/addons || true + rmdir --ignore-fail-on-non-empty /usr/lib/openerp-server || true + ;; + + purge) + rm -rf /var/lib/openerp-server + ;; + + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`${1}'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 --- openerp-server-5.0.6.orig/debian/openerp-server.links +++ openerp-server-5.0.6/debian/openerp-server.links @@ -0,0 +1,2 @@ +/usr/share/man/man5/openerp_serverrc.5.gz /usr/share/man/man5/openerp-server.conf.5.gz +/var/lib/openerp-server/filestore /usr/lib/openerp-server/filestore --- openerp-server-5.0.6.orig/debian/openerp-server.examples +++ openerp-server-5.0.6/debian/openerp-server.examples @@ -0,0 +1 @@ +debian/openerp-server.preseed --- openerp-server-5.0.6.orig/debian/openerp-server.lintian-overrides +++ openerp-server-5.0.6/debian/openerp-server.lintian-overrides @@ -0,0 +1,7 @@ +# Add-on directories needs data directories, and sometimes they are +# (intentionally) empty, hence overriting the lintian warning. +openerp-server: package-contains-empty-directory +# Add-on directoires contain images sometimes, but it's nothing that is +# worthwile to be splittet out to /usr/share as it's all manual work for each +# release. +openerp-server: image-file-in-usr-lib --- openerp-server-5.0.6.orig/debian/patches/04-python-lxml.patch +++ openerp-server-5.0.6/debian/patches/04-python-lxml.patch @@ -0,0 +1,1079 @@ +Author: Harshad Modi +Description: + Ported etree object instend of minidom object to parsing xml file + (Closes: #543947). + +diff -Naurp openerp-server.orig/bin/osv/orm.py openerp-server/bin/osv/orm.py +--- openerp-server.orig/bin/osv/orm.py 2009-10-17 06:09:48.000000000 +0000 ++++ openerp-server/bin/osv/orm.py 2009-10-17 06:20:28.000000000 +0000 +@@ -50,16 +50,16 @@ import pickle + + import fields + import tools +- ++from tools.translate import _ + import sys + + try: +- from xml import dom, xpath ++ from lxml import etree + except ImportError: +- sys.stderr.write("ERROR: Import xpath module\n") +- sys.stderr.write("ERROR: Try to install the old python-xml package\n") +- sys.stderr.write('On Ubuntu Jaunty, try this: sudo cp /usr/lib/python2.6/dist-packages/oldxml/_xmlplus/utils/boolean.so /usr/lib/python2.5/site-packages/oldxml/_xmlplus/utils\n') +- raise ++ sys.stderr.write("ERROR: Import lxml module\n") ++ sys.stderr.write("ERROR: Try to install the python-lxml package\n") ++ sys.exit(2) ++ + + from tools.config import config + +@@ -972,14 +972,14 @@ class orm_template(object): + fields = {} + childs = True + +- if node.nodeType == node.ELEMENT_NODE and node.localName == 'field': +- if node.hasAttribute('name'): ++ if node.tag == 'field': ++ if node.get('name'): + attrs = {} + try: +- if node.getAttribute('name') in self._columns: +- column = self._columns[node.getAttribute('name')] ++ if node.get('name') in self._columns: ++ column = self._columns[node.get('name')] + else: +- column = self._inherit_fields[node.getAttribute('name')][2] ++ column = self._inherit_fields[node.get('name')][2] + except: + column = False + +@@ -987,65 +987,64 @@ class orm_template(object): + relation = column._obj + childs = False + views = {} +- for f in node.childNodes: +- if f.nodeType == f.ELEMENT_NODE and f.localName in ('form', 'tree', 'graph'): +- node.removeChild(f) ++ for f in node: ++ if f.tag in ('form', 'tree', 'graph'): ++ node.remove(f) + ctx = context.copy() + ctx['base_model_name'] = self._name + xarch, xfields = self.pool.get(relation).__view_look_dom_arch(cr, user, f, view_id, ctx) +- views[str(f.localName)] = { ++ views[str(f.tag)] = { + 'arch': xarch, + 'fields': xfields + } + attrs = {'views': views} +- if node.hasAttribute('widget') and node.getAttribute('widget')=='selection': ++ if node.get('widget') and node.get('widget') == 'selection': + # We can not use the 'string' domain has it is defined according to the record ! + dom = [] + if column._domain and not isinstance(column._domain, (str, unicode)): + dom = column._domain + + attrs['selection'] = self.pool.get(relation).name_search(cr, user, '', dom, context=context) +- if (node.hasAttribute('required') and not int(node.getAttribute('required'))) or not column.required: ++ if (node.get('required') and not int(node.get('required'))) or not column.required: + attrs['selection'].append((False,'')) +- fields[node.getAttribute('name')] = attrs ++ fields[node.get('name')] = attrs + +- elif node.nodeType==node.ELEMENT_NODE and node.localName in ('form', 'tree'): +- result = self.view_header_get(cr, user, False, node.localName, context) ++ elif node.tag in ('form', 'tree'): ++ result = self.view_header_get(cr, user, False, node.tag, context) + if result: +- node.setAttribute('string', result) ++ node.set('string', result) + +- elif node.nodeType==node.ELEMENT_NODE and node.localName == 'calendar': ++ elif node.tag == 'calendar': + for additional_field in ('date_start', 'date_delay', 'date_stop', 'color'): +- if node.hasAttribute(additional_field) and node.getAttribute(additional_field): +- fields[node.getAttribute(additional_field)] = {} ++ if node.get(additional_field): ++ fields[node.get(additional_field)] = {} + +- if node.nodeType == node.ELEMENT_NODE and node.hasAttribute('groups'): +- if node.getAttribute('groups'): +- groups = node.getAttribute('groups').split(',') ++ if 'groups' in node.attrib: ++ if node.get('groups'): ++ groups = node.get('groups').split(',') + readonly = False + access_pool = self.pool.get('ir.model.access') + for group in groups: + readonly = readonly or access_pool.check_groups(cr, user, group) + if not readonly: +- node.setAttribute('invisible', '1') +- node.removeAttribute('groups') ++ node.set('invisible', '1') ++ del(node.attrib['groups']) + +- if node.nodeType == node.ELEMENT_NODE: +- # translate view +- if ('lang' in context) and not result: +- if node.hasAttribute('string') and node.getAttribute('string'): +- trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.getAttribute('string').encode('utf8')) +- if not trans and ('base_model_name' in context): +- trans = self.pool.get('ir.translation')._get_source(cr, user, context['base_model_name'], 'view', context['lang'], node.getAttribute('string').encode('utf8')) +- if trans: +- node.setAttribute('string', trans) +- if node.hasAttribute('sum') and node.getAttribute('sum'): +- trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.getAttribute('sum').encode('utf8')) +- if trans: +- node.setAttribute('sum', trans) ++ # translate view ++ if ('lang' in context) and not result: ++ if node.get('string'): ++ trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('string').encode('utf8')) ++ if not trans and ('base_model_name' in context): ++ trans = self.pool.get('ir.translation')._get_source(cr, user, context['base_model_name'], 'view', context['lang'], node.get('string').encode('utf8')) ++ if trans: ++ node.set('string', trans) ++ if node.get('sum'): ++ trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('sum').encode('utf8')) ++ if trans: ++ node.set('sum', trans) + + if childs: +- for f in node.childNodes: ++ for f in node: + fields.update(self.__view_look_dom(cr, user, f, view_id, context)) + + return fields +@@ -1056,23 +1055,23 @@ class orm_template(object): + rolesobj = self.pool.get('res.roles') + usersobj = self.pool.get('res.users') + +- buttons = (n for n in node.getElementsByTagName('button') if n.getAttribute('type') != 'object') ++ buttons = (n for n in node.getiterator('button') if n.get('type') != 'object') + for button in buttons: + ok = True + if user != 1: # admin user has all roles + user_roles = usersobj.read(cr, user, [user], ['roles_id'])[0]['roles_id'] +- cr.execute("select role_id from wkf_transition where signal=%s", (button.getAttribute('name'),)) ++ cr.execute("select role_id from wkf_transition where signal=%s", (button.get('name'),)) + roles = cr.fetchall() + for role in roles: + if role[0]: + ok = ok and rolesobj.check(cr, user, user_roles, role[0]) + + if not ok: +- button.setAttribute('readonly', '1') ++ button.set('readonly', '1') + else: +- button.setAttribute('readonly', '0') ++ button.set('readonly', '0') + +- arch = node.toxml(encoding="utf-8").replace('\t', '') ++ arch = etree.tostring(node, encoding="utf-8").replace('\t', '') + fields = self.fields_get(cr, user, fields_def.keys(), context) + for field in fields_def: + if field == 'id': +@@ -1137,70 +1136,64 @@ class orm_template(object): + + def _inherit_apply(src, inherit): + def _find(node, node2): +- if node2.nodeType == node2.ELEMENT_NODE and node2.localName == 'xpath': +- res = xpath.Evaluate(node2.getAttribute('expr'), node) ++ if node2.tag == 'xpath': ++ res = node.xpath(node2.get('expr')) + return res and res[0] + else: +- if node.nodeType == node.ELEMENT_NODE and node.localName == node2.localName: ++ for n in node.getiterator(node2.tag): + res = True +- for attr in node2.attributes.keys(): ++ for attr in node2.attrib: + if attr == 'position': + continue +- if node.hasAttribute(attr): +- if node.getAttribute(attr)==node2.getAttribute(attr): ++ if n.get(attr): ++ if n.get(attr) == node2.get(attr): + continue + res = False + if res: +- return node +- for child in node.childNodes: +- res = _find(child, node2) +- if res: +- return res ++ return n + return None ++ # End: _find(node, node2) + +- +- doc_src = dom.minidom.parseString(encode(src)) +- doc_dest = dom.minidom.parseString(encode(inherit)) +- toparse = doc_dest.childNodes ++ doc_dest = etree.fromstring(encode(inherit)) ++ toparse = [ doc_dest ] + while len(toparse): + node2 = toparse.pop(0) +- if not node2.nodeType == node2.ELEMENT_NODE: +- continue +- if node2.localName == 'data': +- toparse += node2.childNodes ++ if node2.tag == 'data': ++ toparse += [ c for c in doc_dest ] + continue +- node = _find(doc_src, node2) +- if node: ++ node = _find(src, node2) ++ if node is not None: + pos = 'inside' +- if node2.hasAttribute('position'): +- pos = node2.getAttribute('position') ++ if node2.get('position'): ++ pos = node2.get('position') + if pos == 'replace': +- parent = node.parentNode +- for child in node2.childNodes: +- if child.nodeType == child.ELEMENT_NODE: +- parent.insertBefore(child, node) +- parent.removeChild(node) ++ for child in node2: ++ node.addprevious(child) ++ node.getparent().remove(node) + else: +- sib = node.nextSibling +- for child in node2.childNodes: +- if child.nodeType == child.ELEMENT_NODE: +- if pos == 'inside': +- node.appendChild(child) +- elif pos == 'after': +- node.parentNode.insertBefore(child, sib) +- elif pos=='before': +- node.parentNode.insertBefore(child, node) ++ sib = node.getnext() ++ for child in node2: ++ if pos == 'inside': ++ node.append(child) ++ elif pos == 'after': ++ if sib is None: ++ node.addnext(child) + else: +- raise AttributeError(_('Unknown position in inherited view %s !') % pos) ++ sib.addprevious(child) ++ elif pos == 'before': ++ node.addprevious(child) ++ else: ++ raise AttributeError(_('Unknown position in inherited view %s !') % pos) + else: + attrs = ''.join([ +- ' %s="%s"' % (attr, node2.getAttribute(attr)) +- for attr in node2.attributes.keys() ++ ' %s="%s"' % (attr, node2.get(attr)) ++ for attr in node2.attrib + if attr != 'position' + ]) +- tag = "<%s%s>" % (node2.localName, attrs) ++ tag = "<%s%s>" % (node2.tag, attrs) + raise AttributeError(_("Couldn't find tag '%s' in parent view !") % tag) +- return doc_src.toxml(encoding="utf-8").replace('\t', '') ++ return src ++ # End: _inherit_apply(src, inherit) + + result = {'type': view_type, 'model': self._name} + +@@ -1243,7 +1236,8 @@ class orm_template(object): + result = _inherit_apply_rec(result, id) + return result + +- result['arch'] = _inherit_apply_rec(result['arch'], sql_res[3]) ++ inherit_result = etree.fromstring(encode(result['arch'])) ++ result['arch'] = _inherit_apply_rec(inherit_result, sql_res[3]) + + result['name'] = sql_res[1] + result['field_parent'] = sql_res[2] or False +@@ -1270,13 +1264,12 @@ class orm_template(object): + xml = self.__get_default_calendar_view() + else: + xml = '' +- result['arch'] = xml ++ result['arch'] = etree.fromstring(xml) + result['name'] = 'default' + result['field_parent'] = False + result['view_id'] = 0 + +- doc = dom.minidom.parseString(encode(result['arch'])) +- xarch, xfields = self.__view_look_dom_arch(cr, user, doc, view_id, context=context) ++ xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=context) + result['arch'] = xarch + result['fields'] = xfields + if toolbar: +diff -Naurp openerp-server.orig/bin/tools/convert.py openerp-server/bin/tools/convert.py +--- openerp-server.orig/bin/tools/convert.py 2009-10-17 06:09:48.000000000 +0000 ++++ openerp-server/bin/tools/convert.py 2009-10-17 06:11:05.000000000 +0000 +@@ -21,7 +21,7 @@ + ############################################################################## + import re + import cStringIO +-import xml.dom.minidom ++from lxml import etree + import osv + import ir + import pooler +@@ -62,16 +62,13 @@ def _obj(pool, cr, uid, model_str, conte + def _eval_xml(self,node, pool, cr, uid, idref, context=None): + if context is None: + context = {} +- if node.nodeType == node.TEXT_NODE: +- return node.data.encode("utf8") +- elif node.nodeType == node.ELEMENT_NODE: +- if node.nodeName in ('field','value'): +- t = node.getAttribute('type') or 'char' +- f_model = node.getAttribute("model").encode('ascii') +- if len(node.getAttribute('search')): +- f_search = node.getAttribute("search").encode('utf-8') +- f_use = node.getAttribute("use").encode('ascii') +- f_name = node.getAttribute("name").encode('utf-8') ++ if node.tag in ('field','value'): ++ t = node.get('type','') or 'char' ++ f_model = node.get("model", '').encode('ascii') ++ if len(node.get('search','')): ++ f_search = node.get("search",'').encode('utf-8') ++ f_use = node.get("use",'').encode('ascii') ++ f_name = node.get("name",'').encode('utf-8') + if len(f_use)==0: + f_use = "id" + q = eval(f_search, idref) +@@ -87,7 +84,7 @@ def _eval_xml(self,node, pool, cr, uid, + if isinstance(f_val, tuple): + f_val = f_val[0] + return f_val +- a_eval = node.getAttribute('eval') ++ a_eval = node.get('eval','') + if len(a_eval): + import time + from mx import DateTime +@@ -116,14 +113,11 @@ def _eval_xml(self,node, pool, cr, uid, + if not id in idref: + idref[id]=self.id_get(cr, False, id) + return s % idref +- txt = '\n'+_process("".join([i.toxml().encode("utf8") for i in node.childNodes]), idref) +-# txt = '\n'+"".join([i.toxml().encode("utf8") for i in node.childNodes]) % idref +- ++ txt = '\n'+_process("".join([etree.tostring(i).encode("utf8") for i in node.getchildren()]), idref) + return txt + if t in ('char', 'int', 'float'): + d = "" +- for n in [i for i in node.childNodes]: +- d+=str(_eval_xml(self,n,pool,cr,uid,idref)) ++ d = node.text + if t == 'int': + d = d.strip() + if d=='None': +@@ -135,37 +129,37 @@ def _eval_xml(self,node, pool, cr, uid, + return d + elif t in ('list','tuple'): + res=[] +- for n in [i for i in node.childNodes if (i.nodeType == i.ELEMENT_NODE and i.nodeName=='value')]: ++ for n in [i for i in node.getchildren() if (i.tag=='value')]: + res.append(_eval_xml(self,n,pool,cr,uid,idref)) + if t=='tuple': + return tuple(res) + return res +- elif node.nodeName=="getitem": +- for n in [i for i in node.childNodes if (i.nodeType == i.ELEMENT_NODE)]: +- res=_eval_xml(self,n,pool,cr,uid,idref) +- if not res: +- raise LookupError +- elif node.getAttribute('type') in ("int", "list"): +- return res[int(node.getAttribute('index'))] +- else: +- return res[node.getAttribute('index').encode("utf8")] +- elif node.nodeName=="function": +- args = [] +- a_eval = node.getAttribute('eval') +- if len(a_eval): +- idref['ref'] = lambda x: self.id_get(cr, False, x) +- args = eval(a_eval, idref) +- for n in [i for i in node.childNodes if (i.nodeType == i.ELEMENT_NODE)]: +- args.append(_eval_xml(self,n, pool, cr, uid, idref, context)) +- model = pool.get(node.getAttribute('model')) +- method = node.getAttribute('name') +- res = getattr(model, method)(cr, uid, *args) +- return res +- elif node.nodeName=="test": +- d = "" +- for n in [i for i in node.childNodes]: +- d+=str(_eval_xml(self,n,pool,cr,uid,idref, context=context)) +- return d ++ elif node.tag == "getitem": ++ for n in [i for i in node.getchildren()]: ++ res=_eval_xml(self,n,pool,cr,uid,idref) ++ if not res: ++ raise LookupError ++ elif node.get('type','') in ("int", "list"): ++ return res[int(node.get('index',''))] ++ else: ++ return res[node.get('index','').encode("utf8")] ++ elif node.tag == "function": ++ args = [] ++ a_eval = node.get('eval','') ++ if len(a_eval): ++ idref['ref'] = lambda x: self.id_get(cr, False, x) ++ args = eval(a_eval, idref) ++ for n in [i for i in node.getchildren()]: ++ return_val = _eval_xml(self,n, pool, cr, uid, idref, context) ++ if return_val != None: ++ args.append(return_val) ++ model = pool.get(node.get('model','')) ++ method = node.get('name','') ++ res = getattr(model, method)(cr, uid, *args) ++ return res ++ elif node.tag == "test": ++ d = node.text ++ return d + + + escape_re = re.compile(r'(?= config['assert_exit_level']: +@@ -672,12 +662,11 @@ form: module.record_id""" % (xml_id,) + self.assert_report.record_assertion(True, severity) + + def _tag_record(self, cr, rec, data_node=None): +- rec_model = rec.getAttribute("model").encode('ascii') ++ rec_model = rec.get("model").encode('ascii') + model = self.pool.get(rec_model) + assert model, "The model %s does not exist !" % (rec_model,) +- rec_id = rec.getAttribute("id").encode('ascii') ++ rec_id = rec.get("id",'').encode('ascii') + self._test_xml_id(rec_id) +- + if self.isnoupdate(data_node) and self.mode != 'init': + # check if the xml record has an id string + if rec_id: +@@ -703,17 +692,16 @@ form: module.record_id""" % (xml_id,) + else: + # otherwise it is skipped + return None +- + res = {} +- for field in [i for i in rec.childNodes if (i.nodeType == i.ELEMENT_NODE and i.nodeName=="field")]: ++ for field in [i for i in rec.getchildren() if (i.tag == "field")]: + #TODO: most of this code is duplicated above (in _eval_xml)... +- f_name = field.getAttribute("name").encode('utf-8') +- f_ref = field.getAttribute("ref").encode('ascii') +- f_search = field.getAttribute("search").encode('utf-8') +- f_model = field.getAttribute("model").encode('ascii') ++ f_name = field.get("name",'').encode('utf-8') ++ f_ref = field.get("ref",'').encode('ascii') ++ f_search = field.get("search",'').encode('utf-8') ++ f_model = field.get("model",'').encode('ascii') + if not f_model and model._columns.get(f_name,False): + f_model = model._columns[f_name]._obj +- f_use = field.getAttribute("use").encode('ascii') or 'id' ++ f_use = field.get("use",'').encode('ascii') or 'id' + f_val = False + + if len(f_search): +@@ -761,24 +749,22 @@ form: module.record_id""" % (xml_id,) + return int(self.pool.get('ir.model.data').read(cr, self.uid, [result], ['res_id'])[0]['res_id']) + + def parse(self, xmlstr): +- d = xml.dom.minidom.parseString(xmlstr) +- de = d.documentElement ++ de = etree.XML(xmlstr) + +- if not de.nodeName in ['terp', 'openerp']: ++ if not de.tag in ['terp', 'openerp']: + self.logger.notifyChannel("init", netsvc.LOG_ERROR, "Mismatch xml format" ) + raise Exception( "Mismatch xml format: only terp or openerp as root tag" ) + +- if de.nodeName == 'terp': ++ if de.tag == 'terp': + self.logger.notifyChannel("init", netsvc.LOG_WARNING, "The tag is deprecated, use ") + +- for n in [i for i in de.childNodes if (i.nodeType == i.ELEMENT_NODE and i.nodeName=="data")]: +- for rec in n.childNodes: +- if rec.nodeType == rec.ELEMENT_NODE: +- if rec.nodeName in self._tags: ++ for n in [i for i in de.getchildren() if (i.tag=="data")]: ++ for rec in n.getchildren(): ++ if rec.tag in self._tags: + try: +- self._tags[rec.nodeName](self.cr, rec, n) ++ self._tags[rec.tag](self.cr, rec, n) + except: +- self.logger.notifyChannel("init", netsvc.LOG_ERROR, '\n'+rec.toxml()) ++ self.logger.notifyChannel("init", netsvc.LOG_ERROR, '\n'+etree.tostring(rec)) + self.cr.rollback() + raise + return True +@@ -891,11 +877,13 @@ def convert_xml_export(res): + pool=pooler.get_pool(cr.dbname) + cr=pooler.db.cursor() + idref = {} +- d = xml.dom.minidom.getDOMImplementation().createDocument(None, "terp", None) +- de = d.documentElement +- data=d.createElement("data") +- de.appendChild(data) +- de.appendChild(d.createTextNode('Some textual content.')) ++ ++ page = etree.Element ( 'terp' ) ++ doc = etree.ElementTree ( page ) ++ data = etree.SubElement ( page, 'data' ) ++ text_node = etree.SubElement ( page, 'text' ) ++ text_node.text = 'Some textual content.' ++ + cr.commit() + cr.close() + +diff -Naurp openerp-server.orig/bin/tools/translate.py openerp-server/bin/tools/translate.py +--- openerp-server.orig/bin/tools/translate.py 2009-10-17 06:09:48.000000000 +0000 ++++ openerp-server/bin/tools/translate.py 2009-10-17 06:11:05.000000000 +0000 +@@ -23,9 +23,9 @@ + import os + from os.path import join + import fnmatch +-import csv, xml.dom, re ++import csv, re ++from lxml import etree + import tools, pooler +-from osv.orm import BrowseRecordError + import ir + import netsvc + from tools.misc import UpdateableStr +@@ -335,9 +335,9 @@ def trans_export(lang, modules, buffer, + + def trans_parse_xsl(de): + res = [] +- for n in [i for i in de.childNodes if (i.nodeType == i.ELEMENT_NODE)]: +- if n.hasAttribute("t"): +- for m in [j for j in n.childNodes if (j.nodeType == j.TEXT_NODE)]: ++ for n in [i for i in de.getchildren()]: ++ if n.get("t"): ++ for m in [j for j in n.getchildren()]: + l = m.data.strip().replace('\n',' ') + if len(l): + res.append(l.encode("utf8")) +@@ -346,8 +346,8 @@ def trans_parse_xsl(de): + + def trans_parse_rml(de): + res = [] +- for n in [i for i in de.childNodes if (i.nodeType == i.ELEMENT_NODE)]: +- for m in [j for j in n.childNodes if (j.nodeType == j.TEXT_NODE)]: ++ for n in [i for i in de.getchildren()]: ++ for m in [j for j in n.getchildren()]: + string_list = [s.replace('\n', ' ').strip() for s in re.split('\[\[.+?\]\]', m.data)] + for s in string_list: + if s: +@@ -357,15 +357,15 @@ def trans_parse_rml(de): + + def trans_parse_view(de): + res = [] +- if de.hasAttribute("string"): +- s = de.getAttribute('string') ++ if de.get("string"): ++ s = de.get('string') + if s: + res.append(s.encode("utf8")) +- if de.hasAttribute("sum"): +- s = de.getAttribute('sum') ++ if de.get("sum"): ++ s = de.get('sum') + if s: + res.append(s.encode("utf8")) +- for n in [i for i in de.childNodes if (i.nodeType == i.ELEMENT_NODE)]: ++ for n in [i for i in de.getchildren()]: + res.extend(trans_parse_view(n)) + return res + +@@ -434,8 +434,8 @@ def trans_generate(lang, modules, dbname + continue + + if model=='ir.ui.view': +- d = xml.dom.minidom.parseString(encode(obj.arch)) +- for t in trans_parse_view(d.documentElement): ++ d = etree.XML(encode(obj.arch)) ++ for t in trans_parse_view(d.getroot()): + push_translation(module, 'view', encode(obj.model), 0, t) + elif model=='ir.actions.wizard': + service_name = 'wizard.'+encode(obj.wiz_name) +@@ -467,8 +467,8 @@ def trans_generate(lang, modules, dbname + # export arch + arch = result['arch'] + if arch and not isinstance(arch, UpdateableStr): +- d = xml.dom.minidom.parseString(arch) +- for t in trans_parse_view(d.documentElement): ++ d = etree.XML(arch) ++ for t in trans_parse_view(d.getroot()): + push_translation(module, 'wizard_view', name, 0, t) + + # export button labels +@@ -522,10 +522,10 @@ def trans_generate(lang, modules, dbname + report_type = "xsl" + try: + xmlstr = tools.file_open(fname).read() +- d = xml.dom.minidom.parseString(xmlstr) +- for t in parse_func(d.documentElement): ++ d = etree.XML()(xmlstr) ++ for t in parse_func(d.getroot()): + push_translation(module, report_type, name, 0, t) +- except IOError, xml.dom.expatbuilder.expat.ExpatError: ++ except IOError, etree.expatbuilder.expat.ExpatError: + if fname: + logger.notifyChannel("i18n", netsvc.LOG_ERROR, "couldn't export translation for report %s %s %s" % (name, report_type, fname)) + +diff -Naurp openerp-server.orig/bin/wizard/__init__.py openerp-server/bin/wizard/__init__.py +--- openerp-server.orig/bin/wizard/__init__.py 2009-10-17 06:09:48.000000000 +0000 ++++ openerp-server/bin/wizard/__init__.py 2009-10-17 06:11:05.000000000 +0000 +@@ -24,7 +24,7 @@ import netsvc + from tools import copy + from tools.misc import UpdateableStr, UpdateableDict + from tools.translate import translate +-from xml import dom ++from lxml import etree + + import ir + import pooler +@@ -50,13 +50,12 @@ class interface(netsvc.Service): + self.wiz_name = name + + def translate_view(self, cr, node, state, lang): +- if node.nodeType == node.ELEMENT_NODE: +- if node.hasAttribute('string') and node.getAttribute('string'): +- trans = translate(cr, self.wiz_name+','+state, 'wizard_view', lang, node.getAttribute('string').encode('utf8')) ++ if node.get('string'): ++ trans = translate(cr, self.wiz_name+','+state, 'wizard_view', lang, node.get('string').encode('utf8')) + if trans: +- node.setAttribute('string', trans) +- for n in node.childNodes: +- self.translate_view(cr, n, state, lang) ++ node.set('string', trans) ++ for n in node.getchildren(): ++ self.translate_view(cr, n, state, lang) + + def execute_cr(self, cr, uid, data, state='init', context=None): + if not context: +@@ -132,9 +131,9 @@ class interface(netsvc.Service): + + # translate arch + if not isinstance(arch, UpdateableStr): +- doc = dom.minidom.parseString(arch.encode('utf8')) ++ doc = etree.XML(arch) + self.translate_view(cr, doc, state, lang) +- arch = doc.toxml() ++ arch = etree.tostring(doc) + + # translate buttons + button_list = list(button_list) --- openerp-server-5.0.6.orig/debian/patches/03-shebang.patch +++ openerp-server-5.0.6/debian/patches/03-shebang.patch @@ -0,0 +1,12 @@ +Author: Daniel Baumann +Description: Correcting shebang. + +diff -Naurp openerp-server.orig/bin/addons/document/ftpserver/ftpserver.py openerp-server/bin/addons/document/ftpserver/ftpserver.py +--- openerp-server.orig/bin/addons/document/ftpserver/ftpserver.py 2009-05-30 10:14:37.000000000 +0000 ++++ openerp-server/bin/addons/document/ftpserver/ftpserver.py 2009-05-30 11:02:00.000000000 +0000 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/python + # -*- encoding: utf-8 -*- + # ftpserver.py + # --- openerp-server-5.0.6.orig/debian/patches/01-autobuild.patch +++ openerp-server-5.0.6/debian/patches/01-autobuild.patch @@ -0,0 +1,15 @@ +Author: Daniel Baumann +Description: Disable modules check to make it buildable without X11. + +diff -Naurp openerp-server.orig/setup.py openerp-server/setup.py +--- openerp-server.orig/setup.py 2009-06-08 15:51:20.000000000 +0000 ++++ openerp-server/setup.py 2009-07-26 10:27:49.000000000 +0000 +@@ -121,7 +121,7 @@ def data_files(): + + return files + +-check_modules() ++#check_modules() + + f = file('openerp-server','w') + start_script = """#!/bin/sh\necho "OpenERP Setup - The content of this file is generated at the install stage\n" """ --- openerp-server-5.0.6.orig/debian/patches/02-migrate.patch +++ openerp-server-5.0.6/debian/patches/02-migrate.patch @@ -0,0 +1,15 @@ +Author: Brian DeRocher +Description: Correct SQL syntax in migrate script (Closes: #467517). + +diff -Naurp openerp-server.orig/doc/migrate/3.4.0-4.0.0/pre.py openerp-server/doc/migrate/3.4.0-4.0.0/pre.py +--- openerp-server.orig/doc/migrate/3.4.0-4.0.0/pre.py 2008-11-03 21:33:56.000000000 +0000 ++++ openerp-server/doc/migrate/3.4.0-4.0.0/pre.py 2008-11-09 09:09:49.000000000 +0000 +@@ -123,7 +123,7 @@ cr.commit() + + for line in ( + "ALTER TABLE ir_module_module ADD demo BOOLEAN", +- "ALTER TABLE ir_module_module SET demo DEFAULT False", ++ "ALTER TABLE ir_module_module alter column demo set DEFAULT False", + "DELETE FROM ir_values WHERE VALUE LIKE '%,False'", + """UPDATE ir_ui_view set arch='' where name='ir.ui.menu.tree' and type='tree' and field_parent='child_id'""", + ): --- openerp-server-5.0.6.orig/debian/patches/series +++ openerp-server-5.0.6/debian/patches/series @@ -0,0 +1,4 @@ +01-autobuild.patch +02-migrate.patch +03-shebang.patch +04-python-lxml.patch --- openerp-server-5.0.6.orig/debian/po/pt.po +++ openerp-server-5.0.6/debian/po/pt.po @@ -0,0 +1,39 @@ +# Portuguese translation of openerp-server debconf templates. +# Copyright (C) 2009 Américo Monteiro +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-26 19:12+0000\n" +"Last-Translator: Américo Monteiro \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../openerp-servera.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Conta dedicada do sistema para o servidor Open ERP:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"O servidor Open ERP tem que usar uma conta dedicada para as suas operações, isto " +"para que a segurança do sistema não seja comprometida ao corrê-lo com " +"privilégios de superutilizador." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Por favor escolha o nome dessa conta." --- openerp-server-5.0.6.orig/debian/po/ja.po +++ openerp-server-5.0.6/debian/po/ja.po @@ -0,0 +1,37 @@ +# Japanese translation of openerp-server debconf templates. +# Copyright (C) 2009 Hideki Yamane +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-09 19:20+0900\n" +"Last-Translator: Hideki Yamane (Debian-JP) \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../openerp-servera.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Open ERP デーモン専用のシステムアカウント:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Open ERP サーバはその動作について専用のアカウントを使うようになっているため、管理" +"者特権で動作していてもシステムのセキュリティは侵害されません。" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "アカウントのユーザ名を選んでください。" --- openerp-server-5.0.6.orig/debian/po/gl.po +++ openerp-server-5.0.6/debian/po/gl.po @@ -0,0 +1,40 @@ +# Galizian translation of openerp-server debconf templates. +# Copyright (C) 2009 Marce Villarino +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-15 21:32+0200\n" +"Last-Translator: marce villarino \n" +"Language-Team: Galician \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 0.2\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Conta de usuario do sistema adicada ao servidor Open ERP:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"O servidor Open ERP debe empregar unha conta adicada a el para que a " +"seguridade do sistema non se poña en perigo ao executalo con privilexios de " +"administrador." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Escolla o nome de usuario desa conta." --- openerp-server-5.0.6.orig/debian/po/de.po +++ openerp-server-5.0.6/debian/po/de.po @@ -0,0 +1,39 @@ +# German translation of openerp-server debconf templates. +# Copyright (C) 2009 Kai Wasserbäch +# Copyright (C) 2009 Helge Kreutzmann +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-06 19:01+0200\n" +"Last-Translator: Helge Kreutzmann \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Eigenes Systemkonto für den Open ERP-Server:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Der Open ERP-Server muss ein eigenes Konto für den Betrieb verwenden, um die " +"Sicherheit des Systems nicht durch das Betreiben mit Superuser-Rechten zu " +"kompromittieren." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Bitte wählen Sie den Benutzernamen dieses Kontos." --- openerp-server-5.0.6.orig/debian/po/cs.po +++ openerp-server-5.0.6/debian/po/cs.po @@ -0,0 +1,39 @@ +# Czech translation of openerp-server debconf templates. +# Copyright (C) 2009 Vítězslav Kotrla +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-05-30 08:24+0000\n" +"PO-Revision-Date: 2009-06-21 08:20+0200\n" +"Last-Translator: Vítězslav Kotrla \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:1001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Vyhrazený systémový účet, pod kterým bude běžet Open ERP server:" + +#. Type: string +#. Description +#: ../openerp-server.templates:1001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Pokud by byl Open ERP server spuštěn se superuživatelskými oprávněními, mohlo by dojít " +"ke kompromitaci zabezpečení systému. Proto musí Open ERP server pro svoji činnost používat " +"vyhrazený neprivilegovaný účet." + +#. Type: string +#. Description +#: ../openerp-server.templates:1001 +msgid "Please choose that account's username." +msgstr "Zvolte prosím název totoho účtu." --- openerp-server-5.0.6.orig/debian/po/zh_CN.po +++ openerp-server-5.0.6/debian/po/zh_CN.po @@ -0,0 +1,37 @@ +# Simplified Chinese translation of openerp-server debconf templates. +# Copyright (C) 2009 Deng Xiyue +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-26 16:48+0800\n" +"Last-Translator: Deng Xiyue \n" +"Language-Team: Debian Chinese GB \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "指定操作 Open ERP 守护进程的专用系统帐户:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Open ERP 服务器必须使用一个专用的账户来进行操作,这样就不会因为使用超级用户权限运" +"行而破坏系统的安全。" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "请选择账户的用户名。" --- openerp-server-5.0.6.orig/debian/po/ru.po +++ openerp-server-5.0.6/debian/po/ru.po @@ -0,0 +1,41 @@ +# German translation of openerp-server debconf templates. +# Copyright (C) 2009 Sergey Alyoshin +# Copyright (C) 2009 Yuri Kozlov +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-08 21:08+0400\n" +"Last-Translator: Yuri Kozlov \n" +"Language-Team: Russian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%" +"10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Специально выделенная системная учётная запись для Open ERP службы:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Для улучшения безопасности системы Open ERP сервер должен использовать специально " +"выделенную учётную запись, а не запускаться с правами суперпользователя." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Укажите имя такой учётной записи." --- openerp-server-5.0.6.orig/debian/po/templates.pot +++ openerp-server-5.0.6/debian/po/templates.pot @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "" --- openerp-server-5.0.6.orig/debian/po/it.po +++ openerp-server-5.0.6/debian/po/it.po @@ -0,0 +1,39 @@ +# Italian translation of openerp-server debconf templates. +# Copyright (C) 2009 Vincenzo Campanella +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-26 08:52+0100\n" +"Last-Translator: Vincenzo Campanella \n" +"Language-Team: Italian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Account di sistema dedicato per il server di Open ERP:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Il server Open ERP deve utilizzare un account dedicato per eseguire le proprie " +"operazioni, in modo che la sicurezza del sistema non rischi di essere compromessa " +"eseguendolo con privilegi di superutente." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Scegliere il nome utente di tale account." --- openerp-server-5.0.6.orig/debian/po/fr.po +++ openerp-server-5.0.6/debian/po/fr.po @@ -0,0 +1,37 @@ +# French translation of openerp-server debconf templates. +# Copyright (C) 2009 Steve Petruzzello +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-26 01:12+0100\n" +"Last-Translator: Steve Petruzzello \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Identifiant dédié pour le serveur Open ERP:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Le serveur Open ERP doit être exécuté avec un identifiant spécifique, différent " +"du superutilisateur, afin de ne pas compromettre la sécurité du système." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Veuillez choisir cet identifiant." --- openerp-server-5.0.6.orig/debian/po/POTFILES.in +++ openerp-server-5.0.6/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] openerp-server.templates --- openerp-server-5.0.6.orig/debian/po/es.po +++ openerp-server-5.0.6/debian/po/es.po @@ -0,0 +1,40 @@ +# Spanish translation of openerp-server debconf templates. +# Copyright (C) 2009 Software in the Public Interest +# 2009 Fernando González de Requena +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server 5.0.1-0-2\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-03-30 22:35+0200\n" +"Last-Translator: Fernando González de Requena \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Cuenta del sistema dedicada para el servidor Open ERP:" + +#. Type: string +#. Description +#: ../openerp-server:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"El servidor de Open ERP debe utilizar una cuenta dedicada para su funcionamiento, " +"de tal modo que la seguridad del sistema no se vea comprometida por su " +"utilización con privilegios de administración." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Elija un nombre de usuario para esa cuenta." --- openerp-server-5.0.6.orig/debian/po/sv.po +++ openerp-server-5.0.6/debian/po/sv.po @@ -0,0 +1,39 @@ +# Swedish translation of openerp-server debconf templates. +# Copyright (C) 2009 Martin Bagge +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server\n" +"Report-Msgid-Bugs-To: openerp-serverpackages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-07 18:36+0100\n" +"Last-Translator: Martin Bagge \n" +"Language-Team: swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" +"X-Poedit-Language: Swedish\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Dedikerat systemkonto för Open ERP server:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Open ERP servern måste ha ett dedikerat konto för att fungera på ett säkert sätt, " +"att använda privilegier från en superanvändare är inte säkert." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Ange kontots användarnamn." --- openerp-server-5.0.6.orig/debian/po/fi.po +++ openerp-server-5.0.6/debian/po/fi.po @@ -0,0 +1,40 @@ +# Finnish translation of openerp-server debconf templates. +# Copyright (C) 2009 Esko Arajärvi +# This file is distributed under the same license as the openerp-server package. +# +msgid "" +msgstr "" +"Project-Id-Version: openerp-server\n" +"Report-Msgid-Bugs-To: openerp-server@packages.debian.org\n" +"POT-Creation-Date: 2009-03-26 07:45+0100\n" +"PO-Revision-Date: 2009-04-07 22:19+0300\n" +"Last-Translator: Esko Arajärvi \n" +"Language-Team: Finnish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Lokalize 0.3\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Dedicated system account for the Open ERP server:" +msgstr "Dedikoitu järjestelmätunnus Open ERP-taustaohjelman ajamiseen:" + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "" +"The Open ERP server must use a dedicated account for its operation so that the " +"system's security is not compromised by running it with superuser privileges." +msgstr "" +"Open ERP-palvelimen tulee käyttää dedikoitua tunnusta toiminnoissaan, jotta " +"järjestelmän turvallisuus ei vaarannu kuten käytettäessä " +"pääkäyttäjäoikeuksia." + +#. Type: string +#. Description +#: ../openerp-server.templates:2001 +msgid "Please choose that account's username." +msgstr "Valitse kyseisen tunnuksen nimi." --- openerp-server-5.0.6.orig/debian/local/openerp-server.conf +++ openerp-server-5.0.6/debian/local/openerp-server.conf @@ -0,0 +1,55 @@ +# /etc/openerp-server.conf(5) - configuration file for openerp-server(1) + +[options] +# Enable the debugging mode (default False). +verbose = False +debug_mode = False + +# The file where the server pid will be stored (default False). +#pidfile = /var/run/openerp.pid + +# The file where the server log will be stored (default False). +logfile = /var/log/openerp-server.log + +# The unix account on behalf openerp is running. +process_user = openerp + +# The IP address on which the server will bind. +# If empty, it will bind on all interfaces (default empty). +interface = localhost + +# The TCP port on which the server will listen (default 8069). +#port = 8070 + +# Enable debug mode (default False). +debug_mode = False + +# Launch server over https instead of http (default False). +secure = False + +# Specify the SMTP server for sending email (default localhost). +smtp_server = localhost + +# Specify the SMTP user for sending email (default False). +smtp_user = False + +# Specify the SMTP password for sending email (default False). +smtp_password = False + +# Specify the database name. +#db_name = openerp + +# Specify the database user name (default None). +db_user = openerp + +# Specify the database password for db_user (default None). +db_password = + +# Specify the database host (default localhost). +db_host = + +# Specify the database port (default None). +db_port = 5432 + +# Specify the price accuracy. +#price_accuracy =