import cherrypy
import webob
from turbogears import expose


class Controller(object):

    def __init__(self, wsroot):
        self._wsroot = wsroot

    @expose()
    def default(self, *args, **kw):
        req = webob.Request(cherrypy.request.wsgi_environ)
        res = self._wsroot._handle_request(req)
        cherrypy.response.header_list = res.headerlist
        cherrypy.status = res.status
        return res.body


def adapt(wsroot):
    return Controller(wsroot)

import cherrypy
import webob
from turbogears import expose


class Controller(object):

    def __init__(self, wsroot):
        self._wsroot = wsroot

    @expose()
    def default(self, *args, **kw):
        req = webob.Request(cherrypy.request.wsgi_environ)
        res = self._wsroot._handle_request(req)
        cherrypy.response.header_list = res.headerlist
        cherrypy.response.status = res.status
        return res.body


def adapt(wsroot):
    return Controller(wsroot)

Fix response status code transmission in the TG1 adapter
Fix response status code transmission in the TG1 adapter

--HG--
extra : rebase_source : 99de2b9beb0ebb61fcd87291faede89e150454fe
