<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/bin/osv/osv.py, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[IMP] openerp python module.</title>
<updated>2011-02-07T12:57:23+00:00</updated>
<author>
<name>Vo Minh Thu</name>
<email>vmt@openerp.com</email>
</author>
<published>2011-02-07T12:57:23+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f8572e5c602798f37c2a94d54ab5e3ac79ff0185'/>
<id>f8572e5c602798f37c2a94d54ab5e3ac79ff0185</id>
<content type='text'>
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] osv: _constraints can be inherited by redefining a constraint with the same name</title>
<updated>2011-01-17T09:47:50+00:00</updated>
<author>
<name>P. Christeas</name>
<email>xrg@hellug.gr</email>
</author>
<published>2011-01-17T09:47:50+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=814c4af299192cb34ae6aec81aad8fc963ba8d44'/>
<id>814c4af299192cb34ae6aec81aad8fc963ba8d44</id>
<content type='text'>
Indeed, when we define an expression like

class bar(osv.osv):
  _inherit = 'bar.bar'

  def _check_foo(self, cr, uid, ids, context):
      return True

  _constraints = [ (_check_foo, "Foo failed!", ['foo']) ]

... it means that _check_foo will be passed as an *object* to the model's
structure of _constraints. Therefore, it would be unequal and just append
the list of any existing constraints. So, an older (_check_foo, , ['foo'])
would always remain active using the previous code. This has to do with
the _check_foo being an unbound (ie. not inheritable) function.

Now, we check the /string name/ of the function, too. We say that if the
inherited class's constraint function has the same name "_check_foo", the
old ones shall be replaced.

Note: this MAY introduce unpredictable results, if several modules try
to override the same inherited constraint. There is no guaranteed order
of inheritance. Please avoid using this feature unless necessary.

lp bug: https://launchpad.net/bugs/700451 fixed

bzr revid: odo@openerp.com-20110117094750-4lyzx165f1z1zgl4</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Indeed, when we define an expression like

class bar(osv.osv):
  _inherit = 'bar.bar'

  def _check_foo(self, cr, uid, ids, context):
      return True

  _constraints = [ (_check_foo, "Foo failed!", ['foo']) ]

... it means that _check_foo will be passed as an *object* to the model's
structure of _constraints. Therefore, it would be unequal and just append
the list of any existing constraints. So, an older (_check_foo, , ['foo'])
would always remain active using the previous code. This has to do with
the _check_foo being an unbound (ie. not inheritable) function.

Now, we check the /string name/ of the function, too. We say that if the
inherited class's constraint function has the same name "_check_foo", the
old ones shall be replaced.

Note: this MAY introduce unpredictable results, if several modules try
to override the same inherited constraint. There is no guaranteed order
of inheritance. Please avoid using this feature unless necessary.

lp bug: https://launchpad.net/bugs/700451 fixed

bzr revid: odo@openerp.com-20110117094750-4lyzx165f1z1zgl4</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] osv.osv: fixed reference to osv pool, broken by refactoring of osv service</title>
<updated>2010-12-14T13:18:12+00:00</updated>
<author>
<name>Olivier Dony</name>
<email>odo@openerp.com</email>
</author>
<published>2010-12-14T13:18:12+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=b192bf4dd47c710725eb4b400da313c0612571bf'/>
<id>b192bf4dd47c710725eb4b400da313c0612571bf</id>
<content type='text'>
Fixes bug introduced by revision 3102 chs@openerp.com-20101213105104-jpctooc6j7yc8i8i

bzr revid: odo@openerp.com-20101214131812-oiiy1xv8582jh7ya</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes bug introduced by revision 3102 chs@openerp.com-20101213105104-jpctooc6j7yc8i8i

bzr revid: odo@openerp.com-20101214131812-oiiy1xv8582jh7ya</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] osv: the object pool is not a service anymore</title>
<updated>2010-12-13T10:51:04+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@openerp.com</email>
</author>
<published>2010-12-13T10:51:04+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=5bb14725d4534fe0e4f66ab4d9fdca0afd73b74e'/>
<id>5bb14725d4534fe0e4f66ab4d9fdca0afd73b74e</id>
<content type='text'>
bzr revid: chs@openerp.com-20101213105104-jpctooc6j7yc8i8i</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzr revid: chs@openerp.com-20101213105104-jpctooc6j7yc8i8i</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] osv.osv: code cleanup after merging previous patches</title>
<updated>2010-11-24T16:40:41+00:00</updated>
<author>
<name>Olivier Dony</name>
<email>odo@openerp.com</email>
</author>
<published>2010-11-24T16:40:41+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=276a54b0af93d1fdd45aeeb4e051b0d7704d560d'/>
<id>276a54b0af93d1fdd45aeeb4e051b0d7704d560d</id>
<content type='text'>
bzr revid: odo@openerp.com-20101124164041-760b4zoidv0omu6c</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzr revid: odo@openerp.com-20101124164041-760b4zoidv0omu6c</pre>
</div>
</content>
</entry>
<entry>
<title>OSV: a lint check fix</title>
<updated>2010-11-18T18:48:40+00:00</updated>
<author>
<name>P. Christeas</name>
<email>p_christ@hol.gr</email>
</author>
<published>2010-11-18T18:48:40+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=ac2c09908a50ae8c7b57157466effd35ec23ab9e'/>
<id>ac2c09908a50ae8c7b57157466effd35ec23ab9e</id>
<content type='text'>
bzr revid: p_christ@hol.gr-20101118184840-08li9h2ebfzdtxpy</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzr revid: p_christ@hol.gr-20101118184840-08li9h2ebfzdtxpy</pre>
</div>
</content>
</entry>
<entry>
<title>OSV: Fix callable _sql_constraint messages</title>
<updated>2010-11-18T18:46:43+00:00</updated>
<author>
<name>P. Christeas</name>
<email>p_christ@hol.gr</email>
</author>
<published>2010-11-18T18:46:43+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=41c9098ca994a3712bcdd0e6dc61805ed946b02d'/>
<id>41c9098ca994a3712bcdd0e6dc61805ed946b02d</id>
<content type='text'>
This fixes the support for callable sql_constraint messages, which have
always been wrong. It respects the (cr, uid, ids, context) arguments and
will fallback to Postgres's error if it cannot call.

Note that sql constraints are not properly explained when base_module_record
or audittrail are installed.

bzr revid: p_christ@hol.gr-20101118184643-8tnmj83b09kuvf1j</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the support for callable sql_constraint messages, which have
always been wrong. It respects the (cr, uid, ids, context) arguments and
will fallback to Postgres's error if it cannot call.

Note that sql constraints are not properly explained when base_module_record
or audittrail are installed.

bzr revid: p_christ@hol.gr-20101118184643-8tnmj83b09kuvf1j</pre>
</div>
</content>
</entry>
<entry>
<title>osv: Improve the translation logic for the osv.check wrapper</title>
<updated>2010-11-18T18:46:38+00:00</updated>
<author>
<name>P. Christeas</name>
<email>p_christ@hol.gr</email>
</author>
<published>2010-11-18T18:46:38+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d0dee320199662492c3779deef06c412238eec73'/>
<id>d0dee320199662492c3779deef06c412238eec73</id>
<content type='text'>
Done after bug [655783], the osv layer is too early to call the _().
Also, we cannot trust the cursor to perform a further SQL query on
it, since it carries the IntegrityError.

bzr revid: p_christ@hol.gr-20101118184638-2yrfpvx9har48h1g</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Done after bug [655783], the osv layer is too early to call the _().
Also, we cannot trust the cursor to perform a further SQL query on
it, since it carries the IntegrityError.

bzr revid: p_christ@hol.gr-20101118184638-2yrfpvx9har48h1g</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] osv: broader error messages when constraint violations occur</title>
<updated>2010-09-16T11:39:06+00:00</updated>
<author>
<name>Olivier Dony</name>
<email>odo@openerp.com</email>
</author>
<published>2010-09-16T11:39:06+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=6d6e8e725a31574b2b83a75745b5902bc8331432'/>
<id>6d6e8e725a31574b2b83a75745b5902bc8331432</id>
<content type='text'>
bzr revid: odo@openerp.com-20100916113906-vd9orn59s3s2t5ho</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzr revid: odo@openerp.com-20100916113906-vd9orn59s3s2t5ho</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] _read_flat mehthod corrected</title>
<updated>2010-09-09T11:02:11+00:00</updated>
<author>
<name>Anup (OpenERP)</name>
<email>ach@tinyerp.com</email>
</author>
<published>2010-09-09T11:02:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=245ace0a3bd42ad99e959abeb5a0947261a6d6ed'/>
<id>245ace0a3bd42ad99e959abeb5a0947261a6d6ed</id>
<content type='text'>
bzr revid: ach@tinyerp.com-20100909110211-6sbl74zfnca0hlpf</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bzr revid: ach@tinyerp.com-20100909110211-6sbl74zfnca0hlpf</pre>
</div>
</content>
</entry>
</feed>
