replace 

auth.messages.reset_password = 'Hey ' + db.auth_user.username +  '  click 
on the link ...'

with

auth.messages.reset_password = 'Hey %s  click on the link ...' % db.
auth_user.username

On Tuesday, 4 June 2013 22:01:28 UTC-5, Rob_McC wrote:
>
> Hey..
>
> I want to customize the reset-password message, to in include the username,
>
>
> I get this error:
>
> cannot concatenate 'str' and 'Field' objects
>
> What am I missing?
>
>
>
> File: db.py
>
>
> auth.messages.reset_password = 'Hey ' + db.auth_user.username +  '  click 
> on the link http://'+request.env.http_host+URL('default','user',args=[
> 'reset_password'])+'/%(key)s to reset your password'
>
>
> Thanks 
> Rob
>
>
>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to