Re: [Mailman-Developers] Accessing the members of a list

2016-02-25 Thread Aditya Divekar
Thanks again Harshit! And, @Simon, thanks for the input. Also I apologize for dragging the issue #88 for so long. I am currently facing problems with my system python3 due to some bad changes. As a result I'm not able to run mailman3.0 now. I planne

Re: [Mailman-Developers] Accessing the members of a list

2016-02-24 Thread Simon Hanna
I just realized I didn't reply to the list but to the OP only. Here is my reply: > CannotOverwriteExistingCassetteException: No match for the request > ( http://localhost:9001/3.0/members/find?subscriber=%2Aexample.com%2A&list_id=foo.example.com&role=member>) > was found. Can't overwrite existing

Re: [Mailman-Developers] Accessing the members of a list

2016-02-24 Thread Harshit Bansal
Hi Aditya, Since a lot of Postorius code involves calls to Mailman's REST API and running these tests against a real instance would be painfully slow, hence ''vcrpy'' cassettess are used. These files contain pre-recorded HTTP responses. If you write new tests, it's advisable to add a separate fixtu

Re: [Mailman-Developers] Accessing the members of a list

2016-02-24 Thread Aditya Divekar
Thanks for the help Harshit! But I realized that I framed my question improperly. I used the above command before too, but it raises an error - CannotOverwriteExistingCassetteException: No match for the request (http://localhost:9001/3.0/members/find?subscriber=%2Aexample.com%2A&list_id=foo.exampl

Re: [Mailman-Developers] Accessing the members of a list

2016-02-23 Thread Harshit Bansal
> Hi, > > This is in regard to postorius. Is there a way by which I can access all > the members of a list using its 'list_id' in the list.py file with/without > creating a new client? > > The approach I tried was creating a client in the list.py file for this > purpose and calling on the 'members(

[Mailman-Developers] Accessing the members of a list

2016-02-23 Thread Aditya Divekar
Hi, This is in regard to postorius. Is there a way by which I can access all the members of a list using its 'list_id' in the list.py file with/without creating a new client? The approach I tried was creating a client in the list.py file for this purpose and calling on the 'members()' function fr