From 6a7594b95ff3271027e48ebad8277f0092425c0e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sat, 6 Mar 2010 13:31:09 +0000 Subject: [PATCH] 3665: Crash with Webcal report when linking with WebReport svn: r14649 --- src/plugins/webreport/WebCal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index 4ef02f0c0..69c80fc81 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -55,6 +55,7 @@ log = logging.getLogger(".WebPage") #------------------------------------------------------------------------ from gen.lib import date, Date, Name, Person, NameType, EventType import const +import constfunc from ReportBase import Report, ReportUtils, MenuReportOptions, CSS_FILES from gen.plug.menu import BooleanOption, NumberOption, StringOption, \ EnumeratedListOption, FilterOption, PersonOption, \ @@ -1026,7 +1027,7 @@ class WebCalReport(Report): Imagine we run gramps on Windows (heaven forbits), we don't want to see backslashes in the URL. """ - if (Utils.win): + if (constfunc.win()): fname = fname.replace('\\',"/") subdirs = self.build_subdirs(subdir, fname) return (prefix or '') + "/".join(subdirs + [fname])