comparison roundup/backends/back_mysql.py @ 2616:eaf74cf96cfa maint-0.7

removed references to py2.3+ boolean values [SF#995682]
author Richard Jones <richard@users.sourceforge.net>
date Thu, 22 Jul 2004 04:46:11 +0000
parents ead9f926234a
children b97aa2a9a504
comparison
equal deleted inserted replaced
2613:291c08916e5e 2616:eaf74cf96cfa
250 250
251 # unserialise the old data 251 # unserialise the old data
252 olddata = [] 252 olddata = []
253 propnames = propnames + ['id', '__retired__'] 253 propnames = propnames + ['id', '__retired__']
254 cols = [] 254 cols = []
255 first = True 255 first = 1
256 for entry in self.cursor.fetchall(): 256 for entry in self.cursor.fetchall():
257 l = [] 257 l = []
258 olddata.append(l) 258 olddata.append(l)
259 for i in range(len(propnames)): 259 for i in range(len(propnames)):
260 name = propnames[i] 260 name = propnames[i]
290 cols.append('__' + name + '_int__') 290 cols.append('__' + name + '_int__')
291 if v is not None: 291 if v is not None:
292 l.append(v.as_seconds()) 292 l.append(v.as_seconds())
293 else: 293 else:
294 l.append(e) 294 l.append(e)
295 first = False 295 first = 0
296 296
297 self.drop_class_table_indexes(cn, old_spec[0]) 297 self.drop_class_table_indexes(cn, old_spec[0])
298 298
299 # drop the old table 299 # drop the old table
300 execute('drop table _%s'%cn) 300 execute('drop table _%s'%cn)

Roundup Issue Tracker: http://roundup-tracker.org/