changeset 3329:bd2e784f43aa

fix name collision in roundup.cgi script [SF#1203795]
author Richard Jones <richard@users.sourceforge.net>
date Wed, 18 May 2005 05:39:21 +0000
parents 475c8560ef9b
children 7bc09d5d9544
files CHANGES.txt cgi-bin/roundup.cgi
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Wed May 18 05:21:14 2005 +0000
+++ b/CHANGES.txt	Wed May 18 05:39:21 2005 +0000
@@ -12,6 +12,7 @@
 Fixed:
 - extra CRs in CSV export files on Windows platform (sf bug 1195742)
 - activity RDBMS columns were being reported in changes
+- fix name collision in roundup.cgi script (sf bug 1203795)
 
 
 2005-05-02 0.8.3
--- a/cgi-bin/roundup.cgi	Wed May 18 05:21:14 2005 +0000
+++ b/cgi-bin/roundup.cgi	Wed May 18 05:39:21 2005 +0000
@@ -16,7 +16,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: roundup.cgi,v 1.41 2005-04-13 05:30:06 richard Exp $
+# $Id: roundup.cgi,v 1.42 2005-05-18 05:39:21 richard Exp $
 
 # python version check
 from roundup import version_check
@@ -159,19 +159,19 @@
         else:
             tracker_home = TRACKER_HOMES[tracker]
             tracker = roundup.instance.open(tracker_home)
-            from roundup.cgi import client
+            import roundup.cgi.client
             if hasattr(tracker, 'Client'):
                 client = tracker.Client(tracker, request, os.environ)
             else:
-                client = client.Client(tracker, request, os.environ)
+                client = roundup.cgi.client.Client(tracker, request, os.environ)
             try:
                 client.main()
-            except client.Unauthorised:
+            except roundup.cgi.client.Unauthorised:
                 request.send_response(403)
                 request.send_header('Content-Type', 'text/html')
                 request.end_headers()
                 out.write('Unauthorised')
-            except client.NotFound:
+            except roundup.cgi.client.NotFound:
                 request.send_response(404)
                 request.send_header('Content-Type', 'text/html')
                 request.end_headers()

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