--On Wednesday, May 24, 2023 3:34 PM -0700 Mark Sapiro <mark@msapiro.net> wrote:
On May 24, 2023 9:45:45 AM PDT, Quanah Gibson-Mount <quanah@fast-mail.org> wrote:
That shell script seems to have errors:
pendings = getUtility(IPendings) for token, data in pendings.find( ... token_owner=TokenOwner.subscriber, ... pend_type='subscription'): ... print("hello") ... Traceback (most recent call last): File "<console>", line 3, in <module> File "/usr/lib/python3/dist-packages/mailman/database/transaction.py", line 85, in wrapper return function(args[0], config.db.store, *args[1:], **kws) TypeError: find() got an unexpected keyword argument 'token_owner'
Your Mailman core is too old for that script. Tell me your core version and I will try to make one that works for you.
Thanks Mark! We're hoping to upgrade to something more current next month. Right now apt shows:
apt show mailman Package: mailman Version: 1:2.1.29-1+deb10u5
Regards, Quanah