Re: [Repoze-dev] flashing messages with bfg

2009-07-11 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alberto Valverde wrote: Iain Duncan wrote: Hey folks, wondering what the conventional way of flashing a message after a model update when using HTTPFound for redirects. Is this something that people roll-their-own for, or is there a standard to

[Repoze-dev] flashing messages with bfg

2009-07-08 Thread Iain Duncan
Hey folks, wondering what the conventional way of flashing a message after a model update when using HTTPFound for redirects. Is this something that people roll-their-own for, or is there a standard to follow? I'd like to make sure my crud app is as bfg'ish as possible so it can be useful to

Re: [Repoze-dev] flashing messages with bfg

2009-07-08 Thread Iain Duncan
On Wed, 2009-07-08 at 02:36 -0400, Chris McDonough wrote: We don't have a convention for flash. I've been remiss in seeing how the other frameworks implement this, but I *think* something like this would be closest: return render_template_to_response('some/template.pt', message='Updated')

Re: [Repoze-dev] flashing messages with bfg

2009-07-08 Thread Chris McDonough
On 7/8/09 2:54 AM, Iain Duncan wrote: On Wed, 2009-07-08 at 02:36 -0400, Chris McDonough wrote: We don't have a convention for flash. I've been remiss in seeing how the other frameworks implement this, but I *think* something like this would be closest: return