summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 54c700a)
raw | patch | inline | side by side (parent: 54c700a)
author | anthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 19 Jul 2001 10:43:01 +0000 (10:43 +0000) | ||
committer | anthonybaxter <anthonybaxter@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 19 Jul 2001 10:43:01 +0000 (10:43 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@15 57a73879-2fb5-44c3-a270-3262357dd7e2
config.py | patch | blob | history | |
server.py | patch | blob | history |
diff --git a/config.py b/config.py
index 9261da81a77e8cc189df4e9b386bc8915330eee7..01d807d9e5e104574ea69ca0468ca82c94ed59d0 100644 (file)
--- a/config.py
+++ b/config.py
-# $Id: config.py,v 1.5 2001-07-19 06:27:07 anthonybaxter Exp $
+# $Id: config.py,v 1.6 2001-07-19 10:43:01 anthonybaxter Exp $
-ROUNDUP_HOME=MAIL_DOMAIN=MAILHOST=None
+ROUNDUP_HOME=MAIL_DOMAIN=MAILHOST=HTTP_HOST=None
+HTTP_PORT=0
try:
from localconfig import *
if not MAIL_DOMAIN:
MAIL_DOMAIN = 'bizarsoftware.com.au'
+# the next two are only used for the standalone HTTP server.
+if not HTTP_HOST:
+ HTTP_HOST = ''
+if not HTTP_PORT:
+ HTTP_PORT = 9080
+
# This is the directory that the database is going to be stored in
DATABASE = os.path.join(ROUNDUP_HOME, 'db')
#
# $Log: not supported by cvs2svn $
+# Revision 1.5 2001/07/19 06:27:07 anthonybaxter
+# fixing (manually) the (dollarsign)Log(dollarsign) entries caused by
+# my using the magic (dollarsign)Id(dollarsign) and (dollarsign)Log(dollarsign)
+# strings in a commit message. I'm a twonk.
+#
+# Also broke the help string in two.
+#
# Revision 1.4 2001/07/19 05:52:22 anthonybaxter
# Added CVS keywords Id and Log to all python files.
#
diff --git a/server.py b/server.py
index fdb48255da8a64f395c0582f4f34acf26ba9d97f..7aece05ca16f8649a964bc9843b2dd32ea4a8493 100755 (executable)
--- a/server.py
+++ b/server.py
Stolen from CGIHTTPServer
-$Id: server.py,v 1.3 2001-07-19 06:27:07 anthonybaxter Exp $
+$Id: server.py,v 1.4 2001-07-19 10:43:01 anthonybaxter Exp $
"""
import sys
nobody = 1 + max(map(lambda x: x[2], pwd.getpwall()))
return nobody
-if __name__ == '__main__':
- address = ('dirk.adroit', 9080)
+def main():
+ from config import HTTP_HOST, HTTP_PORT
+ address = (HTTP_HOST, HTTP_PORT)
httpd = BaseHTTPServer.HTTPServer(address, RoundupRequestHandler)
print 'Roundup server started on', address
httpd.serve_forever()
+if __name__ == '__main__':
+ main()
+
#
# $Log: not supported by cvs2svn $
+# Revision 1.3 2001/07/19 06:27:07 anthonybaxter
+# fixing (manually) the (dollarsign)Log(dollarsign) entries caused by
+# my using the magic (dollarsign)Id(dollarsign) and (dollarsign)Log(dollarsign)
+# strings in a commit message. I'm a twonk.
+#
+# Also broke the help string in two.
+#
# Revision 1.2 2001/07/19 05:52:22 anthonybaxter
# Added CVS keywords Id and Log to all python files.
#