Re: [web2py] Basic authentication user id

2011-03-07 Thread Jonathan Lundell
On Mar 7, 2011, at 9:23 AM, ron_m wrote: > I am guessing some more because I didn't trace the code but I think auth.user > eventually gets set in login_bare without setting auth.user_id but then do > standalone apps actually login? > I could only find 3 places where self.user_id is used in the cl

Re: [web2py] Basic authentication user id

2011-03-07 Thread ron_m
I am guessing some more because I didn't trace the code but I think auth.user eventually gets set in login_bare without setting auth.user_id but then do standalone apps actually login? I could only find 3 places where self.user_id is used in the class, the 2 places in the if else and as a test t

Re: [web2py] Basic authentication user id

2011-03-07 Thread Jonathan Lundell
On Mar 7, 2011, at 8:54 AM, ron_m wrote: > In the file gluon/tools.py line 808 in trunk the Auth class __init__ method > you will find these lines > > if auth and auth.last_visit and auth.last_visit\ > + datetime.timedelta(days=0, seconds=auth.expiration)\ > > re

Re: [web2py] Basic authentication user id

2011-03-07 Thread ron_m
In the file gluon/tools.py line 808 in trunk the Auth class __init__ method you will find these lines if auth and auth.last_visit and auth.last_visit\ + datetime.timedelta(days=0, seconds=auth.expiration)\ > request.now: self.user = auth.user

Re: [web2py] Basic authentication user id

2011-03-07 Thread Alexei Vinidiktov
On Mon, Mar 7, 2011 at 10:16 PM, Jonathan Lundell wrote: > On Mar 7, 2011, at 7:51 AM, Alexei Vinidiktov wrote: > > When I do basic authentication to a web2py app from a *desktop* app > (tried two test apps I wrote in Python and REALbasic) I can get the user's > first name and last name from the w

Re: [web2py] Basic authentication user id

2011-03-07 Thread Jonathan Lundell
On Mar 7, 2011, at 7:51 AM, Alexei Vinidiktov wrote: > When I do basic authentication to a web2py app from a *desktop* app (tried > two test apps I wrote in Python and REALbasic) I can get the user's first > name and last name from the web app, but I can't get his/her id. > > @service.xmlrpc