VirtualMailManager/Account.py
changeset 144 4c6aa6c29dd7
parent 138 617f27715b01
child 145 ead2a7e9f8be
equal deleted inserted replaced
143:16542519a5a8 144:4c6aa6c29dd7
   208  AND domain_name.is_primary", str(self._addr))
   208  AND domain_name.is_primary", str(self._addr))
   209         addresses = dbc.fetchall()
   209         addresses = dbc.fetchall()
   210         dbc.close()
   210         dbc.close()
   211         aliases = []
   211         aliases = []
   212         if len(addresses) > 0:
   212         if len(addresses) > 0:
   213             for alias in addresses:
   213             aliases = [alias[0] for alias in addresses]
   214                 aliases.append(alias[0])
       
   215         return aliases
   214         return aliases
   216 
   215 
   217     def delete(self, delalias):
   216     def delete(self, delalias):
   218         if self._uid < 1:
   217         if self._uid < 1:
   219             raise AccE(_(u"The account ā€œ%sā€ doesn't exists.") % self._addr,
   218             raise AccE(_(u"The account ā€œ%sā€ doesn't exists.") % self._addr,