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

Bug#600038: marked as done (snapshot.debian.org: [squeeze] DeprecationWarning: pylons.g is deprecated)



Your message dated Sun, 19 Feb 2012 13:35:50 +0100
with message-id <20120219123550.GA14009@anguilla.noreply.org>
and subject line Re: Bug#600038: snapshot.debian.org: [squeeze] DeprecationWarning: pylons.g is deprecated
has caused the Debian Bug report #600038,
regarding snapshot.debian.org: [squeeze] DeprecationWarning: pylons.g is deprecated
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
600038: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=600038
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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 ---
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 ---

Reply to: