equal
deleted
inserted
replaced
168 Keyword arguments: |
168 Keyword arguments: |
169 transport -- the new transport (str) |
169 transport -- the new transport (str) |
170 force -- True/False force new transport for all accounts (bool) |
170 force -- True/False force new transport for all accounts (bool) |
171 """ |
171 """ |
172 if self._id > 0: |
172 if self._id > 0: |
|
173 if transport == self._transport.getTransport(): |
|
174 return |
173 trsp = Transport(self._dbh, transport=transport) |
175 trsp = Transport(self._dbh, transport=transport) |
174 dbc = self._dbh.cursor() |
176 dbc = self._dbh.cursor() |
175 dbc.execute("UPDATE domain_data SET tid = %s WHERE gid = %s", |
177 dbc.execute("UPDATE domain_data SET tid = %s WHERE gid = %s", |
176 trsp.getID(), self._id) |
178 trsp.getID(), self._id) |
177 if dbc.rowcount > 0: |
179 if dbc.rowcount > 0: |