From 09e647e4cfff4fe94a2f40d42e5b02152b212e77 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 28 Jun 2001 15:27:04 +0000 Subject: [PATCH] Default report directory added svn: r195 --- gramps/src/plugins/AncestorChart.py | 2 ++ gramps/src/plugins/AncestorReport.py | 2 ++ gramps/src/plugins/DescendReport.py | 2 ++ gramps/src/plugins/FamilyGroup.py | 2 ++ gramps/src/plugins/IndivSummary.py | 2 ++ 5 files changed, 10 insertions(+) diff --git a/gramps/src/plugins/AncestorChart.py b/gramps/src/plugins/AncestorChart.py index f01db8f59..bf8471143 100644 --- a/gramps/src/plugins/AncestorChart.py +++ b/gramps/src/plugins/AncestorChart.py @@ -26,6 +26,7 @@ import const import os import string import utils +import Config from FontScale import string_width @@ -277,6 +278,7 @@ def report(database,person): base = os.path.dirname(__file__) glade_file = base + os.sep + "ancestorchart.glade" topDialog = GladeXML(glade_file,"dialog1") + topDialog.get_widget("fileentry1").set_default_path(Config.report_dir) name = person.getPrimaryName().getRegularName() diff --git a/gramps/src/plugins/AncestorReport.py b/gramps/src/plugins/AncestorReport.py index 1e458e629..f05c30c0d 100644 --- a/gramps/src/plugins/AncestorReport.py +++ b/gramps/src/plugins/AncestorReport.py @@ -27,6 +27,7 @@ import re import sort import string import utils +import Config import intl _ = intl.gettext @@ -289,6 +290,7 @@ def report(database,person): base = os.path.dirname(__file__) glade_file = base + os.sep + "ancestorreport.glade" topDialog = GladeXML(glade_file,"dialog1") + topDialog.get_widget("fileentry1").set_default_path(Config.report_dir) name = person.getPrimaryName().getRegularName() diff --git a/gramps/src/plugins/DescendReport.py b/gramps/src/plugins/DescendReport.py index 3b53751bb..5c52a7a4a 100644 --- a/gramps/src/plugins/DescendReport.py +++ b/gramps/src/plugins/DescendReport.py @@ -30,6 +30,7 @@ _ = intl.gettext import RelLib import const +import Config import utils import const from TextDoc import * @@ -133,6 +134,7 @@ class DesReportWindow: glade_file = os.path.dirname(__file__) + os.sep + "desreport.glade" self.top = GladeXML(glade_file,"dialog1") + self.top.get_widget("fileentry1").set_default_path(Config.report_dir) self.top.signal_autoconnect({ "destroy_passed_object" : utils.destroy_passed_object, "on_style_edit_clicked" : on_style_edit_clicked, diff --git a/gramps/src/plugins/FamilyGroup.py b/gramps/src/plugins/FamilyGroup.py index f2ae3d442..273588877 100644 --- a/gramps/src/plugins/FamilyGroup.py +++ b/gramps/src/plugins/FamilyGroup.py @@ -29,6 +29,7 @@ import string import FindDoc import utils import intl +import Config _ = intl.gettext from TextDoc import * @@ -357,6 +358,7 @@ def report(database,person): base = os.path.dirname(__file__) glade_file = base + os.sep + "familygroup.glade" topDialog = GladeXML(glade_file,"dialog1") + topDialog.get_widget("fileentry1").set_default_path(Config.report_dir) name = person.getPrimaryName().getRegularName() family_list = person.getFamilyList() diff --git a/gramps/src/plugins/IndivSummary.py b/gramps/src/plugins/IndivSummary.py index 23374a335..c7dae7216 100644 --- a/gramps/src/plugins/IndivSummary.py +++ b/gramps/src/plugins/IndivSummary.py @@ -27,6 +27,7 @@ import re import sort import string import utils +import Config import intl _ = intl.gettext @@ -346,6 +347,7 @@ def report(database,person): base = os.path.dirname(__file__) glade_file = base + os.sep + "indsum.glade" topDialog = GladeXML(glade_file,"dialog1") + topDialog.get_widget("fileentry1").set_default_path(Config.report_dir) name = person.getPrimaryName().getRegularName() label = topDialog.get_widget("labelTitle")