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

Re: [Repoze-dev] flashing messages with bfg

2009-07-11 Thread Alberto Valverde
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 > follow? I'd like to make sure my crud app is as bfg'ish as possible so

Re: [Repoze-dev] flashing messages with bfg

2009-07-11 Thread Hanno Schlichting
On Sat, Jul 11, 2009 at 7:21 PM, Tres Seaver wrote: > Iain Duncan wrote: >> At the moment I'm going for adding the message to the redirect url as a >> get var, ugly but easy to scale. If anyone has other suggestions for how >> to pass it on through the HTTPFound object, I'd love to hear them. I'm >

Re: [Repoze-dev] flashing messages with bfg

2009-07-11 Thread Chris McDonough
On 7/11/09 1:21 PM, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Iain Duncan wrote: >> On Wed, 2009-07-08 at 03:28 -0400, Chris McDonough wrote: >>> 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

Re: [Repoze-dev] flashing messages with bfg

2009-07-10 Thread Iain Duncan
On Wed, 2009-07-08 at 03:28 -0400, Chris McDonough wrote: > 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* someth

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 render_template_t

Re: [Repoze-dev] flashing messages with bfg

2009-07-07 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='Upd

Re: [Repoze-dev] flashing messages with bfg

2009-07-07 Thread Chris McDonough
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') And in the template: ${message} - C On 7/8/09 2:34 AM, Ia

[Repoze-dev] flashing messages with bfg

2009-07-07 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 others