Skip to content

Commit 12e8596

Browse files
author
Richard Jones
committed
*** empty log message ***
1 parent 193ffba commit 12e8596

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

cgi-bin/roundup.cgi

Lines changed: 10 additions & 7 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.26 2002-09-04 01:58:33 richard Exp $
19+
# $Id: roundup.cgi,v 1.27 2002-09-04 02:11:00 richard Exp $
2020

2121
# python version check
2222
from roundup import version_check
@@ -142,20 +142,20 @@ def main(out, err):
142142
else:
143143
instance_home = ROUNDUP_INSTANCE_HOMES[instance]
144144
instance = roundup.instance.open(instance_home)
145-
from roundup.cgi import client
146-
c = instance.Client(instance, request, os.environ)
145+
from roundup.cgi.client import Unauthorised, NotFound
146+
client = instance.Client(instance, request, os.environ)
147147
try:
148-
c.main()
149-
except client.Unauthorised:
148+
client.main()
149+
except Unauthorised:
150150
request.send_response(403)
151151
request.send_header('Content-Type', 'text/html')
152152
request.end_headers()
153153
out.write('Unauthorised')
154-
except client.NotFound:
154+
except NotFound:
155155
request.send_response(404)
156156
request.send_header('Content-Type', 'text/html')
157157
request.end_headers()
158-
out.write('Not found: %s'%c.path)
158+
out.write('Not found: %s'%client.path)
159159

160160
else:
161161
import urllib
@@ -198,6 +198,9 @@ LOG.close()
198198

199199
#
200200
# $Log: not supported by cvs2svn $
201+
# Revision 1.26 2002/09/04 01:58:33 richard
202+
# fix cgi client importing
203+
#
201204
# Revision 1.25 2002/08/22 00:14:18 richard
202205
# Fix to be able to report errors even if the cgi module can't be imported(!)
203206
#

frontends/ZRoundup/ZRoundup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1515
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1616
#
17-
# $Id: ZRoundup.py,v 1.10 2002-09-04 02:05:19 richard Exp $
17+
# $Id: ZRoundup.py,v 1.11 2002-09-04 02:11:00 richard Exp $
1818
#
1919
''' ZRoundup module - exposes the roundup web interface to Zope
2020
@@ -45,7 +45,7 @@
4545
modulesecurity = ModuleSecurityInfo()
4646

4747
import roundup.instance
48-
from roundup.cgi import NotFound
48+
from roundup.cgi.client import NotFound
4949

5050
modulesecurity.declareProtected('View management screens',
5151
'manage_addZRoundupForm')
@@ -208,6 +208,9 @@ def __getitem__(self, item):
208208

209209
#
210210
# $Log: not supported by cvs2svn $
211+
# Revision 1.10 2002/09/04 02:05:19 richard
212+
# new cgi client here too
213+
#
211214
# Revision 1.9 2002/07/04 01:25:22 dman13
212215
# fixed #576086 (dumb copying mistake)
213216
#

0 commit comments

Comments
 (0)