* src/GrampsInMemDB.py: new base class for in memory databases, such

as XML or GEDCOM
* src/GrampGEDDB.py: use new GrampsInMemDB base class
* src/GrampXMLDB.py: use new GrampsInMemDB base class
* src/Makefile.am: add GrampsInMemDB.py
* src/ReadGedcom.py: remove debug statements


svn: r3555
This commit is contained in:
Don Allingham
2004-09-19 04:11:34 +00:00
parent b9d8abee14
commit d382d7b094
9 changed files with 177 additions and 130 deletions

View File

@ -1729,7 +1729,6 @@ class GedcomParser:
stop = self.dp.parse(data2)
dateobj.set(Date.QUAL_NONE, Date.MOD_RANGE, cal,
start.get_start_date() + stop.get_start_date())
print dateobj
return dateobj
match = spanRegexp.match(text)
@ -1751,7 +1750,6 @@ class GedcomParser:
stop = self.dp.parse(data2)
dateobj.set(Date.QUAL_NONE, Date.MOD_SPAN, cal,
start.get_start_date() + stop.get_start_date())
print dateobj
return dateobj
match = calRegexp.match(text)
@ -1764,10 +1762,8 @@ class GedcomParser:
dateobj.set_calendar(Date.CAL_JULIAN)
elif cal == "HEBREW":
dateobj.set_calendar(Date.CAL_HEBREW)
print dateobj
return dateobj
else:
print text, self.dp.parse(text)
return self.dp.parse(text)
except IOError:
return self.dp.set_text(text)
@ -1793,7 +1789,6 @@ class GedcomParser:
prefix = self.db.iprefix
index = 0
new_pmax = self.db.pmap_index
print self.added
for pid in self.added.keys():
index = index + 1
if self.refn.has_key(pid):