2006-12-10 Don Allingham <don@gramps-project.org>

* src/DataViews/_RelationView.py: RunDatabaseRepair integration
	* src/GrampsDb/_WriteGedcom.py: RunDatabaseRepair integration
	* src/QuestionDialog.py: RunDatabaseRepair dialog to warn users to run
	database checks



svn: r7777
This commit is contained in:
Don Allingham
2006-12-11 04:10:46 +00:00
parent 179106c39e
commit fa8085031b
4 changed files with 28 additions and 2 deletions

@@ -178,6 +178,17 @@ class ErrorDialog(gtk.MessageDialog):
self.run()
self.destroy()
class RunDatabaseRepair(ErrorDialog):
def __init__(self, msg, parent=None):
ErrorDialog.__init__(
self,
_('Error detected in database'),
_('GRAMPS has detected an error in the database. This can '
'usually be resolved by running the "Check and Repair Database" '
'tool.\n\nIf this problem continues to exist after running this '
'tool, please file a bug report at '
'http://bugs.gramps-project.org\n\n') + str(msg))
class WarningDialog(gtk.MessageDialog):
def __init__(self,msg1,msg2="",parent=None):