Ejemplo n.º 1
0
    def logout(self):
        """
        Removes any alerts for the current owner, then refreshes the
        alert_key.
        """
        Alert.clear(self.owner)
        del self[:]

        self.owner = alert_key(self.session)