VirtualMailManager/account.py
branchv0.6.x
changeset 374 ecdba68c7a2c
parent 366 d6573da35b5f
child 389 5f7e9f778b29
equal deleted inserted replaced
373:1016a17684c1 374:ecdba68c7a2c
   145     def _count_aliases(self):
   145     def _count_aliases(self):
   146         """Count all alias addresses where the destination address is the
   146         """Count all alias addresses where the destination address is the
   147         address of the Account."""
   147         address of the Account."""
   148         dbc = self._dbh.cursor()
   148         dbc = self._dbh.cursor()
   149         dbc.execute('SELECT COUNT(destination) FROM alias WHERE destination '
   149         dbc.execute('SELECT COUNT(destination) FROM alias WHERE destination '
   150                     '= %s', (self._addr,))
   150                     '= %s', (str(self._addr),))
   151         a_count = dbc.fetchone()[0]
   151         a_count = dbc.fetchone()[0]
   152         dbc.close()
   152         dbc.close()
   153         return a_count
   153         return a_count
   154 
   154 
   155     def _chk_state(self):
   155     def _chk_state(self):