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
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
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
3 matches
Mail list logo