9678b25a9b
The concatenator tries to only work with bytes without ever wondering what is in the byte bucket: files are read to `str`, concatenated with `str` (via join) and returned as `str`, usually considered to be utf-8 encoded. It's the author's job to correctly encode files to utf-8. So far so good. On runbot, there's apparently an issue in some CSS files in some cases on the runbot: `web_dir` finds itself to be typed `unicode` (because it contains non-ascii characters? Not sure at all), as a result `re.sub` will decode the corresponding file data when trying to inject the dir as replacement and the CSS reader will return a `unicode` object. Then, when concat_files try to compute the checksum it will need bytes thus re-encode everything using the default codec (ascii) and the non-ascii character(s) will blow up the encoding with a UnicodeEncodeError. Solution: * Assume CSS files can contain non-ascii characters (they can, and do), decode them using `utf-8` to get `unicode` strings in the CSS reader * Inject web_dir as usual via replacement, this still yields a `unicode` object (a `str` web_dir will simply be decoded using the ASCII codec, a non-ascii web_dir should have been decoded to `unicode` using sys.getfilesystemencoding) * Cleanly re-encode evrything to utf-8, so that the code outside the reader only ever manipulates 8-bit "byte" strings bzr revid: xmo@openerp.com-20120405070711-vjyw8g4mge2goyik |
||
---|---|---|
addons | ||
bin | ||
debian | ||
doc | ||
history | ||
install | ||
openerp | ||
win32 | ||
.bzrignore | ||
LICENSE | ||
LICENSE.web | ||
MANIFEST.in | ||
Makefile | ||
README | ||
README.web | ||
babel.cfg | ||
gen_translations.sh | ||
gunicorn.conf.py | ||
logging.json | ||
npybabel.py | ||
openerp-server | ||
openerp-web | ||
openerp-web.cfg | ||
setup.cfg | ||
setup.nsi | ||
setup.py | ||
setup_rpm.sh |
README
About OpenERP ------------- OpenERP is an OpenSource/Free software Enterprise Resource Planning and Customer Relationship Management software. More info at: http://www.openerp.com Installation on Debian Ubuntu ----------------------------- Download the deb file and type: $ sudo dpkg -i <openerp-deb-filename> $ sudo apt-get install install -f Installation on Debian Ubuntu from nightly build ------------------------------------------------ Add the the apt repository deb http://nightly.openerp.com/6.1/deb/ ./ in your source.list and type: $ sudo apt-get update $ sudo apt-get install openerp Installation on RedHat, Fedora, CentOS -------------------------------------- Install the required dependencies: $ yum install python $ easy_install pip $ pip install ..... Install the openerp rpm $ rpm -i openerp-VERSION.rpm Installation on Windows ----------------------- Installation on MacOSX ----------------------- Setuping you first database --------------------------- Point your browser to http://localhost:8069/ and click "Manage Databases", the default master password is "admin". Detailed System Requirements ---------------------------- You need the following software installed: postgresql-client, python-dateutil, python-feedparser, python-gdata, python-ldap, python-libxslt1, python-lxml, python-mako, python-openid, python-psycopg2, python-pybabel, python-pychart, python-pydot, python-pyparsing, python-reportlab, python-simplejson, python-tz, python-vatnumber, python-vobject, python-webdav, python-werkzeug, python-xlwt, python-yaml, python-zsi For Luxembourg localization, you also need: pdftk (http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)