* src/Exporter.py (native_export): Use real export.

* src/WriteGrdb.py (exportData): Provide default cl value.


svn: r4081
This commit is contained in:
Alex Roitman 2005-02-23 04:39:05 +00:00
parent b4d54945d3
commit 81a41b3d9a
3 changed files with 6 additions and 2 deletions

View File

@ -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 <dallingham@users.sourceforge.net>
* Release: Version 1.1.90 "Successful encyclopedia salesman" released.

View File

@ -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,

View File

@ -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)