VirtualMailManager/common.py
changeset 586 cd1200d06700
parent 583 a479c38931c4
child 601 463b10c258d9
equal deleted inserted replaced
585:ffd24974ed68 586:cd1200d06700
   249     dbc.close()
   249     dbc.close()
   250 
   250 
   251     gids = []
   251     gids = []
   252     daddrs = {}
   252     daddrs = {}
   253     for gid, address, addrtype, aliasdomain in result:
   253     for gid, address, addrtype, aliasdomain in result:
   254         if gid not in gids:
   254         if gid not in daddrs:
   255             gids.append(gid)
   255             gids.append(gid)
   256             daddrs[gid] = []
   256             daddrs[gid] = []
   257         daddrs[gid].append((address, addrtype, aliasdomain))
   257         daddrs[gid].append((address, addrtype, aliasdomain))
   258     return gids, daddrs
   258     return gids, daddrs
   259 
   259