summaryrefslogtreecommitdiff
path: root/src/mailman/model/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/model/user.py')
-rw-r--r--src/mailman/model/user.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mailman/model/user.py b/src/mailman/model/user.py
index f2a7c9d18..f037bdd48 100644
--- a/src/mailman/model/user.py
+++ b/src/mailman/model/user.py
@@ -46,13 +46,20 @@ class User(Model):
id = Int(primary=True)
real_name = Unicode()
password = Unicode()
+ _user_id = Unicode()
addresses = ReferenceSet(id, 'Address.user_id')
preferences_id = Int()
preferences = Reference(preferences_id, 'Preferences.id')
def __repr__(self):
- return '<User "{0}" at {1:#x}>'.format(self.real_name, id(self))
+ return '<User "{0.real_name}" ({0.user_id}) at {1:#x}>'.format(
+ self, id(self))
+
+ @property
+ def user_id(self):
+ """See `IUser`."""
+ return self._user_id
def link(self, address):
"""See `IUser`."""