Skip to content

Commit e35b6fe

Browse files
author
Richard Jones
committed
disabled the reloading until it can be done properly
1 parent cef5cc2 commit e35b6fe

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

roundup-server

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
Stolen from CGIHTTPServer
55
6-
$Id: roundup-server,v 1.3 2001-07-23 08:53:44 richard Exp $
6+
$Id: roundup-server,v 1.4 2001-07-23 10:31:45 richard Exp $
77
88
"""
99
import sys
@@ -23,16 +23,13 @@ import SimpleHTTPServer
2323
# Roundup modules of use here
2424
from roundup import cgitb, cgi_client
2525

26-
# These are here temporarily until I get a real reload system in place
27-
from roundup import date, hyperdb, hyper_bsddb, roundupdb, htmltemplate
28-
2926
#
3027
## Configuration
3128
#
3229

3330
# This indicates where the Roundup instance lives
3431
ROUNDUP_INSTANCE_HOMES = {
35-
'test': '/tmp/roundup_test',
32+
'bar': '/tmp/bar',
3633
}
3734

3835
# Where to log debugging information to. Use an instance of DevNull if you
@@ -146,16 +143,16 @@ class RoundupRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
146143

147144
# reload all modules
148145
# TODO check for file timestamp changes and dependencies
149-
reload(date)
150-
reload(hyperdb)
151-
reload(roundupdb)
152-
reload(htmltemplate)
153-
reload(cgi_client)
154-
sys.path.insert(0, module_path)
155-
try:
156-
reload(instance)
157-
finally:
158-
del sys.path[0]
146+
#reload(date)
147+
#reload(hyperdb)
148+
#reload(roundupdb)
149+
#reload(htmltemplate)
150+
#reload(cgi_client)
151+
#sys.path.insert(0, module_path)
152+
#try:
153+
# reload(instance)
154+
#finally:
155+
# del sys.path[0]
159156

160157
# initialise the roundupdb, check for auth
161158
db = instance.open('admin')
@@ -220,6 +217,10 @@ if __name__ == '__main__':
220217

221218
#
222219
# $Log: not supported by cvs2svn $
220+
# Revision 1.3 2001/07/23 08:53:44 richard
221+
# Fixed the ROUNDUPS decl in roundup-server
222+
# Move the installation notes to INSTALL
223+
#
223224
# Revision 1.2 2001/07/23 04:05:05 anthonybaxter
224225
# actually quit if python version wrong
225226
#

0 commit comments

Comments
 (0)