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
1=== modified file 'src/mailmanclient/_client.py'
2--- src/mailmanclient/_client.py 2013-03-22 18:28:16 +0000
3+++ src/mailmanclient/_client.py 2013-08-03 05:53:27 +0000
4@@ -133,6 +133,9 @@
5 :param password: The Basic Auth password. If given the `name` must
6 also be given.
7 """
8+ self.baseurl = baseurl
9+ self.name = name
10+ self.password = password
11 self._connection = _Connection(baseurl, name, password)
12
13 def __repr__(self):
14@@ -248,6 +251,14 @@
15 response, content = self._connection.call(
16 'lists/{0}'.format(fqdn_listname), None, 'DELETE')
17
18+ def get_feed(self, fqdn_listname):
19+ response, content = self._connection.call('feeds/{0}'.format(fqdn_listname))
20+ return content
21+
22+ def set_feed(self, fqdn_listname, is_enabled, size_limit):
23+ response, content = self._connection.call('feeds/{0}'.format(fqdn_listname),
24+ dict(is_enabled=is_enabled, size_limit=size_limit))
25+ return content
26
27
28 class _Domain:
29 def __init__(self, connection, url):

Subscribers

People subscribed via source and target branches