From 826b21eeddd3c86fa9a54b2921e150fcce3704b8 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Wed, 4 Feb 2009 02:03:27 +0000 Subject: [PATCH] More variable name changes and adding documentation changes. svn: r11834 --- src/plugins/webreport/WebCal.py | 106 +++++++++++++++++--------------- 1 file changed, 58 insertions(+), 48 deletions(-) diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index 65e7f984d..7eb81ba80 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -414,7 +414,7 @@ class WebCalReport(Report): # Note. We use '/' here because it is a URL, not a OS dependent pathname if type(url_fname) == int: - url_fname = _get_long_month_name(url_fname) + url_fname = _get_full_month_name(url_fname) if type(nav_text) == int: nav_text = _get_short_month_name(nav_text) @@ -456,9 +456,9 @@ class WebCalReport(Report): # each year will link to January, unless self.partyear is True, # then it will link to current month. # this will always need an extension added - full_month_name = _get_long_month_name(1) + full_month_name = _get_full_month_name(1) if self.partyear and cal_year == self.today.year: - full_month_name = _get_long_month_name(self.today.month) + full_month_name = _get_full_month_name(self.today.month) # Note. We use '/' here because it is a URL, not a OS dependent # pathname. @@ -526,7 +526,7 @@ class WebCalReport(Report): """ # define names for long and short month names - full_month_name = _get_long_month_name(month) + full_month_name = _get_full_month_name(month) abbr_month_name = _get_short_month_name(month) # dow (day-of-week) uses Gramps numbering, sunday => 1, etc @@ -676,7 +676,7 @@ class WebCalReport(Report): """ This creates the header for the Calendars including style embedded for special purpose 'nr_up' - number of directory levels up, started from current page, to the - root of the directory tree (i.e. to self.html_dir). + root of the directory tree (i.e. to self.html_dir). """ of.write('\n' % pg_date) + one_day_fname.write('\n' % pg_date) - self.calendar_common(of, nr_up, year, full_month_name, title) + self.calendar_common(one_day_fname, nr_up, year, full_month_name, title) - of.write('\t

%s

\n' % pg_date) + one_day_fname.write('\t

%s

\n' % pg_date) + of = one_day_fname # because of two different fnames needing + # to access this variable # for both "WebCal" and "One Day" of.write('\t\t\t\t\t