--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: snapshot.debian.org: [squeeze] DeprecationWarning: pylons.g is deprecated
- From: Yaroslav Halchenko <debian@onerussian.com>
- Date: Tue, 12 Oct 2010 22:06:15 -0400
- Message-id: <20101013020615.17698.45820.reportbug@novo.onerussian.com>
Package: snapshot.debian.org
Severity: minor
Per request, here is the official bug report:
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)
[Tue Oct 12 22:25:58 2010] [error] /srv/snapshot-neuro.debian.net/web-app/lib/python2.6/site-packages/snapshot/controllers/package.py:138: 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] binpkg['files'] = map(lambda x: x['hash'], g.shm.packages_get_binary_files_from_id(self._db(), binpkg['binpkg_id']))
[Tue Oct 12 22:25:58 2010] [error] /srv/snapshot-neuro.debian.net/web-app/lib/python2.6/site-packages/snapshot/controllers/package.py:143: 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] fileinfo[hash] = g.shm.packages_get_file_info(self._db(), hash)
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (901, 'unstable'), (900, 'testing'), (300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--- End Message ---
--- Begin Message ---
- To: Yaroslav Halchenko <yoh@debian.org>
- Cc: 600038-done@bugs.debian.org
- Subject: Re: Bug#600038: snapshot.debian.org: [squeeze] DeprecationWarning: pylons.g is deprecated
- From: Peter Palfrader <weasel@debian.org>
- Date: Sun, 19 Feb 2012 13:35:50 +0100
- Message-id: <20120219123550.GA14009@anguilla.noreply.org>
- In-reply-to: <20110119141505.GP8143@anguilla.noreply.org>
- References: <20101013020615.17698.45820.reportbug@novo.onerussian.com> <20110117173244.GA5224@anguilla.noreply.org> <20110117190330.GM27814@onerussian.com> <20110119141505.GP8143@anguilla.noreply.org>
On Wed, 19 Jan 2011, Peter Palfrader wrote:
> On Mon, 17 Jan 2011, Yaroslav Halchenko wrote:
>
> > 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
>
> Right, I now managed to see if it I run it with paster. Not when I run
> stuff from apache tho. Thanks.
Fixed a couple deprecation warnings in commits
b17ddb85b09f787355552d905bb7abec27437d73 ff.
Cheers,
weasel
--
| .''`. ** Debian **
Peter Palfrader | : :' : The universal
http://www.palfrader.org/ | `. `' Operating System
| `- http://www.debian.org/
--- End Message ---