move database code into new package

svn: r5598
This commit is contained in:
Richard Taylor
2005-12-21 11:27:05 +00:00
parent d850b72fcf
commit 9eb1f99b86
28 changed files with 380 additions and 98 deletions

View File

@@ -365,8 +365,7 @@ class Exporter:
In the future, filter and other options may be added.
"""
try:
import WriteGrdb
WriteGrdb.exportData(database,filename,person)
GrampsDb.gramps_db_writer_factory(const.app_gramps)(database,filename,person)
return 1
except IOError, msg:
QuestionDialog.ErrorDialog( _("Could not write file: %s") % filename,