Are you using the default layout.html? If not, is there anything like
{{=response.falsh or 'no flash'}} in the layout?

On Sep 16, 11:23 am, Arvind <[email protected]> wrote:
> hello,
>
> I have a sample function...... what will response.flash do ?  I do not
> see any output from either the if or the else statement.
>
> def newform():
>     form = FORM("your name:",
>                  INPUT(_name="yourname",requires=IS_NOT_EMPTY()),
>                  INPUT(_type="submit"))
>     if form.accepts(request.vars,session):
>         response.flash = "hello " + form.vars.yourname
>     else:
>         response.flash = "ERROR !!!!"
>     return dict(form=form)
>
> I have the following style sheets and javascripts included. also,
> there is a huge chunk of javascript within the page.
>
>     <link href="/ehlo/static/base.css" type="text/css"
> rel="stylesheet" media="screen,projection,print" />
>     <link href="/ehlo/static/calendar.css" type="text/css"
> rel="stylesheet" media="screen,projection,print" />
>
> <link href="/ehlo/static/calendar.css" rel="stylesheet" type="text/
> css" media="screen" charset="utf-8" />
> <script src="/ehlo/static/jquery.js" type="text/javascript"></script>
>
> <script src="/ehlo/static/calendar.js" type="text/javascript"
> charset="utf-8"></script>
>
> thanks
> Arvind
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to