VirtualMailManager/VirtualMailManager.py
changeset 78 8f1e501b1bb1
parent 76 14c0a092d7d2
child 80 5dedc673524e
equal deleted inserted replaced
77:9e5af7210c29 78:8f1e501b1bb1
   537     def aliasDomainInfo(self, aliasname):
   537     def aliasDomainInfo(self, aliasname):
   538         self.__dbConnect()
   538         self.__dbConnect()
   539         aliasDom = AliasDomain(self.__dbh, aliasname, None)
   539         aliasDom = AliasDomain(self.__dbh, aliasname, None)
   540         return aliasDom.info()
   540         return aliasDom.info()
   541 
   541 
       
   542     def aliasDomainSwitch(self, aliasname, domainname):
       
   543         """Modifies the target domain of an existing alias domain.
       
   544 
       
   545         Keyword arguments:
       
   546         aliasname -- the name of the alias domain (str)
       
   547         domainname -- name of the new target domain (str)
       
   548         """
       
   549         dom = self.__getDomain(domainname)
       
   550         aliasDom = AliasDomain(self.__dbh, aliasname, dom)
       
   551         aliasDom.switch()
       
   552 
   542     def aliasDomainDelete(self, aliasname):
   553     def aliasDomainDelete(self, aliasname):
   543         """Deletes the specified alias domain.
   554         """Deletes the specified alias domain.
   544 
   555 
   545         Keyword arguments:
   556         Keyword arguments:
   546         aliasname -- the name of the alias domain (str)
   557         aliasname -- the name of the alias domain (str)