Fixup catchall_info to return iterator, not self v0.6.x
authormartin f. krafft <madduck@madduck.net>
Mon, 09 Apr 2012 23:50:12 +0200
branchv0.6.x
changeset 508 18870919ec48
parent 507 2aae58cddfa9
child 509 1a9247e9763f
Fixup catchall_info to return iterator, not self
VirtualMailManager/handler.py
--- a/VirtualMailManager/handler.py	Mon Apr 09 23:44:36 2012 +0200
+++ b/VirtualMailManager/handler.py	Mon Apr 09 23:50:12 2012 +0200
@@ -697,7 +697,7 @@
     def catchall_info(self, domain):
         """Returns an iterator object for all destinations (`EmailAddress`
         instances) for the `CatchallAlias` with the given *domain*."""
-        return self._get_catchall(domain)
+        return self._get_catchall(domain).get_destinations()
 
     def catchall_delete(self, domain, targetaddress=None):
         """Deletes the `CatchallAlias` for domain *domain* with all its