[trunk] [wishlist] use DeprecationWarnings to tag deprecated classes / methods / parameters

Bug #1052392 reported by Alexandre Fayolle - camptocamp
10
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 PendingDeprecationWarning classes.

The openerp framework should use these to flag deprecated classes, methods and method parameters.

Related branches

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
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

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
* https://code.launchpad.net/~c2c/openobject-addons/trunk-proposed-cleanups
* https://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.

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.