Attachment 'eventcalendar-094-01.patch'
Download 1 --- EventCalendar-094.py 2006-02-08 11:17:28.343750000 +0900
2 +++ EventCalendar-095.py 2006-02-08 11:11:25.296875000 +0900
3
4 @@ -565,7 +565,7 @@
5
6 # sort events
7 sorted_eventids = events.keys()
8 - sorted_eventids.sort(cmp=lambda x,y: cmp(events[x]['startdate'], events[y]['startdate']))
9 + sorted_eventids.sort(comp_list_events)
10
11 for eid in sorted_eventids:
12 if not events[eid]['clone']:
13 @@ -636,7 +636,7 @@
14
15 # sort events
16 sorted_eventids = events.keys()
17 - sorted_eventids.sort(cmp=lambda x,y: cmp(events[x]['startdate'], events[y]['startdate']))
18 + sorted_eventids.sort(comp_list_events)
19
20 for eid in sorted_eventids:
21 html_event_rows.append( listshow_event(events[eid], form_vals) )
22 @@ -728,6 +728,12 @@
23 return 1
24
25
26 +# sort events in the list by start date of the event
27 +def comp_list_events(xid, yid):
28 + events = Globs.events
29 +
30 + return cmp(events[xid]['startdate'], events[yid]['startdate'])
31 +
32 # load events from wiki pages
33 def loadEvents(datefrom='', dateto='', nocache=0):
34
35 @@ -1021,6 +1027,9 @@
36
37 else:
38 events = raw_events
39 +
40 + # store event list into global variables in order to sort them
41 + Globs.events = events
42
43 debug(u'Total %d of events are loaded finally.' % len(events))
44
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.You are not allowed to attach a file to this page.