VMM/handler: Handler.alias_delete() also use class DestinationEmailAddress v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Sat, 03 Sep 2011 20:42:05 +0000
branchv0.6.x
changeset 426 933b9debbec1
parent 425 8394e222aba3
child 427 8e41e77b84e6
VMM/handler: Handler.alias_delete() also use class DestinationEmailAddress for the destination address, instead of class EmailAddress.
VirtualMailManager/handler.py
--- a/VirtualMailManager/handler.py	Sat Sep 03 20:28:40 2011 +0000
+++ b/VirtualMailManager/handler.py	Sat Sep 03 20:42:05 2011 +0000
@@ -642,7 +642,8 @@
         if targetaddress is None:
             alias.delete()
         else:
-            alias.del_destination(EmailAddress(targetaddress))
+            alias.del_destination(DestinationEmailAddress(targetaddress,
+                                                          self._dbh))
 
     def user_info(self, emailaddress, details=None):
         """Wrapper around Account.get_info(...)"""