From 81a41b3d9acba5a69e88686ab5605b08b14d4887 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 23 Feb 2005 04:39:05 +0000 Subject: [PATCH] * src/Exporter.py (native_export): Use real export. * src/WriteGrdb.py (exportData): Provide default cl value. svn: r4081 --- ChangeLog | 3 +++ src/Exporter.py | 3 ++- src/WriteGrdb.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3692ad088..2cacf725b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,9 @@ * configure.in: Bump up the version. * src/docgen/PdfDoc.py (write_note): Attempt latin1 encoding. + * src/Exporter.py (native_export): Use real export. + * src/WriteGrdb.py (exportData): Provide default cl value. + 2005-02-21 Don Allingham * Release: Version 1.1.90 "Successful encyclopedia salesman" released. diff --git a/src/Exporter.py b/src/Exporter.py index ab7d10532..cadf684fc 100644 --- a/src/Exporter.py +++ b/src/Exporter.py @@ -367,7 +367,8 @@ class Exporter: options may be added. """ try: - shutil.copyfile(database.get_save_path(),filename) + import WriteGrdb + WriteGrdb.exportData(database,filename,person) return 1 except IOError, msg: QuestionDialog.ErrorDialog( _("Could not write file: %s") % filename, diff --git a/src/WriteGrdb.py b/src/WriteGrdb.py index 8fb32e027..98d1e472b 100644 --- a/src/WriteGrdb.py +++ b/src/WriteGrdb.py @@ -43,7 +43,7 @@ from QuestionDialog import ErrorDialog # Importing data into the currently open database. # #------------------------------------------------------------------------- -def exportData(database, filename, person=None, callback=None): +def exportData(database, filename, person=None, callback=None, cl=False): filename = os.path.normpath(filename)