On 21 Dec 2012, at 2:13 PM, Luca <luca.de.alf...@gmail.com> wrote:
> I searched the code base, and I cannot find any place where an assignment 
> like: response.flash = session.flash appears. 
> Is this broken?  

It's in Session.connect:

        if self.flash:
            (response.flash, self.flash) = (self.flash, None)



> 
> On Friday, December 21, 2012 1:53:21 PM UTC-8, Luca wrote:
> I have this very simple code: 
> 
>         session.flash = T('The contest is still open to submissions.')
>         session.foo = T('pooh')
>         logger.debug('contest still open to submissions')
>         redirect(URL('default', 'index'))
> 
> on the default/index controller, I can see that session.foo is 'pooh', 
> session.flash is None (as it should), BUT request.flash is also None. 
> So no message gets flashed.  This with the most recent development version of 
> web2py (just fetched from github). 
> Is the logic behind session.flash somehow broken? 
> 


-- 



Reply via email to