2007-04-15 Don Allingham <don@gramps-project.org>

* src/GrampsDb/_WriteGedcom.py: use CONT to continue page info
	* src/GrampsDb/_GrampsBSDDB.py: additional error checking
	* src/QuestionDialog.py: enable markup
	* src/DbLoader.py: additional error checking

	* src/plugins/NarrativeWeb.py
	* src/ReportBase/_ReportUtils.py
	0001012: Private source and private child references shown in narrative 
	website.
	0001017: Insufficient space in pedigree view of narrative website


svn: r8386
This commit is contained in:
Don Allingham 2007-04-16 01:19:46 +00:00
parent 345ac87e95
commit c3274fe930
5 changed files with 25 additions and 15 deletions

View File

@ -1,8 +1,14 @@
2007-04-15 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_WriteGedcom.py: use CONT to continue page info
* src/GrampsDb/_GrampsBSDDB.py: additional error checking
* src/QuestionDialog.py: enable markup
* src/DbLoader.py: additional error checking
2007-04-14 Brian Matherly <brian@gramps-project.org>
* src/plugins/NarrativeWeb.py
* src/ReportBase/_ReportUtils.py
0001012: Private source and private child references shown in narrative
website.
* src/plugins/NarrativeWeb.py
* src/ReportBase/_ReportUtils.py
0001012: Private source and private child references shown in narrative
website.
2007-04-14 Brian Matherly <brian@gramps-project.org>
* src\data\main4.css
@ -11,7 +17,7 @@
* src\data\main1.css
* src\data\main2.css
* src\data\main3.css
0001017: Insufficient space in pedigree view of narrative website
0001017: Insufficient space in pedigree view of narrative website
2007-04-12 Brian Matherly <brian@gramps-project.org>
* src/docgen/GtkPrint.py: 0000908: GtkPrint doesn't parse if you don't have

View File

@ -446,23 +446,26 @@ class DbLoader:
os.chdir(os.path.dirname(filename))
except:
print "could not change directory"
except DBRunRecoveryError, msg:
except (DBAccessError, DBPageNotFoundError,
DBInvalidArgError, DBRunRecoveryError), msg:
QuestionDialog.ErrorDialog(
_("Low level database corruption detected"),
_("GRAMPS has detected a problem in the underlying "
"Berkeley database. Please exit the program, and GRAMPS "
"Berkeley database. <b>If you have renamed this file, "
"change the name back to its original name. If you have "
"copied the file from another machine, this file is not "
"usable</b>. Export your data to XML on the original machine "
"and import it into a new database.\n\nOtherwise, "
"please exit the program, and GRAMPS "
"will attempt to run the recovery repair operation "
"the next time you open this database. If this "
"problem persists, create a new database, import "
"from a backup database, and report the problem to "
"gramps-bugs@lists.sourceforge.net."))
except (DBAccessError, DBPageNotFoundError,DBInvalidArgError), msg:
except:
QuestionDialog.ErrorDialog(
_("Could not open file: %s") % filename,
str(msg[1]))
except Exception:
log.error("Failed to open database.", exc_info=True)
return True
def open_saved_as(self, filename, filetype):

View File

@ -1451,7 +1451,7 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback):
if self.UseTXN:
self.txn = self.env.txn_begin()
status = GrampsDbBase.undo(self,update_history)
if self.UseTXN:
if self.UseTXN and self.txn:
if status:
self.txn.commit()
else:

View File

@ -1388,8 +1388,9 @@ class GedcomWriter(UpdateCallback):
# Reference to the source
self.writeln("%d SOUR @%s@" % (level,src.get_gramps_id()))
if ref.get_page() != "":
page_text = self.cnvtxt(ref.get_page().replace('\n',' ; '))
self.writeln('%d PAGE %s' % (level+1,page_text))
sep = "\n%d CONT " % (level+2)
page_text = self.cnvtxt(ref.get_page().replace('\n', sep))
self.writeln('%d PAGE %s' % (level+1, page_text))
conf = ref.get_confidence_level()
# Cap the maximum level
conf = min(conf,RelLib.SourceRef.CONF_VERY_HIGH)

View File

@ -171,7 +171,7 @@ class ErrorDialog(gtk.MessageDialog):
type=gtk.MESSAGE_ERROR,
buttons=gtk.BUTTONS_CLOSE)
self.set_markup('<span weight="bold" size="larger">%s</span>' % msg1)
self.format_secondary_text(msg2)
self.format_secondary_markup(msg2)
self.set_icon(ICON)
self.set_title("%s - GRAMPS" % msg1)
self.show()