Skip to content

Commit 7a2a9e3

Browse files
author
Richard Jones
committed
some updates that were sitting on disk
1 parent f119074 commit 7a2a9e3

File tree

6 files changed

+59
-45
lines changed

6 files changed

+59
-45
lines changed

BUILD.txt

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +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! "python run_tests.py"
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. Tag the CVS with a release tag (ie. 'release-N-N-N')
15-
4. python setup.py clean --all
16-
5. Edit setup.py to ensure that all information therein (version, contact
17-
information etc) is correct.
18-
6. python setup.py sdist --manifest-only
19-
7. Check the MANIFEST to make sure that any new files are included. If
20-
they are not, edit MANIFEST.in to include them. "Documentation" for
21-
MANIFEST.in may be found in disutils.filelist._parse_template_line.
22-
8. python setup.py sdist
23-
(if you find sdist a little verbose, add "--quiet" to the end of the
24-
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"
2529

2630
So, those commands in a nice, cut'n'pasteable form::
2731

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ Cleanup:
5353

5454
2003-??-?? 0.6.4
5555
Fixed:
56+
- Hard-coded python2.3-ism (socket.timeout) fixed
5657
- Fixed activity displaying as future because of Date arithmetic fix in 0.6.3
57-
(sf bug 842027).
58+
(sf bug 842027).
5859

5960
2003-11-14 0.6.3
6061
Fixed:

MANIFEST.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ recursive-include test *.py *.txt
77
recursive-include doc *.html *.png *.txt *.css *.1
88
recursive-include detectors *.py
99
recursive-include templates *.* home* page*
10-
recursive-exclude roundup *.pyc *.pyo .*
11-
recursive-exclude frontends *.pyc *.pyo .*
12-
recursive-exclude templates *.pyc *.pyo .*
10+
global-exclude .cvsignore *.pyc *.pyo
1311
include run_tests *.txt demo.py
1412
exclude BUILD.txt I18N_PROGRESS.txt TODO.txt
1513
exclude doc/security.txt doc/templating.txt

TODO.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
This file has been re-purposed to contain specifically the items that need
22
doing before the next release:
33

4-
- postgresql backend
54
- full coverage analysis for unit tests
65
- migrate to numeric ID values (fixes bug 817217)
76

doc/installation.txt

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Installing Roundup
33
==================
44

5-
:Version: $Revision: 1.65 $
5+
:Version: $Revision: 1.66 $
66

77
.. contents::
88

@@ -93,8 +93,9 @@ installation:
9393
2. `configuring your first tracker`_ that all installers must follow
9494
3. then optionally `configure a web interface`_
9595
4. and optionally `configure an email interface`_
96-
5. `shared environment steps`_ to take if you're installing on a shared
96+
5. `UNIX environment steps`_ to take if you're installing on a shared
9797
UNIX machine and want to restrict local access to roundup
98+
6. `additional language codecs`_
9899

99100

100101
Basic Installation Steps
@@ -272,7 +273,7 @@ There are three web interfaces to choose from:
272273
3. `Zope product - ZRoundup`_
273274

274275
You may need to give the web server user permission to access the tracker home
275-
- see the `shared environment steps`_ for information. You may also need to
276+
- see the `UNIX environment steps`_ for information. You may also need to
276277
configure your system in some way - see `platform-specific notes`_.
277278

278279

@@ -394,8 +395,8 @@ submission user's POP account name, password and server.
394395
On windows, you would set up the command using the windows scheduler.
395396

396397

397-
Shared Environment Steps
398-
------------------------
398+
UNIX Environment Steps
399+
----------------------
399400

400401
Each tracker ideally should have its own UNIX group, so create
401402
a UNIX group (edit ``/etc/group`` or your appropriate NIS map if
@@ -431,6 +432,14 @@ responsibility of running roundup. This user:
431432
may actually login and play with the roundup setup.
432433

433434

435+
Additional Language Codecs
436+
--------------------------
437+
438+
If you intend to send messages to Roundup that use Chinese, Japanese or
439+
Korean encodings the you'll need to obtain CJKCodecs from
440+
http://cjkpython.berlios.de/
441+
442+
434443
Maintenance
435444
===========
436445

@@ -541,7 +550,7 @@ This is usually done via the following 2 steps:
541550
Linux
542551
-----
543552

544-
Make sure you read the instructions under `shared environment steps`_.
553+
Make sure you read the instructions under `UNIX environment steps`_.
545554

546555
Python 2.1.1 as shipped with SuSE7.3 might be missing module
547556
``_weakref``.
@@ -552,7 +561,8 @@ Solaris
552561

553562
You'll need to build Python.
554563

555-
Make sure you read the instructions under `shared environment steps`_.
564+
Make sure you read the instructions under `UNIX environment steps`_.
565+
556566

557567
-------------------------------------------------------------------------------
558568

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.34 2003-11-12 23:29:17 richard Exp $
19+
$Id: roundup_server.py,v 1.35 2003-12-04 02:43:07 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('%s', 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)