Go to file
Xavier Morel ac282e0294 [FIX] unsafe listification of weakref in Python < 2.7.4
Fixes #966

* As a preallocation optimization, ``list()`` calls ``__len__`` on its
  parameter if it's available
* Before Python 2.7.4, WeakSet has a bug[0] where ``len()`` is unsafe: it is
  done by iteration and weakrefs may be removed from the underlying set during
  the iteration

As a result, the safety feature of listifying a WeakSet to ensure we have
strong refs on all items during iteration may blow up.

Wrapping the weakset in a ``iter()`` makes ``__len__()`` invisible and ensures
we're within the IterationGuard[1].

Which now that I think about it means we *should* be able to safely iterate
weaksets in the first place and may not have needed to listify them...

[0] http://bugs.python.org/issue14159
[1] http://hg.python.org/cpython/file/b6acfbe2bdbe/Lib/_weakrefset.py#l58
2014-07-07 13:51:53 +02:00
addons Merge pull request #967 from xmo-odoo/master-id-type-xmo 2014-07-07 13:23:50 +02:00
debian Added required python-pypdf package 2014-07-02 18:10:48 +02:00
doc [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
openerp [FIX] unsafe listification of weakref in Python < 2.7.4 2014-07-07 13:51:53 +02:00
setup [FIX] setup missing file for windows nsi 2014-06-23 13:20:19 +02:00
.gitignore [MERGE] forward port of branch saas-3 up to 7dd6954 2014-06-03 19:14:22 +02:00
CONTRIBUTING.md Update CONTRIBUTING.md 2014-06-24 09:44:11 +02:00
LICENSE cleanup repo root 2014-05-15 10:43:02 +02:00
MANIFEST.in [FIX] move back setup to root 2014-06-23 12:50:57 +02:00
README.md [FIX] README: correct build status image URL. 2014-06-12 12:31:32 +02:00
odoo.py [FIX] odoo.py dont force push simple 2014-06-30 11:22:22 +02:00
openerp-gevent restore the original gevent detection 2013-09-10 01:19:46 +02:00
openerp-server openerp apps main moved to cli ready for new commands 2012-11-27 01:55:13 +01:00
openerp-wsgi.py [FIX] wsgi deployement with openerp-wsgi.py 2014-03-07 21:00:55 +01:00
setup.cfg [FIX] move back setup to root 2014-06-23 12:50:57 +02:00
setup.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00

README.md

Build Status

Odoo

Odoo is a suite of web based open source business apps. More info at http://www.odoo.com

The easiest way to play with it is the Odoo free trial, email registration is NOT required, use the "skip this step" link on the registration page to skip it.

Getting started with Odoo development

If you are a developer type the following command at your terminal [1]:

wget -O- https://raw.githubusercontent.com/odoo/odoo/master/odoo.py | python

Then follow the developer tutorial

[1] You may want to check the content of the odoo.py file before executing it.

Packages, tarballs and installers

  • Debian packages

    Add this apt repository to your /etc/apt/sources.list file

      deb http://nightly.openerp.com/8.0/deb/ ./
    

    Then type:

      $ sudo apt-get update
      $ sudo apt-get install odoo
    
  • Source tarballs

  • Windows installer

  • RPM package

For Odoo employees

To add the odoo-dev remote use this command:

$ ./odoo.py setup_git_dev

To fetch odoo merge pull requests refs use this command:

$ ./odoo.py setup_git_review