* src/gen/db/exceptions.py: wrong exception def, bug #1593
* src/GrampsDbUtils/_WriteXML.py: correctly catch the exception * src/GrampsDbUtils/_GrampsDbWriteXML.py: remove double def of xml export * src/GrampsDbUtils/_GrampsDbWRFactories.py: remove write backend factory * src/ExportAssistant.py: on fail, do not set success = True * src/GrampsDbUtils/__init__.py: don't export unused stuff 2008-01-15 Benny Malengier <benny.malengier@gramps-project.org> svn: r9818
This commit is contained in:
@@ -430,13 +430,12 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) :
|
||||
# Lock page, show progress bar
|
||||
self.pre_save(page)
|
||||
# save
|
||||
self.save()
|
||||
success = self.save()
|
||||
# Unlock page
|
||||
self.post_save()
|
||||
|
||||
#update the label and title
|
||||
success = True
|
||||
if success:
|
||||
if success is None or success:
|
||||
conclusion_title = _('Your data has been saved')
|
||||
conclusion_text = _(
|
||||
'The copy of your data has been '
|
||||
@@ -449,7 +448,7 @@ class ExportAssistant(gtk.Assistant, ManagedWindow.ManagedWindow) :
|
||||
#add test, what is dir
|
||||
conclusion_text += '\n\n' + 'Filename: %s' %self.chooser.get_filename()
|
||||
else:
|
||||
conclusion_title = _('Saving failed'),
|
||||
conclusion_title = _('Saving failed')
|
||||
conclusion_text = _(
|
||||
'There was an error while saving your data. '
|
||||
'You may try starting the export again.\n\n'
|
||||
|
Reference in New Issue
Block a user