Mercurial > hg > rlgallery-misc
comparison web/recent.cgi @ 7:64272fc2350c
Begin importing the website.
Add the files from the website's top-level directory. Note that
recent.cgi still uses the old rlgall module.
| author | John "Elwin" Edwards <elwin@sdf.org> |
|---|---|
| date | Sun, 19 Aug 2012 21:29:06 -0700 |
| parents | |
| children | 453278a81371 |
comparison
equal
deleted
inserted
replaced
| 6:4778ab7de7aa | 7:64272fc2350c |
|---|---|
| 1 #!/usr/bin/python | |
| 2 # CGI script creating page of recent games | |
| 3 | |
| 4 import sys | |
| 5 import time | |
| 6 import rlgall | |
| 7 | |
| 8 # The required header | |
| 9 sys.stdout.write("Content-type: text/html\r\n\r\n") | |
| 10 # The top of the page | |
| 11 sys.stdout.write(rlgall.phead.format("Recent Games")) | |
| 12 sys.stdout.write(rlgall.ptop); | |
| 13 sys.stdout.write(rlgall.navtop.format("Recent")); | |
| 14 sys.stdout.write(rlgall.pti.format("Recent Expeditions")) | |
| 15 | |
| 16 for game in rlgall.gamelist: | |
| 17 game.tablerecent(sys.stdout) | |
| 18 | |
| 19 sys.stdout.write(rlgall.pend) | |
| 20 exit() |
