summaryrefslogtreecommitdiff
path: root/src/mailman/model/user.py
diff options
context:
space:
mode:
authorBarry Warsaw2011-03-18 15:01:57 -0400
committerBarry Warsaw2011-03-18 15:01:57 -0400
commitdee26f391da59c68a23f8fb960dff9ebd879e916 (patch)
tree9ca545beecf73f7cdaeff7ffd065ccb4dafd72ee /src/mailman/model/user.py
parentef3a4a87e2c0f4b640e31afc4828d2edbd005846 (diff)
downloadmailman-dee26f391da59c68a23f8fb960dff9ebd879e916.tar.gz
mailman-dee26f391da59c68a23f8fb960dff9ebd879e916.tar.zst
mailman-dee26f391da59c68a23f8fb960dff9ebd879e916.zip
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`."""