webcalendar

Check-in [564bb5cc45]
Login

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

Overview
Comment:Make it easier to view another day
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:564bb5cc45d43a434c9ad391705e9674feb74c0781e27a46b8330f8c6de71251
User & Date: ajv-899-334-8894@vsta.org 2018-03-29 04:19:53
Context
2018-03-29
04:20
Fix some breakage; looks like PHP has changed a bit since the source was written. check-in: 63a1e79c45 user: ajv-899-334-8894@vsta.org tags: master, trunk
04:19
Make it easier to view another day check-in: 564bb5cc45 user: ajv-899-334-8894@vsta.org tags: master, trunk
2018-02-05
17:01
Add duration check-in: 818ac02765 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to cgi-bin/ttoday.py.

16
17
18
19
20
21
22
23



24
25

26
27
28
29
30
31
32

# Set up when we're manually invoked (for testing)
def init_cli():
    global uname, Target

    if not os.isatty(0):
	raise Exception, "Bad CLI invocation"
    if len(sys.argv) > 1:



	uname = sys.argv[1]
    if len(sys.argv) > 2:

	Target = time.strptime(sys.argv[2], "%m/%d/%Y")

# Shortcut; we use it a lot
w = sys.stdout.write

# Pick out entries for today
def filter_target(ev):







|
>
>
>
|
|
>







16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

# Set up when we're manually invoked (for testing)
def init_cli():
    global uname, Target

    if not os.isatty(0):
	raise Exception, "Bad CLI invocation"
    if len(sys.argv) == 2:
	if sys.argv[1][0].isdigit():
	    Target = time.strptime(sys.argv[1], "%m/%d/%Y")
	else:
	    uname = sys.argv[1]
    elif len(sys.argv) > 2:
	uname = sys.argv[1]
	Target = time.strptime(sys.argv[2], "%m/%d/%Y")

# Shortcut; we use it a lot
w = sys.stdout.write

# Pick out entries for today
def filter_target(ev):