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
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()}
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:
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
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)
-
5 matches
Mail list logo