VirtualMailManager/handler.py
branchv0.6.x
changeset 559 cc0f67f99780
parent 557 1498abbb6c91
child 568 14abdd04ddf5
equal deleted inserted replaced
558:2fcf12fdecc2 559:cc0f67f99780
   830                            INVALID_ARGUMENT)
   830                            INVALID_ARGUMENT)
   831         acc = self._get_account(emailaddress)
   831         acc = self._get_account(emailaddress)
   832         if not acc:
   832         if not acc:
   833             raise VMMError(_(u"The account '%s' does not exist.") %
   833             raise VMMError(_(u"The account '%s' does not exist.") %
   834                            acc.address, NO_SUCH_ACCOUNT)
   834                            acc.address, NO_SUCH_ACCOUNT)
   835         transport = None if transport == 'default' \
   835         if transport == 'default':
   836                          else Transport(self._dbh, transport=transport)
   836             transport = None
       
   837         else:
       
   838             transport = Transport(self._dbh, transport=transport)
   837         acc.update_transport(transport)
   839         acc.update_transport(transport)
   838 
   840 
   839     def user_services(self, emailaddress, *services):
   841     def user_services(self, emailaddress, *services):
   840         """Wrapper around Account.update_serviceset()."""
   842         """Wrapper around Account.update_serviceset()."""
   841         acc = self._get_account(emailaddress)
   843         acc = self._get_account(emailaddress)