Attachment 'MonthCalendar.py.diff'

Download

   1 --- MonthCalendar.py.orig	2010-03-24 16:47:37.179603140 +0900
   2 +++ MonthCalendar.py	2010-03-24 16:58:13.169183621 +0900
   3 @@ -281,7 +281,7 @@
   4  
   5      if parmpagename != [thispage]:
   6          pagelinks = ''
   7 -        r, g, b = (255, 0, 0)
   8 +        r, g, b = (195, 217, 255)
   9          l = len(parmpagename[0])
  10          steps = len(parmpagename)
  11          maxsteps = (255 / colorstep)
  12 @@ -352,7 +352,7 @@
  13                  if daypage.exists() and request.user.may.read(link):
  14                      csslink = "cal-usedday"
  15                      query = {}
  16 -                    r, g, b, u = (255, 0, 0, 1)
  17 +                    r, g, b, u = (252, 252, 252, 1)
  18                      daycontent = daypage.get_raw_body()
  19                      header1_re = re.compile(r'^\s*=\s(.*)\s=$', re.MULTILINE) # re.UNICODE
  20                      titletext = []
  21 @@ -374,7 +374,7 @@
  22                          query = {'action': 'edit', 'template': parmtemplate}
  23                      else:
  24                          query = {}
  25 -                    r, g, b, u = (255, 255, 255, 0)
  26 +                    r, g, b, u = (252, 252, 252, 0)
  27                      if wkday in wkend:
  28                          csslink = "cal-weekend"
  29                      attrs = {'rel': 'nofollow'}
  30 @@ -392,7 +392,8 @@
  31                  fmtlink = formatter.url(1, daypage.url(request, query), csslink, **attrs) + str(day) + formatter.url(0)
  32                  if day == currentday and month == currentmonth and year == currentyear:
  33                      cssday = "cal-today"
  34 -                    fmtlink = "<b>%s</b>" % fmtlink # for browser with CSS probs
  35 +                    fmtlink = "%s" % fmtlink # for browser with CSS probs
  36 +                    style = 'background-color:#ffffaa'
  37                  else:
  38                      cssday = "cal-nottoday"
  39                  restdn.append('  <td style="%s" class="%s">%s</td>\n' % (style, cssday, fmtlink))

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] (2010-10-03 02:20:40, 0.2 KB) [[attachment:E30B_20.gif]]
  • [get | view] (2010-03-24 08:19:05, 1.9 KB) [[attachment:MonthCalendar.py.diff]]
  • [get | view] (2009-07-31 15:17:37, 2.3 KB) [[attachment:MyCalendar.png]]
  • [get | view] (2009-07-31 14:39:22, 3.3 KB) [[attachment:OriginalCalendar.png]]
  • [get | view] (2009-09-21 13:15:13, 3.0 KB) [[attachment:binary.png]]
  • [get | view] (2010-03-26 13:07:50, 2.0 KB) [[attachment:common.css.diff]]
 All files | Selected Files: delete move to page copy to page

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