mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Let's go to repr. Beware, people, this may invalidate certain databases.
This commit is contained in:
parent
1c69d9746c
commit
a1a703df32
@ -60,7 +60,7 @@ class DbiFunDBDB(object):
|
||||
__metaclass__ = dbi.Record
|
||||
__fields__ = [
|
||||
'by',
|
||||
('text', str),
|
||||
'text',
|
||||
]
|
||||
|
||||
def __init__(self):
|
||||
|
@ -90,7 +90,7 @@ class DbiNoteDB(dbi.DB):
|
||||
'notified',
|
||||
'read',
|
||||
'public',
|
||||
('text', str)
|
||||
'text',
|
||||
]
|
||||
|
||||
def setRead(self, id):
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user