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:
>
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)
- https://code.google.com/p/
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
"web
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 "apps/_s
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.. 'firs
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:
>
>
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 = auth.get_user
`auth` in py4web is no the same as in web2py
to get user-record you should
...
def index():
user = auth.get_user()
On Sunday, February 23, 2020 at 8:47:46 PM UTC+3, Maurice Waka wrote:
>
>
> import os
> import datetime as dt
> from datetime import datetime, timedelta, date
> from .common im
import os
import datetime as dt
from datetime import datetime, timedelta, date
from .common import db, session, T, cache, auth, logger, authenticated,
unauthenticated
from py4web import action, request, DAL, Field, Session, Cache, user_in,
abort, redirect, URL, Field
from py4web.utils.auth impo
Show your code, please
--
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
"web2py-
Hi
I have this with the same error:
from .common import db, session, T, cache, auth, logger, authenticated,
unauthenticated
from py4web.utils.auth import Auth
On Sunday, February 23, 2020 at 4:38:25 PM UTC+3, Ruslan Gareev wrote:
>
> Hi! Looks like no import of auth
>
> воскресенье, 23 февраля
Hi! Looks like no import of auth
воскресенье, 23 февраля 2020 г., 7:28:10 UTC+5 пользователь Maurice Waka
написал:
>
> Using this code,
>
> File "apps/_scaffolds/controllers.py", line 82, in index
> db.posts.insert(message="Welcome "+auth_user.first_name+'.'+' Thank you for
> signing in with us
12 matches
Mail list logo