Skip to content

Commit aabbaa2

Browse files
author
Richard Jones
committed
fix name collision in roundup.cgi script [SF#1203795]
1 parent ab55b50 commit aabbaa2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Feature:
1212
Fixed:
1313
- extra CRs in CSV export files on Windows platform (sf bug 1195742)
1414
- activity RDBMS columns were being reported in changes
15+
- fix name collision in roundup.cgi script (sf bug 1203795)
1516

1617

1718
2005-05-02 0.8.3

cgi-bin/roundup.cgi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundup.cgi,v 1.41 2005-04-13 05:30:06 richard Exp $
19+
# $Id: roundup.cgi,v 1.42 2005-05-18 05:39:21 richard Exp $
2020

2121
# python version check
2222
from roundup import version_check
@@ -159,19 +159,19 @@ def main(out, err):
159159
else:
160160
tracker_home = TRACKER_HOMES[tracker]
161161
tracker = roundup.instance.open(tracker_home)
162-
from roundup.cgi import client
162+
import roundup.cgi.client
163163
if hasattr(tracker, 'Client'):
164164
client = tracker.Client(tracker, request, os.environ)
165165
else:
166-
client = client.Client(tracker, request, os.environ)
166+
client = roundup.cgi.client.Client(tracker, request, os.environ)
167167
try:
168168
client.main()
169-
except client.Unauthorised:
169+
except roundup.cgi.client.Unauthorised:
170170
request.send_response(403)
171171
request.send_header('Content-Type', 'text/html')
172172
request.end_headers()
173173
out.write('Unauthorised')
174-
except client.NotFound:
174+
except roundup.cgi.client.NotFound:
175175
request.send_response(404)
176176
request.send_header('Content-Type', 'text/html')
177177
request.end_headers()

0 commit comments

Comments
 (0)