Re: [web2py] Re: p4web auth issues

2020-05-28 Thread Oasis Agano
By the way reinstalling the app solved another auth problem i had with an instance that had been idle for a few years. I think there is something strange with auth that is solved with reinstalling the app. Anyway thank you On Monday, February 24, 2020 at 8:56:12 PM UTC+9, Maurice Waka wrote: >

Re: [web2py] Re: p4web auth issues

2020-02-24 Thread Maurice Waka
Working now. I had to reinstall the app. Regards On Monday, February 24, 2020 at 12:58:10 PM UTC+3, Val K wrote: > > get_user(), not get.user() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: p4web auth issues

2020-02-24 Thread Val K
get_user(), not get.user() -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

Re: [web2py] Re: p4web auth issues

2020-02-24 Thread Maurice Waka
Something is not right... Now I get this error: Traceback (most recent call last): File "/home/maurice/py4web/py4web/core.py", line 551, in wrapper ret = func(*func_args, **func_kwargs) File "/home/maurice/py4web/py4web/core.py", line 512, in wrapper ret = func(*args, **kwargs) File

Re: [web2py] Re: p4web auth issues

2020-02-23 Thread Maurice Waka
Thanks a lot. Regards On Mon, Feb 24, 2020, 06:14 Scott Hunter wrote: > user = auth.get.user()['first_name'] > > On Sunday, February 23, 2020 at 9:23:06 PM UTC-5, Lovedie JC wrote: >> >> Thanks. >> Before you replied I had tried : >> user = auth.get.user()[first_name] >> >> With an error..

Re: [web2py] Re: p4web auth issues

2020-02-23 Thread Scott Hunter
user = auth.get.user()['first_name'] On Sunday, February 23, 2020 at 9:23:06 PM UTC-5, Lovedie JC wrote: > > Thanks. > Before you replied I had tried : > user = auth.get.user()[first_name] > > With an error.. 'first_name' is not defined > Regards > > On Mon, Feb 24, 2020, 02:02 Val K > wrote: >

Re: [web2py] Re: p4web auth issues

2020-02-23 Thread Lovedie JC
Thanks. Before you replied I had tried : user = auth.get.user()[first_name] With an error.. 'first_name' is not defined Regards On Mon, Feb 24, 2020, 02:02 Val K wrote: > `auth` in py4web is no the same as in web2py > to get user-record you should > ... > def index(): > user =