Joanna Skrzeszewska has proposed merging lp:~jskrzeszewska/mailman.client/mailman.client into lp:mailman.client.
Requested reviews: Barry Warsaw (barry) For more details, see: https://code.launchpad.net/~jskrzeszewska/mailman.client/mailman.client/+merge/178415 Added support for rss. -- https://code.launchpad.net/~jskrzeszewska/mailman.client/mailman.client/+merge/178415 Your team Mailman Coders is subscribed to branch lp:mailman.client.
=== modified file 'src/mailmanclient/_client.py' --- src/mailmanclient/_client.py 2013-03-22 18:28:16 +0000 +++ src/mailmanclient/_client.py 2013-08-03 05:53:27 +0000 @@ -133,6 +133,9 @@ :param password: The Basic Auth password. If given the `name` must also be given. """ + self.baseurl = baseurl + self.name = name + self.password = password self._connection = _Connection(baseurl, name, password) def __repr__(self): @@ -248,6 +251,14 @@ response, content = self._connection.call( 'lists/{0}'.format(fqdn_listname), None, 'DELETE') + def get_feed(self, fqdn_listname): + response, content = self._connection.call('feeds/{0}'.format(fqdn_listname)) + return content + + def set_feed(self, fqdn_listname, is_enabled, size_limit): + response, content = self._connection.call('feeds/{0}'.format(fqdn_listname), + dict(is_enabled=is_enabled, size_limit=size_limit)) + return content class _Domain: def __init__(self, connection, url):
_______________________________________________ Mailman-coders mailing list Mailman-coders@python.org http://mail.python.org/mailman/listinfo/mailman-coders