d0863325a5
But for real, it's a real shitstorm in there. - Added context by making the init go through a function and not implicitly happen via imports - Fixup all context and contextless function mixups - splitup the models in sensible different files - give the dump of view functions in views/__init__.py their own file - add all routes via blueprints, not half of them - move the slack notifications function and class to its own file, no idea what it was doing in a views file in the first place.
17 lines
275 B
Python
17 lines
275 B
Python
class AnonymouseUser:
|
|
id = None
|
|
|
|
def is_active(self):
|
|
return False
|
|
|
|
def is_authenticated(self):
|
|
return False
|
|
|
|
def is_anonymous(self):
|
|
return True
|
|
|
|
def is_admin(self):
|
|
return False
|
|
|
|
def get_id(self):
|
|
return None
|