Use more standard names for the ZODB hash entries

svn: r1006
This commit is contained in:
Don Allingham 2002-05-25 23:34:32 +00:00
parent 6ce1c2713f
commit 85d8d717ae

View File

@ -184,16 +184,16 @@ class GrampsZODB(GrampsDB):
self.root = self.conn.root() self.root = self.conn.root()
self.need_commit = 0 self.need_commit = 0
self.familyMap = self.get_object('fm') self.familyMap = self.get_object('familyMap')
if self.root.has_key('pm'): if self.root.has_key('pm'):
self.personMap = self.root['pm'] self.personMap = self.root['personMap']
else: else:
self.personMap = PersonMap() self.personMap = PersonMap()
self.root['pm'] = self.personMap self.root['pm'] = self.personMap
self.need_commit = 1 self.need_commit = 1
self.personTable = self.get_display_table(self.personMap,'pmt') self.personTable = self.get_display_table(self.personMap,'personTable')
if self.root.has_key('surnames'): if self.root.has_key('surnames'):
self.surnames = self.root['surnames'] self.surnames = self.root['surnames']
@ -204,11 +204,11 @@ class GrampsZODB(GrampsDB):
self.root['surnames'] = self.surnames self.root['surnames'] = self.surnames
self.need_commit = 1 self.need_commit = 1
self.sourceMap = self.get_object('sm') self.sourceMap = self.get_object('sourceMap')
self.sourceTable = self.get_display_table(self.sourceMap,'smt') self.sourceTable = self.get_display_table(self.sourceMap,'sourceTable')
self.placeMap = self.get_object('plm') self.placeMap = self.get_object('placeMap')
self.placeTable = self.get_display_table(self.placeMap,'plmt') self.placeTable = self.get_display_table(self.placeMap,'placeTable')
if self.root.has_key('default'): if self.root.has_key('default'):
self.default = self.root['default'] self.default = self.root['default']