Re: [Mailman-Developers] Unable to commit changes from mailman shell to database

2016-04-02 Thread Barry Warsaw
On Apr 02, 2016, at 06:17 AM, Anirudh Dahiya wrote: >I have been playing with mailman shell but upon creating objects like >domains and addresses, and subsequestly committing them to database by >calling transaction.commit() I am unable to see changes in the database(and >thus on Postorius) >The

[Mailman-Developers] Unable to commit changes from mailman shell to database

2016-04-02 Thread Gurkirpal Singh
I tried the doing it the way you did and got the same result. After checking with "dir()" I found a "commit" method. I tried running it and it worked. >>> dir() ['IUserManager', '__builtins__', 'a', 'abort', 'commit', 'config', 'getUtility', 'l', 'm', 'now', 'um', 'user_manager', 'x'] >>>

Re: [Mailman-Developers] Unable to commit changes from mailman shell to database

2016-04-02 Thread Barry Warsaw
On Apr 03, 2016, at 01:30 AM, Gurkirpal Singh wrote: >Maybe it was there because I'm using PostgreSQL but it worked for me. Cool, so it's working now? I believe SQLAlchemy opens a transaction automatically, so that the bound commit() and abort() methods operate on that transaction. By creating