[web2py] Re: web2py 2.19.1 is OUT

2020-04-10 Thread 'Annet' via web2py-users
In this version of web2py I have the following lines of code in db.py from gluon.contrib.appconfig import AppConfig configuration = AppConfig(reload=True) When I add code to a module file and save the file I get the following error: nameError(“name ‘reload’ is not defined”) Why do I get this

[web2py] on_define and IS_IN_DB()

2020-04-10 Thread 'Annet' via web2py-users
I am not sure I understand the following paragraph in the book: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#on_define I have lazy_table = true and a Field('vertex_id', 'reference vertex', requires=IS_IN_DB(db, 'vtx_vertex.id', '%(id)s')) In the book it says: T

[web2py] Credential (email) encryption

2020-04-10 Thread Michele Serra
Hi, I use the email as the login credential, I tried to encrypt the email with db.auth_user.email.filter_in = lambda value : secure_dumps(value, enc_key) db.auth_user.email.filter_out = lambda value : secure_loads(value, enc_key) and it works well, in the database I see the encrypted data while