comparison roundup/scripts/roundup_server.py @ 2633:a9e1fff1e793

I thought I committed this last night. Ho hum. - This implements most of the rest of the new tracker config layout: - dbinit.py split between schema.py and initial_data.py - interfaces.py gone - tracker and detectors __init__.py gone - Added some missing functionality to backends: db_exists test and db_nuke. - Implemented configuration file options in postgresql backend. - Cleaned up tracker initialisation a lot.
author Richard Jones <richard@users.sourceforge.net>
date Tue, 27 Jul 2004 00:57:19 +0000
parents 9c55f2bc5961
children 11811b313459
comparison
equal deleted inserted replaced
2632:9c55f2bc5961 2633:a9e1fff1e793
15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
16 # 16 #
17 17
18 """Command-line script that runs a server over roundup.cgi.client. 18 """Command-line script that runs a server over roundup.cgi.client.
19 19
20 $Id: roundup_server.py,v 1.57 2004-07-27 00:45:49 richard Exp $ 20 $Id: roundup_server.py,v 1.58 2004-07-27 00:57:18 richard Exp $
21 """ 21 """
22 __docformat__ = 'restructuredtext' 22 __docformat__ = 'restructuredtext'
23 23
24 # python version check 24 # python version check
25 from roundup import version_check 25 from roundup import version_check
185 env['HTTP_HOST'] = self.headers['host'] 185 env['HTTP_HOST'] = self.headers['host']
186 186
187 decoded_query = query.replace('+', ' ') 187 decoded_query = query.replace('+', ' ')
188 188
189 # do the roundup thang 189 # do the roundup thang
190 c = tracker.Client(tracker, self, env) 190 if hasattr(tracker, 'Client'):
191 c = tracker.Client(tracker, self, env)
192 else:
193 c = client.Client(tracker, self, env)
191 c.main() 194 c.main()
192 195
193 def address_string(self): 196 def address_string(self):
194 if self.LOG_IPADDRESS: 197 if self.LOG_IPADDRESS:
195 return self.client_address[0] 198 return self.client_address[0]

Roundup Issue Tracker: http://roundup-tracker.org/