mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-03 01:39: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
|
__metaclass__ = dbi.Record
|
||||||
__fields__ = [
|
__fields__ = [
|
||||||
'by',
|
'by',
|
||||||
('text', str),
|
'text',
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -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):
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user