* src/ImgManip.py: convert to png instead of jpeg

* src/ReadGedcom.py: try to catch bad secondary index error.
* src/ReportUtils.py: provide privacy sanitation on a list
* src/NavWebPage.py: better handling of thumbnails, allow gallery
page to be disabled


svn: r5122
This commit is contained in:
Don Allingham
2005-08-25 01:42:58 +00:00
parent ee6ad290d1
commit 40042df8f6
5 changed files with 86 additions and 69 deletions

View File

@ -57,6 +57,7 @@ from ansel_utf8 import ansel_to_utf8
import latin_utf8
import Utils
import GrampsMime
from bsddb import db
from GedcomInfo import *
from QuestionDialog import ErrorDialog
@ -207,6 +208,13 @@ def import2(database, filename, cb, codeset, use_trans):
Utils.destroy_passed_object(statusWindow)
ErrorDialog(m1,m2)
return
except db.DBSecondaryBadError, msg:
Utils.destroy_passed_object(statusWindow)
WarningDialog(_('Database corruption detected'),
_('A problem was detected with the database. Please '
'run the Check and Repair Database tool to fix the '
'problem.'))
return
except:
Utils.destroy_passed_object(statusWindow)
DisplayTrace.DisplayTrace()