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