thanks for help.

Em sexta-feira, 15 de julho de 2011 05:25:47 UTC-3, J Zaragoza escreveu:
>
> In a view: 
>
> {{if auth.user_id:}} 
>     {{=H4(T('Welcome ') + db.auth_user[auth.user_id].first_name)}} 
> {{pass} 
>
>
>
> On 14 jul, 14:42, Anthony <[email protected]> wrote: 
> > On Thursday, July 14, 2011 1:03:24 AM UTC-4, weheh wrote: 
> > 
> > > How would one get auth.messages.logged_in to be something like 
> > > "Welcome Massimo"upon login? auth.user_id is None at the time the 
> > > auth.messages.logged_in is evaluated. 
> > 
> > There may be a better way, but maybe something like this: 
> > 
> > def dynamic_logged_in_message(form): 
> >     session.flash='Welcome %s' % auth.user.first_name 
> > auth.settings.login_onaccept = dynamic_logged_in_message 
> > 
> > Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to