VirtualMailManager/Account.py
branchv0.6.x
changeset 235 9d3405ed08e5
parent 228 a7b000ca4ac9
child 236 084331dd1e4c
equal deleted inserted replaced
234:e88ba0fb1281 235:9d3405ed08e5
   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)