Zart: i see you have a clear vision forward on this. don't let me stand in your way of accomplishing this highly useful task.
Zart
well, unless you make me like vim, not happening
raowl joined the channel
kamalgill joined the channel
ronnix has quit
fabiobatalha joined the channel
raowl
a little question, if somebody could help me i appreciate it, i want this "remember me"functionality, something very tipical, i think must be made by millions, i dont see code example i know i can use custom atkauthentication class but i want something quick
event.request.session.cookie_expires = False inside a subscriber
dont know why isnt workig
it set it to false printing
but when i close and open the browser again its logged out
Zer000 joined the channel
Adniel joined the channel
wiggy has quit
Zer000
My site keeps bitching about a UnicodeDecodeError but from the traceback it looks like it's webob's fault: http://dpaste.com/31CWMS0 Google tells me that json data might not be utf-8 encoded, can someone please advice me?
supton has quit
walkman joined the channel
betabug
you have some info that isn't utf-8
s/info/input/
the interesting question would be to know what that input is, what encoding it is, and where it comes from
hmm, a login form?
anybody can input anything, utf-8 or not, I guess
raydeo
raowl: you can override the max_age of the cookie via the remember() function
remember(..., max_age=None)
jhauser has quit
betabug
so during validation it blows up when the input doesn't work as utf-8, not really a surprise
raowl
raydeo: thanks, let me try it
rodfersou joined the channel
yleclanche has quit
otter768 joined the channel
betabug
Zer000: I guess if you can't control the input, catch that decode error and display an error message
ronnix joined the channel
raowl
raydeo: didnt work out
TheCowboy has quit
closed open the browser i am logged out
Zart
sounds like raowl's app uses session cookies only
event.request.session.cookie_expires <-- this doesn't make sense to me
raydeo
the best way that I know to do this is to create a second cookie that you can use to do this
dowwie joined the channel
dowwie has quit
dowwie joined the channel
raowl
Zart: beaker session
raydeo
you really aren't supposed to change the session expiration per-user
ronnix has quit
raowl
thats the problem, the best way
i want an easy hack
raydeo
uh huh
raowl
i have much to do
no time to learn all that
Zart
"remember me" checkbox usually chooses whether to use session only cookie or persistent one