Re: [Mailman-Developers] Rosters not using 'ISubscriptionService' Interface.

2016-03-31 Thread Barry Warsaw
On Apr 01, 2016, at 01:59 AM, Harshit Bansal wrote:

>I was looking at the 'rosters.py' and I am unable to understand that
>why are rosters not using 'ISubscriptionService' interface instead of
>making raw queries for finding members? Is there any reason for doing
>so and if no then should it be changed?

The easy answer is that rosters (and the IRoster interface) predates
ISubscriptionService by quite a bit.  The latter was added primarily to
support REST APIs for member searchers.

The concept of a roster as a query is pretty fundamental, and the idea was
also that rosters should be composable.  I'm not keen on changing these
interfaces.

Cheers,
-Barry

___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Developers] Rosters not using 'ISubscriptionService' Interface.

2016-03-31 Thread Harshit Bansal
Hi,
I was looking at the 'rosters.py' and I am unable to understand that
why are rosters not using 'ISubscriptionService' interface instead of
making raw queries for finding members? Is there any reason for doing
so and if no then should it be changed?

Thanks,
Harshit Bansal.
___
Mailman-Developers mailing list
Mailman-Developers@python.org
https://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9