Re: [web2py] Re: session.flash question

2017-01-05 Thread Anthony
It seems session.flash must be empty at that point, though hard to say why without seeing all the relevant code. On Thursday, January 5, 2017 at 11:52:33 AM UTC-5, Ramos wrote: > > it appears "empty" > anyway i changed it to test a more simpler approach so... > > > {{if session.flash:}} > *

Re: [web2py] Re: session.flash question

2017-01-05 Thread António Ramos
it appears "empty" anyway i changed it to test a more simpler approach so... {{if session.flash:}} ** * toastr.info <http://toastr.info>("popup message");* ** × {{=T("Notification")}}: {{=s

[web2py] Re: session.flash question

2017-01-05 Thread Anthony
> > *But this does not work!!* > > flash="{{=session.flash or 'empty'}}"; > > if (flash=="") > { > toastr.info(flash); > } > > > > how to fix this ? > What do you mean "does not work"? Please check the HTML source code in the browser -- does the correct va

Re: [web2py] Re: session.flash question

2017-01-05 Thread António Ramos
2017-01-05 12:54 GMT+00:00 Áureo Dias Neto : > flash="{{='N/A' if session.flash == None else session.flash}}"; does not work also if i just do toastr.info("{{=session.flash}}"); I always get the poput with "None" -- Resources: - http://web2py.com - http://web2py.com/book (Docum

Re: [web2py] Re: session.flash question

2017-01-05 Thread Áureo Dias Neto
Change 'flash="{{=session.flash or 'empty'}}";' to: flash="{{='N/A' if session.flash == None else session.flash}}"; 2017-01-05 10:40 GMT-02:00 António Ramos : > session.flash="Documento enviado ..." > redirect(URL(c="entities",f="list",user_signature=True)) > > *this works and shows "Documen

Re: [web2py] Re: session.flash question

2017-01-05 Thread António Ramos
session.flash="Documento enviado ..." redirect(URL(c="entities",f="list",user_signature=True)) *this works and shows "Documento enviado"* {{if session.flash:}} × {{=T("Notification")}}: {{=session.flash}} {{pass}} *But this

Re: [web2py] Re: session.flash question

2017-01-05 Thread Áureo Dias Neto
How you define 'session.flash'? 2017-01-05 10:04 GMT-02:00 António Ramos : > in fact this > > > toastr.info("{{=session.flash}}"); > > > > always produces a popup saying "None" > > why? > > > 2017-01-05 11:50 GMT+00:00 António Ramos : > >> *this works* >> >> {{if session.fl

[web2py] Re: session.flash question

2017-01-05 Thread António Ramos
in fact this toastr.info("{{=session.flash}}"); always produces a popup saying "None" why? 2017-01-05 11:50 GMT+00:00 António Ramos : > *this works* > > {{if session.flash:}} > >role="alert"> > aria-label="Close"> > × > >