[web2py] Re: Using CRYPT()

2018-10-15 Thread Константин Комков
Anthony, thank you! суббота, 13 октября 2018 г., 0:11:16 UTC+3 пользователь Anthony написал: > > >> if >> form.process(formname='form',onvalidation=check_agreement).accepted: >> #How can I get hash and maybe random salt HERE??? >> > > request.vars.password is the raw data sent from the br

[web2py] Re: just for the records: API rest with basic auth

2018-10-15 Thread Dave S
On Sunday, October 14, 2018 at 7:05:56 AM UTC-7, Jaime Sempere wrote: > > Hi, > > I have had a lot of problems to set up an API REST with basic auth, > finally I have used the next code, I left it here for anyone that may need > it: > > from gluon.serializers import json > auth.settings.allow_b

Re: [web2py] Help needed with web2py-book app

2018-10-15 Thread Nico Zanferrari
Thank you all, I've finally resolved by using io.open() for the encode problem, and by putting the message in the redirect for bypassing the session.forget() command. Nico Il giorno ven 12 ott 2018 alle ore 21:34 Dave S ha scritto: > > > On Friday, October 12, 2018 at 2:52:44 AM UTC-7, Nico Z

[web2py] Re: searchable=True

2018-10-15 Thread Andrea Fae'
thank you very much Anthony. You are SUPER. Il giorno lunedì 15 ottobre 2018 14:31:28 UTC+2, Anthony ha scritto: > > def custom_search(fields, keywords): > [generate a DAL query based on fields and keywords] > return query # Will eventually be used like db(query).select(...) > > grid = SQL

[web2py] Re: searchable=True

2018-10-15 Thread Anthony
def custom_search(fields, keywords): [generate a DAL query based on fields and keywords] return query # Will eventually be used like db(query).select(...) grid = SQLFORM.grid(..., searchable=custom_search) The "fields" argument is a list of the DAL field objects from the table used to ge