Commit 65a00c34 authored by Florian Fuchs's avatar Florian Fuchs

added client.get_member shortcut to retrieve a specific member of a list

parent ef30372e
......@@ -178,6 +178,9 @@ class Client:
return [_Member(self._connection, entry['self_link'])
for entry in content['entries']]
def get_member(self, fqdn_listname, subscriber_address):
return self.get_list(fqdn_listname).get_member(subscriber_address)
def get_member_page(self, count=50, page=1):
return _Page(self._connection, 'members', _Member, count, page)
......@@ -269,6 +269,11 @@ We can get a single membership too.
>>> print cris_test_two.role
A membership can also be retrieved without instantiating the list object first:
>>> client.get_member('', '')
<Member "" on "">
A membership has preferences.
>>> prefs = cris_test_two.preferences
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment