Code

*** empty log message ***
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 4 Sep 2002 02:11:00 +0000 (02:11 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 4 Sep 2002 02:11:00 +0000 (02:11 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1056 57a73879-2fb5-44c3-a270-3262357dd7e2

cgi-bin/roundup.cgi
frontends/ZRoundup/ZRoundup.py

index d41b6303327d0e2a906f98c2f2dfe1fdfcfd5477..a34cf3a3a81e575c0d63fab64a7e5ebf1f61d814 100755 (executable)
@@ -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 @@ def main(out, err):
         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.close()
 
 #
 # $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(!)
 #
index 0be45f38af4c7934432921d4c75ac0d2038b1691..f9f6bd43260bfdc2b57a71d7df3140277db0ae9b 100644 (file)
@@ -14,7 +14,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: ZRoundup.py,v 1.10 2002-09-04 02:05:19 richard Exp $
+# $Id: ZRoundup.py,v 1.11 2002-09-04 02:11:00 richard Exp $
 #
 ''' ZRoundup module - exposes the roundup web interface to Zope
 
@@ -45,7 +45,7 @@ from AccessControl import ModuleSecurityInfo
 modulesecurity = ModuleSecurityInfo()
 
 import roundup.instance
-from roundup.cgi import NotFound
+from roundup.cgi.client import NotFound
 
 modulesecurity.declareProtected('View management screens',
     'manage_addZRoundupForm')
@@ -208,6 +208,9 @@ modulesecurity.apply(globals())
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.10  2002/09/04 02:05:19  richard
+# new cgi client here too
+#
 # Revision 1.9  2002/07/04 01:25:22  dman13
 # fixed #576086 (dumb copying mistake)
 #