[web2py] Re: how to resend verification email?

2016-05-26 Thread Alexandru Asimionese
def resend_email_verification(): url = 'https://' + request.env.http_host+URL('default','user',args=['verify_email']) + '/'+ auth.user.registration_key mail.send(to=auth.user.email, subject=T('confirm your email'), message='click this link to finish creating your account:' + url) re

[web2py] registratoin fails with extra field

2015-11-13 Thread Alexandru Asimionese
Hi, i have the following code: db = DAL('mysql://user:pass@127.0.1/dbname', pool_size=8, check_reserved=['mysql'], lazy_tables=True, migrate=False) response.generic_patterns = ['*'] if request.is_local else [] import copy db._adapter.types = copy.copy(db._adapter.types) db._adapter.types[

[web2py] Re: registratoin fails with extra field

2015-11-13 Thread Alexandru Asimionese
Allready fixed, it's required and validator expects a value in "lang" field from at form submit, and i'm using custom form, and didn't include it. I created field mannualy beacause migration when you have a mysql database in most cases fails, especially auth_user table. Anyway thanks :) -- Res

[web2py] (2006, 'MySQL server has gone away')

2016-02-06 Thread Alexandru Asimionese
Hi folks, an error like this, everything worked fine, and suddenly Traceback (most recent call last): File "/home/awsmarkets/webapps/web2pyuwsgi/web2py/gluon/main.py", line 543, in wsgibase BaseAdapter.close_all_instances('rollback') File "/home/awsmarkets/webapps/web2pyuwsgi/web2py/gluon