[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#600038: snapshot.debian.org: [squeeze] DeprecationWarning: pylons.g is deprecated



well -- it seems to remain in 

commit 59cbfa3bdeeba65e3dd4f032308bb8117947837a
Author: Peter Palfrader <peter@palfrader.org>
Date:   Mon Jan 17 18:01:27 2011 +0100

may be not triggered by your use (or warnings are suppressed?), but it
remains the fact that g is imported:

$> grep 'from pylons' ./web/app/snapshot/controllers/package.py | head -1
from pylons import request, response, session, tmpl_context as c, g, config

and is still would trigger the warning:

$> python -c 'from pylons import g; print g.keys()'    
-c:1: DeprecationWarning: pylons.g is deprecated. Your project should import pylons.app_globals If desired, it can be imported as 'g', but its recommended to refer to it as app_globals for clarity

with pylons 0.10-1

On Mon, 17 Jan 2011, Peter Palfrader wrote:

> On Tue, 12 Oct 2010, Yaroslav Halchenko wrote:

> > on squeeze with python-pylons 0.10-1  I observe DeprecationWarnings:
> > ==> error.log <==
> > [Tue Oct 12 22:25:58 2010] [error] /srv/snapshot-neuro.debian.net/web-app/lib/python2.6/site-packages/snapshot/controllers/package.py:126: DeprecationWarning: pylons.g is deprecated. Your project should import
> > pylons.app_globals If desired, it can be imported as 'g', but its recommended to refer to it as app_globals for clarity
> > [Tue Oct 12 22:25:58 2010] [error]   sourcefiles = g.shm.packages_get_source_files(self._db(), source, version)
> > [Tue Oct 12 22:25:58 2010] [error] /srv/snapshot-neuro.debian.net/web-app/lib/python2.6/site-packages/snapshot/controllers/package.py:127: DeprecationWarning: pylons.g is deprecated. Your project should import
> > pylons.app_globals If desired, it can be imported as 'g', but its recommended to refer to it as app_globals for clarity
> > [Tue Oct 12 22:25:58 2010] [error]   binpkgs = g.shm.packages_get_binpkgs_from_source(self._db(), source, version)

> So, sibelius is now also squeeze.  Any idea how we can reproduce these
> warnings?

> Cheers,
> weasel
-- 
=------------------------------------------------------------------=
Keep in touch                                     www.onerussian.com
Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic



Reply to: