Merge lp:~camptocamp/openobject-server/trunk-deprecate-osv_osv into lp:openobject-server
Status: | Needs review |
---|---|
Proposed branch: | lp:~camptocamp/openobject-server/trunk-deprecate-osv_osv |
Merge into: | lp:openobject-server |
Diff against target: |
435 lines (+108/-30) 11 files modified
openerp/loglevels.py (+3/-4) openerp/modules/module.py (+4/-0) openerp/netsvc.py (+7/-0) openerp/osv/fields.py (+7/-4) openerp/osv/orm.py (+34/-11) openerp/osv/osv.py (+16/-6) openerp/sql_db.py (+6/-3) openerp/tools/config.py (+5/-1) openerp/tools/convert.py (+3/-1) openerp/tools/deprecate.py (+19/-0) openerp/tools/misc.py (+4/-0) |
To merge this branch: | bzr merge lp:~camptocamp/openobject-server/trunk-deprecate-osv_osv |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stephane Wirtel (OpenERP) | Pending | ||
Review via email: mp+124874@code.launchpad.net |
Description of the change
use warnings to flag deprecated features
* adds a deprecated decorator to flag methods and functions
* added a new metaclass for deprecated models (osv.osv, osv.osv_memory...)
* use warnings.warn explicitely in some parts of the core framework where comments told that something was deprecated
* added a new command line option to direct the warnings to the logs (default), stderr or hide them completely
Unmerged revisions
- 4450. By Alexandre Fayolle - camptocamp
-
[MRG] updated to latest trunk
- 4449. By Alexandre Fayolle @ camptocamp <email address hidden>
-
[MRG] updated to current trunk
- 4448. By Alexandre Fayolle @ camptocamp <email address hidden>
-
[MRG] from trunk
- 4447. By Alexandre Fayolle @ camptocamp <email address hidden>
-
[MRG] from trunk
- 4446. By Alexandre Fayolle @ camptocamp <email address hidden>
-
[FIX] do not regiser the deprecated base classes
- 4445. By Alexandre Fayolle @ camptocamp <email address hidden>
-
[IMP] add some DeprecationWarnings where comments say a method/class is deprecated
- 4444. By Alexandre Fayolle @ camptocamp <email address hidden>
-
[FIX] move deprecated_model metaclass from tools.deprecate to osv.orm
this avoids circular imports via osv.osv
- 4443. By Alexandre Fayolle @ camptocamp <email address hidden>
-
[IMP] control the display of DeprecationWarning from the command line
- 4442. By Alexandre Fayolle @ camptocamp <email address hidden>
-
[FIX] fix the deprecation warning in osv.osv
- 4441. By Alexandre Fayolle @ camptocamp <email address hidden>
-
[IMP] added openerp.
tools.deprecate with some utilities to deprecate classes and methods
use these utilities to deprecate osv.osv, osv.osv_memory and osv.osv_abstract
updated the MP to the lastest trunk