Bug#600038: snapshot.debian.org: [squeeze] DeprecationWarning: pylons.g is deprecated
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
Reply to: