equal
deleted
inserted
replaced
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): |