17 Jan
2019
17 Jan
'19
4:45 p.m.
user_manager = getUtility(IUserManager) u = user_manager.get_user('aperson@example.com') u.addresses[0].display_name = "Anne" commit()
It seems this method updates the display_name for the user across all lists. Is there a way to update just a single instance of "member" of a list rather than the site-wide user?
I've tried this:
mailman shell -l test@example.com
mem = m.members.get_member('a@example.com') mem <Member: a@example.com on test@example.com as MemberRole.member> mem.display_name 'Anne' mem.display_name = "Anne P" Traceback (most recent call last): File "<console>", line 1, in <module> AttributeError: can't set attribute