Hello,
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
@service.jsonrpc
def getUserName():
return
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
On Mon, Mar 7, 2011 at 10:16 PM, Jonathan Lundell jlund...@pobox.comwrote:
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
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
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)\
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
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
7 matches
Mail list logo