diff --git a/auth.py b/auth.py index 12744c5f4ee010dbb248f032cbfb1a653aa3441e..a5ca535734e4b72b8dafc8aa5e5b19703ce5c373 100644 --- a/auth.py +++ b/auth.py @@ -17,6 +17,9 @@ class User: self.obsolete = obsolete self.permanent = permanent + def __repr__(self): + return "<User({})>".format(self.username) + def summarize(self): return ":".join(( self.username, ",".join(self.groups), ",".join(self.all_groups), @@ -33,7 +36,7 @@ class User: timestamp = datetime.fromtimestamp(float(timestamp_str)) obsolete = obsolete_str == "True" groups = group_str.split(",") - all_groups = group_str.split(",") + all_groups = all_group_str.split(",") permanent = permanent_str == "True" return User(name, groups, all_groups, timestamp, obsolete, permanent)