class AccessControl: current_user = None ... def get_current_user(self): return self.current_user