VirtualMailManager/Alias.py
branchv0.6.x
changeset 295 18086c6a2521
parent 290 e2785e04f92e
child 316 31d8931dc535
equal deleted inserted replaced
294:7d1bafc6fa30 295:18086c6a2521
    40     def __load_dests(self):
    40     def __load_dests(self):
    41         """Loads all known destination addresses into the _dests list."""
    41         """Loads all known destination addresses into the _dests list."""
    42         dbc = self._dbh.cursor()
    42         dbc = self._dbh.cursor()
    43         dbc.execute('SELECT destination FROM alias WHERE gid = %s AND '
    43         dbc.execute('SELECT destination FROM alias WHERE gid = %s AND '
    44                     'address = %s', self._gid, self._addr.localpart)
    44                     'address = %s', self._gid, self._addr.localpart)
    45         dests = iter(dbc.fetchall())
    45         dests = dbc.fetchall()
    46         if dbc.rowcount > 0:
    46         if dbc.rowcount > 0:
    47             self._dests.extend(EmailAddress(dest[0]) for dest in dests)
    47             self._dests.extend(EmailAddress(dest[0]) for dest in dests)
    48         dbc.close()
    48         dbc.close()
    49 
    49 
    50     def __check_expansion(self, count_new):
    50     def __check_expansion(self, count_new):