From 0b30e204bf4b8adb640e001e5c01fbb47e858bd9 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sun, 24 Feb 2013 08:40:08 +0000 Subject: [PATCH] revert to the old report name svn: r21429 --- gramps/gui/plug/report/_docreportdialog.py | 3 +-- gramps/gui/plug/report/_graphvizreportdialog.py | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gramps/gui/plug/report/_docreportdialog.py b/gramps/gui/plug/report/_docreportdialog.py index 4bb46fc55..e8fa68cd0 100644 --- a/gramps/gui/plug/report/_docreportdialog.py +++ b/gramps/gui/plug/report/_docreportdialog.py @@ -185,8 +185,7 @@ class DocReportDialog(ReportDialog): ext = "" else: spath = self.get_default_directory() - default_name = self.dbname + "_" + \ - "".join(x[0].upper() for x in self.raw_name.split("_")) + default_name = self.dbname + "_" + self.raw_name if self.options.get_output(): base = os.path.basename(self.options.get_output()) else: diff --git a/gramps/gui/plug/report/_graphvizreportdialog.py b/gramps/gui/plug/report/_graphvizreportdialog.py index 7c0c4c929..122794290 100644 --- a/gramps/gui/plug/report/_graphvizreportdialog.py +++ b/gramps/gui/plug/report/_graphvizreportdialog.py @@ -166,12 +166,11 @@ class GraphvizReportDialog(ReportDialog): ext = "" else: spath = self.get_default_directory() - default_name = self.dbname + "_" + \ - "".join(x[0].upper() for x in self.raw_name.split("_")) + default_name = self.dbname + "_" + self.raw_name if self.options.get_output(): base = os.path.basename(self.options.get_output()) else: - base = "%s%s" % (default_name, ext) + base = "%s%s" % (default_name, ext) # "ext" already has a dot spath = os.path.normpath(os.path.join(spath, base)) self.target_fileentry.set_filename(spath)