Change file extentions in reports when different filetype is chosen

svn: r1534
This commit is contained in:
Don Allingham
2003-05-16 01:49:50 +00:00
parent 4d5f13b00e
commit 4247f38dbb
25 changed files with 142 additions and 38 deletions

View File

@@ -141,7 +141,7 @@ def importData(database, filename, cb=None):
g = GedcomParser(database,filename,statusTop)
except IOError,msg:
Utils.destroy_passed_object(statusWindow)
ErrorDialog(_("%s could not be opened\n") % filename + str(msg))
ErrorDialog(_("%s could not be opened\n") % filename,str(msg))
return
except:
Utils.destroy_passed_object(statusWindow)
@@ -154,12 +154,12 @@ def importData(database, filename, cb=None):
except IOError,msg:
Utils.destroy_passed_object(statusWindow)
errmsg = _("%s could not be opened\n") % filename
ErrorDialog(errmsg + str(msg))
ErrorDialog(errmsg,str(msg))
return
except Errors.GedcomError, val:
msg = str(val)
(m1,m2) = val.messages()
Utils.destroy_passed_object(statusWindow)
ErrorDialog(msg)
ErrorDialog(m1,m2)
return
except:
import DisplayTrace