Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 1409:8dc60d87ab42
Fixed a backlog of bug reports, and worked on python 2.3 compatibility:
- fixed templating filter function arguments [SF#678911]
- fixed multiselect in searching [SF#676874]
- fixed parsing of content-disposition filenames [SF#675116]
- added 'h' to roundup-server optarg list [SF#674070]
- fixed doc for db.history in anydbm and rdbms_common [SF#679221]
- fixed timelog example so it handles new issues [SF#678908]
- handle missing os.fork() [SF#681046]
- fixed roundup-reminder [SF#681042]
- fixed int assumptions about Number values [SF#677762]
- added warning filter for "FutureWarning: hex/oct constants > sys.maxint will
return positive values..." (literal 0xffff0000 in portalocker.py)
- fixed ZPT code generating SyntaxWarning for assignment to None
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 06 Feb 2003 05:43:49 +0000 |
| parents | b0d342a3548f |
| children | 79d8956de3f5 |
comparison
equal
deleted
inserted
replaced
| 1408:01c02e81e08d | 1409:8dc60d87ab42 |
|---|---|
| 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.17 2003-01-13 02:44:42 richard Exp $ | 19 $Id: roundup_server.py,v 1.18 2003-02-06 05:43:49 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 |
| 245 pidfile = None | 245 pidfile = None |
| 246 logfile = None | 246 logfile = None |
| 247 try: | 247 try: |
| 248 # handle the command-line args | 248 # handle the command-line args |
| 249 try: | 249 try: |
| 250 optlist, args = getopt.getopt(sys.argv[1:], 'n:p:u:d:l:') | 250 optlist, args = getopt.getopt(sys.argv[1:], 'n:p:u:d:l:h') |
| 251 except getopt.GetoptError, e: | 251 except getopt.GetoptError, e: |
| 252 usage(str(e)) | 252 usage(str(e)) |
| 253 | 253 |
| 254 user = ROUNDUP_USER | 254 user = ROUNDUP_USER |
| 255 for (opt, arg) in optlist: | 255 for (opt, arg) in optlist: |
| 299 sys.argv = sys.argv[:1] | 299 sys.argv = sys.argv[:1] |
| 300 address = (hostname, port) | 300 address = (hostname, port) |
| 301 | 301 |
| 302 # fork? | 302 # fork? |
| 303 if pidfile: | 303 if pidfile: |
| 304 if not hasattr(os, 'fork'): | |
| 305 print "Sorry, you can't run the server as a daemon on this" \ | |
| 306 'Operating System' | |
| 307 sys.exit(0) | |
| 304 daemonize(pidfile) | 308 daemonize(pidfile) |
| 305 | 309 |
| 306 # redirect stdout/stderr to our logfile | 310 # redirect stdout/stderr to our logfile |
| 307 if logfile: | 311 if logfile: |
| 308 # appending, unbuffered | 312 # appending, unbuffered |
