On Tue, 2007-18-12 at 02:00 +0100, Alberto Valverde wrote:
> iain duncan wrote:
> > On Mon, 2007-17-12 at 21:34 +0100, Alberto Valverde wrote:
> >> Hi,
> >>
> >> I've just ported tg.redirect and tg.flash to TG2. I've lightly
> >> unittested it (and updated the unittests on the way so they work with
> >> latest Pylons-dev) and they seem to work but some "real-app" testing +
> >> feedback won't hurt at all (hint, hint ;).
> >>
> >> Some notes:
> >>
> >> 1) middleware.py should be updated to match the changes I made in the
> >> quickstart template, that is, httpexceptions' middleware should be
> >> stacked or else raising httpexceptions won't do any good. BTW, I wonder
> >> why this needs to be done at all and if pylons' abort() worked at all
> >> before the change? Any ideas why middleware.py didn't stack
> >> httpexceptions before?
> > 
> > Thanks for getting on that so fast!
> > 
> > I just did a wipe and fresh checkout of tg2 and tried redirect, but am
> > still getting a pylons error page.
> > 
> > (...)
> 
> Did you stack paste.httpexceptions' middleware?
> 
> There should be a line inside your project's middleware.py's make_app()
> like this one:
> 
> http://trac.turbogears.org/browser/trunk/tg/templates/turbogears/%2Bpackage%2B/config/middleware.py_tmpl#L66

I did a fresh from scratch install according to the install
instructions, so it has your altered middleware file in there. This
line, right?

# Stack httpexceptions middleware so redirect, abort, etc.. work
    # XXX: Why doesn't Pylons stack this internally?
    app = httpexceptions.make_middleware(app)

Iain



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to