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?

2) To display the flash, tg.get_flash() should be called in master.html.
The tg namespace should be imported so this is available. A patch won't
hurt :)

The implementation is kinda hurried and quite rudimentary... but its a
start :)

Gotta run now...
Alberto

--~--~---------~--~----~------------~-------~--~----~
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