Attachment 'defaults-099-01.patch'

Download

   1 Index: EventCalendar.py
   2 ===================================================================
   3 --- EventCalendar.py	(revision 232)
   4 +++ EventCalendar.py	(working copy)
   5 @@ -29,6 +29,7 @@
   6          * showerror: shows error messages below the calendar if event data format is invalid. (1: enalbed, 0: disabled). default: 1
   7          * showpagelist: shows a list of the pages used for event data below the calendar. (1: enalbed, 0: disabled). default: 1
   8          * showweeknumber: shows the week number of the year (1: enalbed, 0: disabled). default: 0
   9 +        * configpage: the page that defines default config, in particular labels. default: 'EventCalendarDefaults'
  10          
  11      
  12      <Event Data Format>
  13 @@ -212,6 +213,7 @@
  14      curdate = ''
  15      bgcolor = ''
  16      category = ''
  17 +    defaultconfigpage = 'EventCalendarDefaults'
  18      upcomingrange = 0
  19      changeview = 0
  20      numcal = 1
  21 @@ -422,6 +424,12 @@
  22      except (TypeError, ValueError):
  23          Params.showpagelist = 1
  24   
  25 +    default_cfg_page = 'EventCalendarDefaults'
  26 +    if hasattr(request.cfg, 'event_calendar_default_cfg_page'):
  27 +        default_cfg_page = request.cfg.event_calendar_default_cfg_page
  28 +
  29 +    Params.defaultconfigpage = params.get('configpage', default_cfg_page)
  30 +
  31      # default bgcolor
  32      Params.bgcolor = '#ddffdd'
  33      
  34 @@ -1468,6 +1476,11 @@
  35  
  36      
  37      if Globs.page_action == 'refresh' or cache_pages.needsUpdate(arena._text_filename()) or timedelta_days >= 1:
  38 +        cfgpage = Page(request, Params.defaultconfigpage)
  39 +        if cfgpage.exists():
  40 +            formatter.pagelink(1, pagename=cfgpage.page_name)
  41 +            eventpages.append(cfgpage.page_name)
  42 +
  43          categorypages = searchPages(request, category)
  44          for page in categorypages:
  45              # this is to workaround the bug in the category search returning

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2005-10-31 18:42:02, 65.4 KB) [[attachment:EventCalendar-080.py]]
  • [get | view] (2005-11-22 17:40:26, 55.4 KB) [[attachment:EventCalendar-090.py]]
  • [get | view] (2006-01-15 16:25:08, 57.2 KB) [[attachment:EventCalendar-091.py]]
  • [get | view] (2006-01-17 08:02:06, 75.4 KB) [[attachment:EventCalendar-092.py]]
  • [get | view] (2006-01-18 03:54:33, 75.6 KB) [[attachment:EventCalendar-093.py]]
  • [get | view] (2006-02-25 09:00:17, 74.8 KB) [[attachment:EventCalendar-094-easytime.py]]
  • [get | view] (2006-02-06 04:39:13, 76.2 KB) [[attachment:EventCalendar-094.py]]
  • [get | view] (2006-04-17 13:21:03, 122.7 KB) [[attachment:EventCalendar-096.py]]
  • [get | view] (2006-05-12 15:26:40, 150.6 KB) [[attachment:EventCalendar-098.py]]
  • [get | view] (2008-11-05 16:58:27, 3.2 KB) [[attachment:EventCalendar-099-01.py.patch]]
  • [get | view] (2006-05-23 09:50:33, 152.3 KB) [[attachment:EventCalendar-099.py]]
  • [get | view] (2008-02-14 05:18:57, 1.0 KB) [[attachment:EventCalendar-099.py.patch]]
  • [get | view] (2009-07-15 23:35:13, 151.1 KB) [[attachment:EventCalendar-099a.py]]
  • [get | view] (2013-01-21 02:05:25, 152.4 KB) [[attachment:EventCalendar-099b.py]]
  • [get | view] (2006-11-30 15:51:59, 1.8 KB) [[attachment:defaults-099-01.patch]]
  • [get | view] (2005-10-31 18:35:06, 5.0 KB) [[attachment:eventcal-080.css]]
  • [get | view] (2005-10-31 18:35:01, 11.3 KB) [[attachment:eventcal-080.py]]
  • [get | view] (2005-11-22 17:40:51, 6.8 KB) [[attachment:eventcal-090.css]]
  • [get | view] (2005-11-22 17:40:40, 18.1 KB) [[attachment:eventcal-090.py]]
  • [get | view] (2006-04-17 13:22:09, 8.9 KB) [[attachment:eventcal-096.css]]
  • [get | view] (2006-02-08 02:31:50, 1.4 KB) [[attachment:eventcalendar-094-01.patch]]
  • [get | view] (2006-11-30 15:52:26, 12.2 KB) [[attachment:label_priority-099-01.patch]]
  • [get | view] (2006-11-16 17:06:28, 1.1 KB) [[attachment:pagelinks-099-01.patch]]
  • [get | view] (2006-11-16 17:06:52, 2.9 KB) [[attachment:pagelist-099-01.patch]]
  • [get | view] (2006-03-29 07:37:02, 118.7 KB) [[attachment:snap-daily.jpg]]
  • [get | view] (2006-01-18 03:52:49, 23.2 KB) [[attachment:snap-list.jpg]]
  • [get | view] (2006-01-18 03:52:40, 37.4 KB) [[attachment:snap-monthly.jpg]]
  • [get | view] (2006-03-29 07:35:54, 43.8 KB) [[attachment:snap-simple.jpg]]
  • [get | view] (2006-01-18 03:53:04, 29.4 KB) [[attachment:snap-upcoming.jpg]]
  • [get | view] (2006-03-29 07:36:43, 161.0 KB) [[attachment:snap-weekly.jpg]]
  • [get | view] (2007-06-12 19:51:39, 55.0 KB) [[attachment:time_bug.PNG]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.