2019-09-10 01:06:11 +02:00
|
|
|
"AnonymouseUser for people who are not logged in the normal way"
|
2022-05-20 22:46:56 +02:00
|
|
|
from typing import List
|
2019-09-10 01:06:11 +02:00
|
|
|
# pylint: disable=R0201,C0111
|
|
|
|
|
|
|
|
|
2019-08-28 03:46:04 +02:00
|
|
|
class AnonymouseUser:
|
|
|
|
id = None
|
|
|
|
|
2022-05-20 22:46:56 +02:00
|
|
|
def association_list(self) -> List[str]:
|
|
|
|
return []
|
|
|
|
|
2019-09-08 00:41:50 +02:00
|
|
|
def is_active(self) -> bool:
|
2019-08-28 03:46:04 +02:00
|
|
|
return False
|
|
|
|
|
2019-09-08 00:41:50 +02:00
|
|
|
def is_authenticated(self) -> bool:
|
2019-08-28 03:46:04 +02:00
|
|
|
return False
|
|
|
|
|
2019-09-08 00:41:50 +02:00
|
|
|
def is_anonymous(self) -> bool:
|
2019-08-28 03:46:04 +02:00
|
|
|
return True
|
|
|
|
|
2019-09-08 00:41:50 +02:00
|
|
|
def is_admin(self) -> bool:
|
2019-08-28 03:46:04 +02:00
|
|
|
return False
|
|
|
|
|
2019-09-08 00:41:50 +02:00
|
|
|
def get_id(self) -> None:
|
2019-08-28 03:46:04 +02:00
|
|
|
return None
|