17 Sep
2022
17 Sep
'22
6:01 p.m.
Sure:
lm = getUtility(IListManager) for l in lm: ... print(l.posting_address) ...
Nothing here, either.
Yours,
Allan
On 9/17/22, 10:30 , "Mark Sapiro" <mark@msapiro.net> wrote:
On 9/17/22 10:03, Allan Hansen wrote:
> Hi Mike,
>
> Yes, the users can be subscribed, but they think that they can't because it seems they are until the moderator accepts them.
>
> I tried your script again, with nothing happening. So I tried this:
>
>>>>
>>>> a = 1
>>>> b = 1
>>>> for l in lm:
> ... print(a)
> ... a = a+1
> ... for nm in l.nonmembers.members:
> ... print(b)
> ... b = b + 1
> ... nm.unsubscribe()
> ...
>>>> commit()
>>>> print(a)
> 1
>>>> print(b)
> 1
>
>
> It appears that lm can't see the lists (I have 50+ of them).
Did you start with
lm = getUtility(IListManager)
?
What if you do
```
>>> lm = getUtility(IListManager)
>>> for l in lm:
... print(l.posting_address)
...
```
That should print the posting address for all the lists.
What does `mailman info` show? In particular, for `config file:`
--
Mark Sapiro <mark@msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-leave@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/