~openerp-dev/openobject-server/trunk-bug-795443-xrg

  • Committer: P. Christeas
  • Author(s): P. Christeas
  • Date: 2011-06-10 09:22:24 UTC
  • Revision ID: xrg@linux.gr-20110610092224-h2rvljwxwbz60zke
Tags: openerp-buildfail-1058-11699
orm: refactor orm.default_get() to avoid redundant computations

In default_get(), we need to evaluate the default value of each field,
in an order of resolution. The previous implementation did all the passes
regardless of the result of the previous step, and then dict.update()
the results.

Now, resolve from most-significant to least, trying only the remaining
fields at each step.
Also, have a provision for totally ignoring defaults from ir.values,
because they should not be considered when loading initial data.
(cherry picked from commit ad2cc4f179bbcfd455d8f08a8b7758ca375a1b89)
Filename Latest Rev Last Changed Committer Comment Size
..
bin 3346.1.4 13 years ago Vo Minh Thu [IMP] added bin/openerp-server.py as a wrapper for Diff
debian 1119.1.138 14 years ago P. Christeas Merge commit 'c18f2a7474c9' into mdv-gpl3-py26 Diff
doc 1 17 years ago pinky New trunk Diff
man 1 17 years ago pinky New trunk Diff
openerp 3346.1.1 13 years ago Vo Minh Thu [IMP] openerp python module. - Some logging code Diff
pixmaps 303 16 years ago ced SERVER: improve win32 installer Diff
python25-compat 1119.1.184 14 years ago P. Christeas Backport the HTTP server code from python 2.6 to 2 Diff
sql 1119.1.66 15 years ago P. Christeas SQL: help script to clean after missing ref data.. Diff
tools 2269 13 years ago Olivier Dony [ADD] new experimental utility script: xml2yml for Diff
win32 300 16 years ago ced KERNEL: add win32 compile Diff
.bzrignore 2942.1.8 13 years ago nvi-openerp [IMP] wip 250 bytes Diff Download File
LICENSE 3079 13 years ago Olivier Dony [IMP] license: renamed general license file, and i 34.1 KB Diff Download File
MANIFEST.in 3382 13 years ago Vo Minh Thu [MERGE] merged 6.0. 576 bytes Diff Download File
File openerp-server 3417.6.19 13 years ago Vo Minh Thu [REF] explicit service objects instanciation. 8.4 KB Diff Download File
README 2789 13 years ago Fabien Pinckaers modifs 664 bytes Diff Download File
rpminstall_sh.txt 1680.1.2 15 years ago Stephane Wirtel [FIX] generate the pyc for redhat 673 bytes Diff Download File
setup.cfg 2917 13 years ago Stephane Wirtel [FIX] Update the version of Python 354 bytes Diff Download File
setup.nsi 3373 13 years ago Vo Minh Thu [MERGE] merged the 6.0 branch. 14.9 KB Diff Download File
File setup.py 3452 12 years ago Vo Minh Thu [ADD] openerp/netsvc: use cgitb to format the exce 6.1 KB Diff Download File
setup.README 3359.2.9 13 years ago Vo Minh Thu [REF] renamed openerp-server.py to openerp-server. 1 KB Diff Download File
ssl-cert.cfg 3017.2.16 13 years ago P. Christeas setup: The ssl certs should *not* be distributed. 2 KB Diff Download File