tahrir.utils.user module¶
- class tahrir.utils.user.User(ext)[source]¶
Bases:
User- property awarded_assertions¶
- property email¶
The user’s email.
- property is_admin¶
- property logged_in¶
Return
Trueif the user is logged in,Falseotherwise.
- property person¶
- tahrir.utils.user.get_person(id_or_nickname)[source]¶
Attempt to get a user by their id or nickname, returning None if we fail.
- tahrir.utils.user.get_user_badge_info(user)[source]¶
Returns a dictionary of the user badge information with serialized badges