On 1/16/19 7:24 AM, Nick Wynja wrote:
I believe I figured it out.
I was updating
user.display_name
when the name I was seeing in Postorius wasuser.addresses[0].display_name
.Here are all of the steps for anyone looking to solve the same thing:
If you are using mailman shell, the next 2 are not necessary
from mailman.interfaces.usermanager import IUserManager from zope.component import getUtility
IUserManager and getUtility are already in the namespace created when mailman shell starts.
And this one
from mailman.testing.documentation import dump_list
isn't needed here.
user_manager = getUtility(IUserManager)
u = user_manager.get_user('aperson@example.com') u.addresses[0].display_name = "Anne" commit()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan