Skip to content

Commit c46b450

Browse files
author
Richard Jones
committed
hard-coded python2.3-ism (socket.timeout) fixed
1 parent 10f0a2a commit c46b450

File tree

4 files changed

+44
-35
lines changed

4 files changed

+44
-35
lines changed

BUILD.txt

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,25 @@ want it to stay that way, too.
77
This means that we only need to ever build source releases. This is done by
88
running:
99

10-
1. Make sure the unit tests run! "./run_tests"
11-
2. Edit roundup/__init__.py and doc/announcement.txt to reflect the new
12-
version and appropriate announcements. Add truncated announcement to
13-
setup.py description field.
14-
3. python setup.py clean --all
15-
4. Edit setup.py to ensure that all information therein (version, contact
16-
information etc) is correct.
17-
5. python setup.py sdist --manifest-only
18-
6. Check the MANIFEST to make sure that any new files are included. If
19-
they are not, edit MANIFEST.in to include them. "Documentation" for
20-
MANIFEST.in may be found in disutils.filelist._parse_template_line.
21-
7. python setup.py sdist
22-
(if you find sdist a little verbose, add "--quiet" to the end of the
23-
command)
10+
1. Make sure the unit tests run! "./run_tests"
11+
2. Edit roundup/__init__.py and doc/announcement.txt to reflect the new
12+
version and appropriate announcements. Add truncated announcement to
13+
setup.py description field.
14+
3. python setup.py clean --all
15+
4. Edit setup.py to ensure that all information therein (version, contact
16+
information etc) is correct.
17+
5. python setup.py sdist --manifest-only
18+
6. Check the MANIFEST to make sure that any new files are included. If
19+
they are not, edit MANIFEST.in to include them. "Documentation" for
20+
MANIFEST.in may be found in disutils.filelist._parse_template_line.
21+
7. python setup.py sdist
22+
(if you find sdist a little verbose, add "--quiet" to the end of the
23+
command)
24+
8. unpack the new dist file in /tmp and a) run_test, and b) demo.py
25+
9. Generate gpg signature with "gpg -a --detach-sign" and upload to
26+
mechanicalcat.net
27+
10. PyPI registration
28+
11. tag the CVS for the release, eg. "cvs tag -R release-0-6-3"
2429

2530
So, those commands in a nice, cut'n'pasteable form::
2631

CHANGES.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ are given with the most recent entry first.
33

44
2003-??-?? 0.6.4
55
Fixed:
6+
- hard-coded python2.3-ism (socket.timeout) fixed
67
- Fixed activity displaying as future because of Date arithmetic fix in 0.6.3
7-
(sf bug 842027).
8+
(sf bug 842027).
9+
810

911
2003-11-14 0.6.3
1012
Fixed:

roundup/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: __init__.py,v 1.25.2.3 2003-11-11 22:25:00 richard Exp $
18+
# $Id: __init__.py,v 1.25.2.4 2003-12-04 02:39:04 richard Exp $
1919

2020
''' Roundup - issue tracking for knowledge workers.
2121
@@ -67,6 +67,6 @@
6767
much prettier cake :)
6868
'''
6969

70-
__version__ = '0.6.3'
70+
__version__ = '0.6.4'
7171

7272
# vim: set filetype=python ts=4 sw=4 et si

roundup/scripts/roundup_server.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717
""" HTTP Server that serves roundup.
1818
19-
$Id: roundup_server.py,v 1.26.2.2 2003-11-11 22:25:00 richard Exp $
19+
$Id: roundup_server.py,v 1.26.2.3 2003-12-04 02:39:04 richard Exp $
2020
"""
2121

2222
# python version check
@@ -78,26 +78,28 @@ def run_cgi(self):
7878
self.send_error(404, self.path)
7979
except client.Unauthorised:
8080
self.send_error(403, self.path)
81-
except socket.timeout:
82-
s = StringIO.StringIO()
83-
traceback.print_exc(None, s)
84-
self.log_message(str(s.getvalue()))
8581
except:
86-
# it'd be nice to be able to detect if these are going to have
87-
# any effect...
88-
self.send_response(400)
89-
self.send_header('Content-Type', 'text/html')
90-
self.end_headers()
91-
try:
92-
reload(cgitb)
93-
self.wfile.write(cgitb.breaker())
94-
self.wfile.write(cgitb.html())
95-
except:
82+
exc, val, tb = sys.exc_info()
83+
if hasattr(socket, 'timeout') and exc == socket.timeout:
9684
s = StringIO.StringIO()
9785
traceback.print_exc(None, s)
98-
self.wfile.write("<pre>")
99-
self.wfile.write(cgi.escape(s.getvalue()))
100-
self.wfile.write("</pre>\n")
86+
self.log_message(str(s.getvalue()))
87+
else:
88+
# it'd be nice to be able to detect if these are going to have
89+
# any effect...
90+
self.send_response(400)
91+
self.send_header('Content-Type', 'text/html')
92+
self.end_headers()
93+
try:
94+
reload(cgitb)
95+
self.wfile.write(cgitb.breaker())
96+
self.wfile.write(cgitb.html())
97+
except:
98+
s = StringIO.StringIO()
99+
traceback.print_exc(None, s)
100+
self.wfile.write("<pre>")
101+
self.wfile.write(cgi.escape(s.getvalue()))
102+
self.wfile.write("</pre>\n")
101103
sys.stdin = save_stdin
102104

103105
do_GET = do_POST = run_cgi

0 commit comments

Comments
 (0)