\n')
- of.write('
\n')
+ year_glance_fname.write('
\n')
+ year_glance_fname.write('
\n')
# TODO. The "red square" is only valid for some style sheets.
- of.write(_('This calendar is meant to give you access to all your data at a glance '
- 'compressed into one page. Clicking on a date will take you to a '
- 'page that shows all the events for that date, if there are any!\n'))
- of.write('
\n')
- of.write('
\n\n')
+ year_glance_fname.write(_('This calendar is meant to give you access '
+ 'to all your data at a glance compressed into one page. Clicking '
+ 'on a date will take you to a page that shows all the events for '
+ 'that date, if there are any!\n'))
+ year_glance_fname.write('
\n')
# generate progress pass for "Year At A Glance"
- self.progress.set_pass(_('Creating Year At A Glance calendars'), self.end_month - self.start_month)
+ self.progress.set_pass(_('Creating Year At A Glance calendars'), \
+ self.end_month - self.start_month)
for month in range(self.start_month, self.end_month + 1):
# build the calendar
- self.calendar_build(of, "yg", year, month)
+ self.calendar_build(year_glance_fname, "yg", year, month)
# create note section for "Year At A Glance"
note = self.month_notes[month-1].strip()
note = note or " "
- of.write('\t