|
16 | 16 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
17 | 17 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
18 | 18 | # |
19 | | -# $Id: roundup.cgi,v 1.40.2.1 2005-04-13 06:11:14 richard Exp $ |
| 19 | +# $Id: roundup.cgi,v 1.40.2.2 2005-05-18 05:40:43 richard Exp $ |
20 | 20 |
|
21 | 21 | # python version check |
22 | 22 | from roundup import version_check |
@@ -159,19 +159,19 @@ def main(out, err): |
159 | 159 | else: |
160 | 160 | tracker_home = TRACKER_HOMES[tracker] |
161 | 161 | tracker = roundup.instance.open(tracker_home) |
162 | | - from roundup.cgi import client |
| 162 | + import roundup.cgi.client |
163 | 163 | if hasattr(tracker, 'Client'): |
164 | 164 | client = tracker.Client(tracker, request, os.environ) |
165 | 165 | else: |
166 | | - client = client.Client(tracker, request, os.environ) |
| 166 | + client = roundup.cgi.client.Client(tracker, request, os.environ) |
167 | 167 | try: |
168 | 168 | client.main() |
169 | | - except client.Unauthorised: |
| 169 | + except roundup.cgi.client.Unauthorised: |
170 | 170 | request.send_response(403) |
171 | 171 | request.send_header('Content-Type', 'text/html') |
172 | 172 | request.end_headers() |
173 | 173 | out.write('Unauthorised') |
174 | | - except client.NotFound: |
| 174 | + except roundup.cgi.client.NotFound: |
175 | 175 | request.send_response(404) |
176 | 176 | request.send_header('Content-Type', 'text/html') |
177 | 177 | request.end_headers() |
|
0 commit comments