On Friday, September 16, 2011 2:42:28 AM UTC-4, annet wrote:
>
> I don't get this to work, because I don't know how to set
> some_context.
>
some_context is just the dictionary of variables that you need to pass to
the template to be rendered, like you do here:
@auth.requires_membership('Admin')
def register_email(aanhef,last_name,email,username,password):
context=dict(aanhef=aanhef,last_name=last_name,username=username,password=password)
message=response.render('admincms/register_email.html',context)