# HG changeset patch # User Sylvain Thénault # Date 1377786033 -7200 # Node ID 90b8c7a7e205e041f9c564f6c2a8af723ee3fa96 # Parent 762a331db7414583af9e31c6497c3ecece7e4f48 [deprecation] add (approximate) version number to deprecation message and set proper stacklevel diff -r 762a331db741 -r 90b8c7a7e205 web/application.py --- a/web/application.py Thu Aug 29 12:55:27 2013 +0200 +++ b/web/application.py Thu Aug 29 16:20:33 2013 +0200 @@ -1,4 +1,4 @@ -# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of CubicWeb. @@ -455,8 +455,8 @@ req.update_search_state() result = controller.publish(rset=rset) except StatusResponse as ex: - warn('StatusResponse is deprecated use req.status_out', - DeprecationWarning) + warn('[3.16] StatusResponse is deprecated use req.status_out', + DeprecationWarning, stacklevel=2) result = ex.content req.status_out = ex.status except Redirect as ex: