[Python-modules-team] Bug#575313: @expose("json") does not work anymore

Enrico Zini enrico at debian.org
Wed Mar 24 21:00:54 UTC 2010


Package: python-turbogears2
Version: 2.0.3-2
Severity: normal

Hello,

again, thanks for maintaining TurboGears2.

It looks like "@expose("json")" stopped working. How to reproduce:

 1. paster quickstart foo
 2. cd foo
 2. $EDITOR foo/controllers/root.py 
 3. add this method:

    @expose("json")
    def foo(self):
        return dict(r="foo")

 4. paster setup-app development.ini
 5. paster serve development.ini

Visit http://localhost:8080/foo.

I get this DeprecationWarning on stderr:

   /usr/lib/pymodules/python2.5/tg/controllers.py:182: DeprecationWarning: pylons.buffet is deprecated and will be removed in Pylons 1.0 entirely. The new render functions should be used instead.
     response = self._render_response(controller, output)
 
And this wonderfully surreal error:

TypeError: No object (name: buffet) has been registered for this thread

(with a very long stack trace involving a large amount of functions,
modules, wrappers, frameworks, middlewares, factories and whathaveyou
that I swear I've never heard before).


Ciao,

Enrico

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-turbogears2 depends on:
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-genshi                 0.5.1-2+b1 Python XML-based template engine
ii  python-pylons                 0.10~b1-1  Python web framework emphasizing f
ii  python-repoze.tm2             1.0a4-2    Zope-like transaction manager via 
ii  python-repoze.what-plugins    20090531-2 authorization framework for Python
ii  python-support                1.0.7      automated rebuilding support for P
ii  python-toscawidgets           0.9.7.2-1  Python framework for building reus
ii  python-turbojson              1.2.1-4    Plugin to use JSON templates in Py
ii  python-weberror               0.10.2-1   Python web error handling and exce
ii  python-webflash               0.1a9-3    Portable flash messages for Python

Versions of packages python-turbogears2 recommends:
ii  python-pysqlite2              2.5.5-3+b1 Python interface to SQLite 3
ii  python-tg.devtools            2.0.2-1    developer tools for the TurboGears

Versions of packages python-turbogears2 suggests:
pn  python-elixir                 <none>     (no description available)

-- no debconf information





More information about the Python-modules-team mailing list