equal
deleted
inserted
replaced
168 dbc = self._dbh.cursor() |
168 dbc = self._dbh.cursor() |
169 if what == 'password': |
169 if what == 'password': |
170 dbc.execute('UPDATE users SET passwd = %s WHERE uid = %s', |
170 dbc.execute('UPDATE users SET passwd = %s WHERE uid = %s', |
171 value, self._uid) |
171 value, self._uid) |
172 elif what == 'transport': |
172 elif what == 'transport': |
173 self._tid = Transport(self._dbh, transport=value).id |
173 self._tid = Transport(self._dbh, transport=value).tid |
174 dbc.execute('UPDATE users SET tid = %s WHERE uid = %s', |
174 dbc.execute('UPDATE users SET tid = %s WHERE uid = %s', |
175 self._tid, self._uid) |
175 self._tid, self._uid) |
176 else: |
176 else: |
177 dbc.execute('UPDATE users SET name = %s WHERE uid = %s', |
177 dbc.execute('UPDATE users SET name = %s WHERE uid = %s', |
178 value, self._uid) |
178 value, self._uid) |