diff cgi-bin/roundup.cgi @ 1037:34297f4c8789

*** empty log message ***
author Richard Jones <richard@users.sourceforge.net>
date Wed, 04 Sep 2002 02:11:00 +0000
parents dec4711e40b3
children 4316d1432db4
line wrap: on
line diff
--- a/cgi-bin/roundup.cgi	Wed Sep 04 02:05:19 2002 +0000
+++ b/cgi-bin/roundup.cgi	Wed Sep 04 02:11:00 2002 +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.26 2002-09-04 01:58:33 richard Exp $
+# $Id: roundup.cgi,v 1.27 2002-09-04 02:11:00 richard Exp $
 
 # python version check
 from roundup import version_check
@@ -142,20 +142,20 @@
         else:
             instance_home = ROUNDUP_INSTANCE_HOMES[instance]
             instance = roundup.instance.open(instance_home)
-            from roundup.cgi import client
-            c = instance.Client(instance, request, os.environ)
+            from roundup.cgi.client import Unauthorised, NotFound
+            client = instance.Client(instance, request, os.environ)
             try:
-                c.main()
-            except client.Unauthorised:
+                client.main()
+            except Unauthorised:
                 request.send_response(403)
                 request.send_header('Content-Type', 'text/html')
                 request.end_headers()
                 out.write('Unauthorised')
-            except client.NotFound:
+            except NotFound:
                 request.send_response(404)
                 request.send_header('Content-Type', 'text/html')
                 request.end_headers()
-                out.write('Not found: %s'%c.path)
+                out.write('Not found: %s'%client.path)
 
     else:
         import urllib
@@ -198,6 +198,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.26  2002/09/04 01:58:33  richard
+# fix cgi client importing
+#
 # Revision 1.25  2002/08/22 00:14:18  richard
 # Fix to be able to report errors even if the cgi module can't be imported(!)
 #

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