Merge lp:~jskrzeszewska/mailman.client/mailman.client into lp:mailman.client

Proposed by Joanna Skrzeszewska
Status: Needs review
Proposed branch: lp:~jskrzeszewska/mailman.client/mailman.client
Merge into: lp:mailman.client
Diff against target: 28 lines (+11/-0)
1 file modified
src/mailmanclient/_client.py (+11/-0)
To merge this branch: bzr merge lp:~jskrzeszewska/mailman.client/mailman.client
Reviewer Review Type Date Requested Status
Nicki Hutchens Pending
Barry Warsaw Pending
Review via email: mp+178415@code.launchpad.net

Description of the change

Added support for rss.

To post a comment you must log in.

Unmerged revisions

47. By Joanna Skrzeszewska

Adding mailman clinet changes for rss archiver.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== 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 @@
133 :param password: The Basic Auth password. If given the `name` must133 :param password: The Basic Auth password. If given the `name` must
134 also be given.134 also be given.
135 """135 """
136 self.baseurl = baseurl
137 self.name = name
138 self.password = password
136 self._connection = _Connection(baseurl, name, password)139 self._connection = _Connection(baseurl, name, password)
137140
138 def __repr__(self):141 def __repr__(self):
@@ -248,6 +251,14 @@
248 response, content = self._connection.call(251 response, content = self._connection.call(
249 'lists/{0}'.format(fqdn_listname), None, 'DELETE')252 'lists/{0}'.format(fqdn_listname), None, 'DELETE')
250253
254 def get_feed(self, fqdn_listname):
255 response, content = self._connection.call('feeds/{0}'.format(fqdn_listname))
256 return content
257
258 def set_feed(self, fqdn_listname, is_enabled, size_limit):
259 response, content = self._connection.call('feeds/{0}'.format(fqdn_listname),
260 dict(is_enabled=is_enabled, size_limit=size_limit))
261 return content
251262
252263
253class _Domain:264class _Domain:
254 def __init__(self, connection, url):265 def __init__(self, connection, url):

Subscribers

People subscribed via source and target branches