Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 1181:49aebf5a8691
some speedups, some fixes to the benchmarking
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 23 Sep 2002 00:50:32 +0000 |
| parents | fa7df238e2d4 |
| children | 08a13a84ed43 |
comparison
equal
deleted
inserted
replaced
| 1180:ba133c895f2d | 1181:49aebf5a8691 |
|---|---|
| 14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 16 # | 16 # |
| 17 """ HTTP Server that serves roundup. | 17 """ HTTP Server that serves roundup. |
| 18 | 18 |
| 19 $Id: roundup_server.py,v 1.10 2002-09-10 03:01:19 richard Exp $ | 19 $Id: roundup_server.py,v 1.11 2002-09-23 00:50:32 richard Exp $ |
| 20 """ | 20 """ |
| 21 | 21 |
| 22 # python version check | 22 # python version check |
| 23 from roundup import version_check | 23 from roundup import version_check |
| 24 | 24 |
| 32 | 32 |
| 33 # | 33 # |
| 34 ## Configuration | 34 ## Configuration |
| 35 # | 35 # |
| 36 | 36 |
| 37 # This indicates where the Roundup instance lives | 37 # This indicates where the Roundup trackers live. They're given as NAME -> |
| 38 # TRACKER_HOME, where the NAME part is used in the URL to select the | |
| 39 # appropriate reacker. | |
| 40 # Make sure the NAME part doesn't include any url-unsafe characters like | |
| 41 # spaces, as these confuse the cookie handling in browsers like IE. | |
| 38 TRACKER_HOMES = { | 42 TRACKER_HOMES = { |
| 39 'bar': '/tmp/bar', | 43 'bar': '/tmp/bar', |
| 40 } | 44 } |
| 41 | 45 |
| 42 ROUNDUP_USER = None | 46 ROUNDUP_USER = None |
| 180 identified in the URL (it's the first part of the URL path). The | 184 identified in the URL (it's the first part of the URL path). The |
| 181 instance home is the directory that was identified when you did | 185 instance home is the directory that was identified when you did |
| 182 "roundup-admin init". You may specify any number of these name=home | 186 "roundup-admin init". You may specify any number of these name=home |
| 183 pairs on the command-line. For convenience, you may edit the | 187 pairs on the command-line. For convenience, you may edit the |
| 184 TRACKER_HOMES variable in the roundup-server file instead. | 188 TRACKER_HOMES variable in the roundup-server file instead. |
| 189 Make sure the name part doesn't include any url-unsafe characters like | |
| 190 spaces, as these confuse the cookie handling in browsers like IE. | |
| 185 ''')%locals() | 191 ''')%locals() |
| 186 sys.exit(0) | 192 sys.exit(0) |
| 187 | 193 |
| 188 def daemonize(pidfile): | 194 def daemonize(pidfile): |
| 189 ''' Turn this process into a daemon. | 195 ''' Turn this process into a daemon. |
