webcalendar

Check-in [1b0e2aef79]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Hard to decode the intention, but this *seems* like handling a redundant way to talk about a Sunday?
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:1b0e2aef7999a9779e24e4db92c169bf2a9065961248aa85a212a30a6e072ca8
User & Date: vandys 2018-10-23 04:08:39
Context
2019-03-10
20:37
Fix "today" concept so it still works on daylight savings change days check-in: c847fd4b5f user: vandys tags: master, trunk
2018-10-23
04:08
Hard to decode the intention, but this *seems* like handling a redundant way to talk about a Sunday? check-in: 1b0e2aef79 user: vandys tags: master, trunk
2018-06-06
03:56
Stale file header check-in: 383bcce973 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to cgi-bin/webcal.py.

293
294
295
296
297
298
299
300
301














302
303
304
305
306
307
308
	return True

    # We can get a list of days here
    def init2(self, rep):
	global DAYIDX

	if rep[WER_WDAY]:
	    self.days = frozenset(DAYIDX[s.lower()] for
		s in rep[WER_WDAY].split(','))














	else:
	    self.days = frozenset([self.basetm.tm_wday])

# Monthly, by day of week
class RepeatMonthlyDay(Repeat):

    def init2(self, rep):







|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>







293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
	return True

    # We can get a list of days here
    def init2(self, rep):
	global DAYIDX

	if rep[WER_WDAY]:
	    d = set()
	    for s in rep[WER_WDAY].split(','):
		s = s.lower()

		# 1SU apparently means "this" Sunday?
		if s[0].isdigit():
		    n = int(s[0])
		    assert n == 1
		    s = s[1:]

		# Another day to add
		d.add(DAYIDX[s])

	    # Result is frozen
	    self.days = frozenset(d)

	else:
	    self.days = frozenset([self.basetm.tm_wday])

# Monthly, by day of week
class RepeatMonthlyDay(Repeat):

    def init2(self, rep):