From ba5f5ea7eb82c02acac8c43fd14c13c56ee49fad Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Mon, 22 Feb 2010 08:17:36 +0000 Subject: [PATCH] Missed () in some constfunc.win(). svn: r14434 --- src/plugins/webreport/NarrativeWeb.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 2e97d9006..43814681a 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -1268,7 +1268,7 @@ class BasePage(object): # TODO. Check if build_url_fname can be used. newpath = "/".join(['..']*3 + [newpath]) - if ( constfunc.win ): + if constfunc.win(): newpath = newpath.replace('\\',"/") # begin hyperlink @@ -1346,7 +1346,7 @@ class BasePage(object): real_path, newpath = self.report.prepare_copy_media(photo) # TODO. Check if build_url_fname can be used. newpath = "/".join(['..']*3 + [newpath]) - if ( constfunc.win ): + if constfunc.win(): newpath = newpath.replace('\\',"/") # begin hyperlink @@ -3628,7 +3628,7 @@ class IndividualPage(BasePage): if mime_type: (photoUrl, thumbnailUrl) = self.report.prepare_copy_media(photo) thumbnailUrl = "/".join(['..']*3 + [thumbnailUrl]) - if ( constfunc.win ): + if constfunc.win(): thumbnailUrl = thumbnailUrl.replace('\\',"/") url = self.report.build_url_fname_html(person.handle, "ppl", True) boxbg += self.person_link(url, person, name_style = True, @@ -5441,7 +5441,7 @@ class NavWebReport(Report): if up: subdirs = ['..']*3 + subdirs nname = "/".join(subdirs + [fname]) - if ( constfunc.win ): + if constfunc.win(): nname = nname.replace('\\',"/") return nname