Let's go to repr. Beware, people, this may invalidate certain databases.

This commit is contained in:
Jeremy Fincher 2004-08-12 07:41:05 +00:00
parent 1c69d9746c
commit a1a703df32
3 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ class DbiFunDBDB(object):
__metaclass__ = dbi.Record __metaclass__ = dbi.Record
__fields__ = [ __fields__ = [
'by', 'by',
('text', str), 'text',
] ]
def __init__(self): def __init__(self):

View File

@ -90,7 +90,7 @@ class DbiNoteDB(dbi.DB):
'notified', 'notified',
'read', 'read',
'public', 'public',
('text', str) 'text',
] ]
def setRead(self, id): def setRead(self, id):

View File

@ -348,7 +348,7 @@ class Record(type):
setattr(self, name, defaults[name]) setattr(self, name, defaults[name])
def serialize(self): def serialize(self):
return csv.join([str(getattr(self, name)) for name in fields]) return csv.join([repr(getattr(self, name)) for name in fields])
def deserialize(self, s): def deserialize(self, s):
unseenRecords = sets.Set(fields) unseenRecords = sets.Set(fields)