VirtualMailManager/VirtualMailManager.py
changeset 78 8f1e501b1bb1
parent 76 14c0a092d7d2
child 80 5dedc673524e
--- a/VirtualMailManager/VirtualMailManager.py	Mon Sep 08 05:37:56 2008 +0000
+++ b/VirtualMailManager/VirtualMailManager.py	Mon Sep 08 22:53:27 2008 +0000
@@ -539,6 +539,17 @@
         aliasDom = AliasDomain(self.__dbh, aliasname, None)
         return aliasDom.info()
 
+    def aliasDomainSwitch(self, aliasname, domainname):
+        """Modifies the target domain of an existing alias domain.
+
+        Keyword arguments:
+        aliasname -- the name of the alias domain (str)
+        domainname -- name of the new target domain (str)
+        """
+        dom = self.__getDomain(domainname)
+        aliasDom = AliasDomain(self.__dbh, aliasname, dom)
+        aliasDom.switch()
+
     def aliasDomainDelete(self, aliasname):
         """Deletes the specified alias domain.