From 1d78512f16f7aa54aee749c0040eaa597287a261 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Fri, 17 Jun 2005 19:40:42 +0000 Subject: [PATCH] * src/plugins/WebPage.py (write_report): Test for empty dir_name. svn: r4840 --- gramps2/ChangeLog | 4 +++- gramps2/src/plugins/WebPage.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 127583e25..0d6e85548 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -14,7 +14,9 @@ * src/plugins/WebPage.py: Pass gramps_id to filter rules. * src/plugins/WriteFtree.py: Pass gramps_id to filter rules. * src/plugins/WriteGeneWeb.py: Pass gramps_id to filter rules. - + + * src/plugins/WebPage.py (write_report): Test for empty dir_name. + 2005-06-16 Martin Hawlisch * src/gramps_main.py (on_merge_activate,on_fast_merge_activate): only merge if exactly two persons have been selected diff --git a/gramps2/src/plugins/WebPage.py b/gramps2/src/plugins/WebPage.py index 2e398f97c..87fecfbc3 100644 --- a/gramps2/src/plugins/WebPage.py +++ b/gramps2/src/plugins/WebPage.py @@ -1093,7 +1093,7 @@ class WebReport(Report.Report): def write_report(self): dir_name = self.target_path - if dir_name == None: + if not dir_name: dir_name = os.getcwd() elif not os.path.isdir(dir_name): parent_dir = os.path.dirname(dir_name)