Verify email message seams to only accept username, key and link.

What if I want to pass another variable?

My current message is:


auth.messages.verify_email = re.compile('(\%)[^(]').sub('%%', 
response.render('emails/standard.html', dict(message=T('Welcome %(name)s! 
Click on the link %(link)s to verify your email'))))


And I get the following error:

Traceback (most recent call last):
  File "/home/franciscocosta/www/web2py/gluon/restricted.py", line 217, in 
restricted
    exec ccode in environment
  File 
"/home/franciscocosta/www/web2py/applications/chique/controllers/default.py" 
<https://localhost/admin/edit/chique/controllers/default.py>, line 403, in 
<module>
  File "/home/franciscocosta/www/web2py/gluon/globals.py", line 372, in <lambda>
    self._caller = lambda f: f()
  File 
"/home/franciscocosta/www/web2py/applications/chique/controllers/default.py" 
<https://localhost/admin/edit/chique/controllers/default.py>, line 61, in user
    form = auth()
  File "/home/franciscocosta/www/web2py/gluon/tools.py", line 1302, in __call__
    return getattr(self, args[0])()
  File "/home/franciscocosta/www/web2py/gluon/tools.py", line 2567, in register
    username=form.vars[username])):
KeyError: 'name'


Because I what to welcome the name and not the username. Can we make this 
more flexible?

-- 
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/groups/opt_out.

Reply via email to