Skip to content

Commit 19305b3

Browse files
author
Richard Jones
committed
info for installing the CSV module
1 parent 38f4b39 commit 19305b3

File tree

2 files changed

+41
-9
lines changed

2 files changed

+41
-9
lines changed

doc/customizing.txt

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

5-
:Version: $Revision: 1.117 $
5+
:Version: $Revision: 1.118 $
66

77
.. This document borrows from the ZopeBook section on ZPT. The original is at:
88
http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -2923,18 +2923,17 @@ vacation". Not very useful, and relatively easy to stop.
29232923
consists of::
29242924

29252925
def nosyreaction(db, cl, nodeid, oldvalues):
2926+
users = db.user
2927+
messages = db.msg
29262928
# send a copy of all new messages to the nosy list
29272929
for msgid in determineNewMessages(cl, nodeid, oldvalues):
29282930
try:
2929-
users = db.user
2930-
messages = db.msg
2931-
29322931
# figure the recipient ids
29332932
sendto = []
2934-
r = {}
2933+
seen_message = {}
29352934
recipients = messages.get(msgid, 'recipients')
29362935
for recipid in messages.get(msgid, 'recipients'):
2937-
r[recipid] = 1
2936+
seen_message[recipid] = 1
29382937

29392938
# figure the author's id, and indicate they've received
29402939
# the message
@@ -2945,7 +2944,7 @@ vacation". Not very useful, and relatively easy to stop.
29452944
if (db.config.MESSAGES_TO_AUTHOR == 'yes' and
29462945
users.get(authid, 'username') != 'anonymous'):
29472946
sendto.append(authid)
2948-
r[authid] = 1
2947+
seen_message[authid] = 1
29492948

29502949
# now figure the nosy people who weren't recipients
29512950
nosy = cl.get(nodeid, 'nosy')
@@ -2956,7 +2955,7 @@ vacation". Not very useful, and relatively easy to stop.
29562955
if users.get(nosyid, 'username') == 'anonymous':
29572956
continue
29582957
# make sure they haven't seen the message already
2959-
if not r.has_key(nosyid):
2958+
if not seen_message.has_key(nosyid):
29602959
# send it to them
29612960
sendto.append(nosyid)
29622961
recipients.append(nosyid)

doc/installation.txt

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

5-
:Version: $Revision: 1.68 $
5+
:Version: $Revision: 1.69 $
66

77
.. contents::
88

@@ -44,6 +44,38 @@ distribution (at http://www.activestate.com/Products/ActivePython/), or you'll
4444
have to install the win32all package separately (get it from
4545
http://starship.python.net/crew/mhammond/win32/).
4646

47+
Non-Python2.3 users may need to `install the "CSV" module`_.
48+
49+
Install the "CSV" module
50+
------------------------
51+
52+
Note: CSV stands for Comma-Separated-Value. These files are used by all
53+
manner of programs (eg. spreadsheets) to exchange data.
54+
55+
The "CSV" module is required if you wish to import or export data in the
56+
tracker, or if you wish to use the online generic class editing facility.
57+
58+
If you're using a version of Python older than 2.3, then you will need to
59+
install the "CSV" module from `Object Craft`_. Users of Python2.3 and later
60+
don't need to. If you have a C compiler installed, then download the source
61+
and follow their installation instructions (simply ``python setup.py
62+
install``.)
63+
64+
If you're on Windows and don't have a C compiler, then you'll need to
65+
download the pre-compiled ``csv.pyd`` file and install it. To install, just
66+
copy it to your Python installation in the ``lib\site-packages`` directory.
67+
For Python 2.2, this would be::
68+
69+
c:\python22\lib\site-packages
70+
71+
Once the CSV module is installed, you *must* restart roundup-server if it
72+
is already running, or the new module won't be detected.
73+
74+
If you're on some other platform and don't have a C compiler, you'll need
75+
to ask for help on the roundup-users mailing list.
76+
77+
.. _`Object Craft`: http://object-craft.com.au/
78+
4779

4880
Getting Roundup
4981
===============
@@ -443,6 +475,7 @@ Korean encodings the you'll need to obtain CJKCodecs from
443475
http://cjkpython.berlios.de/
444476

445477

478+
446479
Maintenance
447480
===========
448481

0 commit comments

Comments
 (0)