------------------------------------------------------------
revno: 16
committer: Florian Fuchs <[email protected]>
branch nick: mailman.client
timestamp: Mon 2011-08-08 09:14:48 +0200
message:
- changed return statement in client.get_domain: if domain is retrieved
by its web_host (base_url) an empty list is returned if no domain is
found
- fixed web_host param in doc test (missing protocol string)
modified:
mailman/client/_client.py
mailman/client/docs/using.txt
--
lp:mailman.client
https://code.launchpad.net/~mailman-coders/mailman.client/trunk
Your team Mailman Coders is subscribed to branch lp:mailman.client.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman.client/trunk/+edit-subscription
=== modified file 'mailman/client/_client.py'
--- mailman/client/_client.py 2011-08-08 06:49:20 +0000
+++ mailman/client/_client.py 2011-08-08 07:14:48 +0000
@@ -185,13 +185,13 @@
response, content = self._connection.call(
'domains/{0}'.format(email_host))
return _Domain(self._connection, content['self_link'])
- if web_host is not None:
+ elif web_host is not None:
for domain in self.domains:
# note: `base_url` property will be renamed to `web_host`
# in Mailman3Alpha8
if domain.base_url == web_host:
return domain
- return self.get_domain("no-domain")
+ return []
def get_list(self, fqdn_listname):
response, content = self._connection.call(
=== modified file 'mailman/client/docs/using.txt'
--- mailman/client/docs/using.txt 2011-08-08 06:49:20 +0000
+++ mailman/client/docs/using.txt 2011-08-08 07:14:48 +0000
@@ -60,7 +60,7 @@
Additionally you can get an existing domain using its web host.
- >>> example = client.get_domain(None,'example.com')
+ >>> example = client.get_domain(web_host='http://example.com')
>>> example
<Domain "example.com">
>>> print example_dot_com.base_url
_______________________________________________
Mailman-coders mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-coders