[web2py] Re: Redis session error - latest web2py master

2019-11-15 Thread Jim S
Do you know much about sessions? Are the values all supposed to be binary? The .decode on the if to_native(rtn['unique_key']) == to_native(self.unique_key): was to convert it from binary to test against the string stored in self.unique_key. Also, this fix isn't working in my python 2

[web2py] Re: Redis session error - latest web2py master

2019-11-15 Thread Leonel Câmara
I haven tried it, but I think the best fix is not to make the decode work by putting the obviously missing parenthesis. The fix is simply to remove the .decode, because to_native should take care of it, so this: rtn = {to_native(k.decode): v for k, v in self.db.r_server.hgetall(key). items()}

[web2py] SQLFORM.grid in ajax function with signed urls

2019-11-15 Thread cdbaron
Hello I have a component that is loaded by ajax and this component has an SQLFORM.grid. This component has a variable in the url. For security reasons I want the ajax component to have the url signed. The problem is that the grid pagination links generate a wrong signed url. wrong signed url:

Re: [web2py] How to filter a referenced field in a for

2019-11-15 Thread Steve
Sorry for my late reply That is what i was looking for... thanks Op woensdag 6 november 2019 21:45:29 UTC+1 schreef Massimiliano: > > Try with: > > Is_empty_or(is_in_db(...)) > > Il giorno mer 6 nov 2019 alle 15:34 Steve > > ha scritto: > >> Hi, >> >> I have a SQLFORM which has 2 fields

[web2py] Re: Redis session error - latest web2py master

2019-11-15 Thread Jose C
Nice catch, Jim the .decode() on line 192. It appears to be working as expected now (at least in my use case). I am going to continue testing session functionality and will report if any further issues arise. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -