9cefa76988
Server-side, view extension is done via xpath. This includes "template" views full of HTML. HTML elements often have a bunch of classes, sometimes even semantic (!). XPath is generally great, but specifically lousy at dealing with space-separated values: in standard XPath 1.0 to know if an element has a class 'foo' the predicate is: contains(concat(' ', normalize-space(@class), ' '), ' foo ') and this has to be fully duplicated if there's a second class involved. Things are slightly better with EXSLT/XPath 2.0 and tokenize, but still not great: tokenize(@class, '\s+') = 'foo' and the equality check is very weird when unaware of XPath's evaluation rules. ``hasclass`` makes this much simpler to deal with: to get any ``foo`` node with the class ``bar`` is as simple as: //foo[hasclass('bar') and it can take multiple class, as with e.g. jquery it will return elements with all specified classes. Beware though, the predicate function will be called once for each element to check, since it's implemented in pure python and not profiled elements should be filtered as much as possible before this point. |
||
---|---|---|
addons | ||
debian | ||
doc | ||
history | ||
install | ||
openerp | ||
openerpcommand | ||
.gitignore | ||
LICENSE | ||
MANIFEST.in | ||
README.md | ||
checkout.sh | ||
oe | ||
openerp-gevent | ||
openerp-server | ||
openerp-wsgi.py | ||
setup.cfg | ||
setup.py | ||
setup_rpm.sh |
README.md
About Odoo
Odoo is suite of open source Business apps. More info at http://www.odoo.com
Installation
Setup/migration guide for employees
Migration from bazaar
If you have existing bazaar branches and want to move them to a git repository, there are several options:
- download http://nightly.openerp.com/move-branch.zip and run it with
python move-branch.zip -h
(for the help). It should be able to convert simple-enough branches for you (even if they have merge commits &al) - Extract the branch contents as patches and use
git apply
orgit am
to rebuild a branch from them - Replay the branch by hand
System Requirements
The dependencies are listed in setup.py
Debian/Ubuntu
Add the apt repository
deb http://nightly.openerp.com/7.0/deb/ ./
in your source.list and type:
$ sudo apt-get update
$ sudo apt-get install openerp
Or download the deb file and type:
$ sudo dpkg -i <openerp-deb-filename>
$ sudo apt-get install install -f
RedHat, Fedora, CentOS
Install the required dependencies:
$ yum install python
$ easy_install pip
$ pip install .....
Install the openerp rpm
$ rpm -i openerp-VERSION.rpm
Windows
Check the notes in setup.py
Setting up your database
Point your browser to http://localhost:8069/ and click "Manage Databases", the default master password is "admin".