def setUser(self, user):
        prevUser = self._user
        if (user == prevUser) or (user is not None and user == prevUser):
            return

        self._user = user

        event = UserChangeEvent(self, user, prevUser)
        for l in self._userChangeListeners:
            l.applicationUserChanged(event)

        for callback, args in self._userChangeCallbacks:
            callback(event, *args)
Sets the user of the application instance. An application instance
dataset/ETHPy150Open rwl/muntjac/muntjac/application.py/Application.setUser