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