[trunk] [wishlist] use DeprecationWarnings to tag deprecated classes / methods / parameters
Bug #1052392 reported by
Alexandre Fayolle - camptocamp
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Committed
|
Undecided
|
Alexandre Fayolle - camptocamp |
Bug Description
The Python standard library provides the ability to warn the developpers of deprecated features through the use of the warnings module and the DeprecationWarning and PendingDeprecat
The openerp framework should use these to flag deprecated classes, methods and method parameters.
Related branches
lp:~camptocamp/openobject-server/trunk-deprecate-osv_osv
Ready for review
for merging
into
lp:openobject-server
- Stephane Wirtel (OpenERP): Pending requested
-
Diff: 435 lines (+108/-30)11 files modifiedopenerp/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)
lp:~camptocamp/openobject-server/trunk-proposed-cleanups
Ready for review
for merging
into
lp:openobject-server
- Yannick Vaucher @ Camptocamp (community): Approve (code review)
- Xavier (Open ERP) (community): Approve
-
Diff: 1413 lines (+142/-196)40 files modifiedopenerp/addons/base/ir/ir_actions.py (+17/-27)
openerp/addons/base/ir/ir_attachment.py (+2/-2)
openerp/addons/base/ir/ir_config_parameter.py (+2/-2)
openerp/addons/base/ir/ir_cron.py (+2/-2)
openerp/addons/base/ir/ir_default.py (+2/-3)
openerp/addons/base/ir/ir_exports.py (+7/-9)
openerp/addons/base/ir/ir_filters.py (+2/-3)
openerp/addons/base/ir/ir_mail_server.py (+2/-2)
openerp/addons/base/ir/ir_model.py (+10/-11)
openerp/addons/base/ir/ir_rule.py (+2/-3)
openerp/addons/base/ir/ir_sequence.py (+3/-3)
openerp/addons/base/ir/ir_translation.py (+2/-2)
openerp/addons/base/ir/ir_ui_menu.py (+3/-3)
openerp/addons/base/ir/ir_ui_view.py (+5/-5)
openerp/addons/base/ir/ir_values.py (+2/-2)
openerp/addons/base/ir/wizard/wizard_menu.py (+2/-2)
openerp/addons/base/ir/workflow/workflow.py (+7/-13)
openerp/addons/base/module/module.py (+2/-2)
openerp/addons/base/module/wizard/base_export_language.py (+2/-2)
openerp/addons/base/module/wizard/base_import_language.py (+2/-2)
openerp/addons/base/module/wizard/base_language_install.py (+2/-2)
openerp/addons/base/module/wizard/base_module_configuration.py (+2/-3)
openerp/addons/base/module/wizard/base_module_import.py (+2/-2)
openerp/addons/base/module/wizard/base_module_scan.py (+2/-3)
openerp/addons/base/module/wizard/base_module_update.py (+2/-2)
openerp/addons/base/module/wizard/base_module_upgrade.py (+2/-2)
openerp/addons/base/module/wizard/base_update_translations.py (+2/-2)
openerp/addons/base/res/ir_property.py (+2/-3)
openerp/addons/base/res/res_bank.py (+9/-13)
openerp/addons/base/res/res_company.py (+3/-4)
openerp/addons/base/res/res_config.py (+10/-14)
openerp/addons/base/res/res_country.py (+3/-3)
openerp/addons/base/res/res_currency.py (+4/-7)
openerp/addons/base/res/res_lang.py (+2/-3)
openerp/addons/base/res/res_partner.py (+4/-4)
openerp/addons/base/res/res_request.py (+4/-7)
openerp/addons/base/res/res_users.py (+6/-7)
openerp/osv/orm.py (+1/-1)
openerp/tests/addons/test_uninstall/models.py (+2/-3)
openerp/tools/amount_to_text_en.py (+0/-11)
Changed in openobject-server: | |
status: | New → In Progress |
assignee: | nobody → Alexandre Fayolle @ camptocamp (alexandre-fayolle-c2c) |
summary: |
- [trunk] use DeprecationWarnings to tag deprecated classes / methods / - parameters + [trunk] [wishlist] use DeprecationWarnings to tag deprecated classes / + methods / parameters |
Changed in openobject-server: | |
assignee: | Alexandre Fayolle @ camptocamp (alexandre-fayolle-c2c) → nobody |
assignee: | nobody → Alexandre Fayolle @ camptocamp (alexandre-fayolle-c2c) |
Changed in openobject-server: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
I just linked 3 branches to this wishlist bug report:
* https:/ /code.launchpad .net/~c2c/ openobject- server/ trunk-deprecate -osv_osv : this branch implements the change described in the report /code.launchpad .net/~c2c/ openobject- addons/ trunk-proposed- cleanups /code.launchpad .net/~c2c/ openobject- server/ trunk-proposed- cleanups : these two branches remove the deprecation warnings caused by creating models by subclassing osv.osv and such.
* https:/
* https:/