From acf0a3f3e5cb71aef9cb0b81271ae317289e45a9 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 24 Aug 2004 04:09:15 +0000 Subject: [PATCH] Augmented the add method for Note. --- src/dbi.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dbi.py b/src/dbi.py index 62481401a..c97e86655 100644 --- a/src/dbi.py +++ b/src/dbi.py @@ -284,7 +284,9 @@ class DB(object): def add(self, record): s = record.serialize() - return self.map.add(s) + id = self.map.add(s) + record.id = id + return id def remove(self, id): self.map.remove(id)