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
__fields__ = [
'by',
('text', str),
'text',
]
def __init__(self):

View File

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

View File

@ -348,7 +348,7 @@ class Record(type):
setattr(self, name, defaults[name])
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):
unseenRecords = sets.Set(fields)