Mercurial > p > roundup > code
annotate roundup/templates/minimal/config.py @ 1360:aa7e4e8b14be
allow additional control over the roundupdb email sending...
...explicit cc addresses, different from address and different
nosy list property.
(thanks John Rouillard)
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 12 Jan 2003 00:41:27 +0000 |
| parents | 9371d34141bd |
| children |
| rev | line source |
|---|---|
|
1226
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 # |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/) |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
3 # This module is free software, and you may redistribute it and/or modify |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
4 # under the same terms as Python, so long as this copyright message and |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
5 # disclaimer are retained in their original form. |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
6 # |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
9 # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
10 # POSSIBILITY OF SUCH DAMAGE. |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
11 # |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
17 # |
|
1360
aa7e4e8b14be
allow additional control over the roundupdb email sending...
Richard Jones <richard@users.sourceforge.net>
parents:
1334
diff
changeset
|
18 # $Id: config.py,v 1.5 2003-01-12 00:41:27 richard Exp $ |
|
1226
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
19 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
20 import os |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
21 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
22 # roundup home is this package's directory |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
23 TRACKER_HOME=os.path.split(__file__)[0] |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
24 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
25 # The SMTP mail host that roundup will use to send mail |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
26 MAILHOST = 'localhost' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
27 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
28 # The domain name used for email addresses. |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
29 MAIL_DOMAIN = 'your.tracker.email.domain.example' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
30 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
31 # This is the directory that the database is going to be stored in |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
32 DATABASE = os.path.join(TRACKER_HOME, 'db') |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
33 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
34 # This is the directory that the HTML templates reside in |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
35 TEMPLATES = os.path.join(TRACKER_HOME, 'html') |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
36 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
37 # A descriptive name for your roundup instance |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
38 TRACKER_NAME = 'Roundup issue tracker' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
39 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
40 # The email address that mail to roundup should go to |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
41 TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
42 |
|
1334
9371d34141bd
more words for configuring the tracker web var
Richard Jones <richard@users.sourceforge.net>
parents:
1320
diff
changeset
|
43 # The web address that the tracker is viewable at. This will be included in |
|
9371d34141bd
more words for configuring the tracker web var
Richard Jones <richard@users.sourceforge.net>
parents:
1320
diff
changeset
|
44 # information sent to users of the tracker. The URL MUST include the cgi-bin |
|
9371d34141bd
more words for configuring the tracker web var
Richard Jones <richard@users.sourceforge.net>
parents:
1320
diff
changeset
|
45 # part or anything else that is required to get to the home page of the |
|
9371d34141bd
more words for configuring the tracker web var
Richard Jones <richard@users.sourceforge.net>
parents:
1320
diff
changeset
|
46 # tracker. You MUST include a trailing '/' in the URL. |
|
9371d34141bd
more words for configuring the tracker web var
Richard Jones <richard@users.sourceforge.net>
parents:
1320
diff
changeset
|
47 TRACKER_WEB = 'http://tracker.example/cgi-bin/roundup.cgi/bugs/' |
|
1226
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
48 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
49 # The email address that roundup will complain to if it runs into trouble |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
50 ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
51 |
|
1360
aa7e4e8b14be
allow additional control over the roundupdb email sending...
Richard Jones <richard@users.sourceforge.net>
parents:
1334
diff
changeset
|
52 # Additional text to include in the "name" part of the From: address used |
|
aa7e4e8b14be
allow additional control over the roundupdb email sending...
Richard Jones <richard@users.sourceforge.net>
parents:
1334
diff
changeset
|
53 # in nosy messages. If the sending user is "Foo Bar", the From: line is |
|
aa7e4e8b14be
allow additional control over the roundupdb email sending...
Richard Jones <richard@users.sourceforge.net>
parents:
1334
diff
changeset
|
54 # usually: "Foo Bar" <issue_tracker@tracker.example> |
|
aa7e4e8b14be
allow additional control over the roundupdb email sending...
Richard Jones <richard@users.sourceforge.net>
parents:
1334
diff
changeset
|
55 # the EMAIL_FROM_TAG goes inside the "Foo Bar" quotes like so: |
|
aa7e4e8b14be
allow additional control over the roundupdb email sending...
Richard Jones <richard@users.sourceforge.net>
parents:
1334
diff
changeset
|
56 # "Foo Bar EMAIL_FROM_TAG" <issue_tracker@tracker.example> |
|
aa7e4e8b14be
allow additional control over the roundupdb email sending...
Richard Jones <richard@users.sourceforge.net>
parents:
1334
diff
changeset
|
57 EMAIL_FROM_TAG = "" |
|
aa7e4e8b14be
allow additional control over the roundupdb email sending...
Richard Jones <richard@users.sourceforge.net>
parents:
1334
diff
changeset
|
58 |
|
1226
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
59 # |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
60 # SECURITY DEFINITIONS |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
61 # |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
62 # define the Roles that a user gets when they register with the tracker |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
63 # these are a comma-separated string of role names (e.g. 'Admin,User') |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
64 NEW_WEB_USER_ROLES = 'User' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
65 NEW_EMAIL_USER_ROLES = 'User' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
66 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
67 # Send nosy messages to the author of the message |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
68 MESSAGES_TO_AUTHOR = 'no' # either 'yes' or 'no' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
69 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
70 # Does the author of a message get placed on the nosy list automatically? |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
71 # If 'new' is used, then the author will only be added when a message |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
72 # creates a new issue. If 'yes', then the author will be added on followups |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
73 # too. If 'no', they're never added to the nosy. |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
74 ADD_AUTHOR_TO_NOSY = 'new' # one of 'yes', 'no', 'new' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
75 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
76 # Do the recipients (To:, Cc:) of a message get placed on the nosy list? |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
77 # If 'new' is used, then the recipients will only be added when a message |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
78 # creates a new issue. If 'yes', then the recipients will be added on followups |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
79 # too. If 'no', they're never added to the nosy. |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
80 ADD_RECIPIENTS_TO_NOSY = 'new' # either 'yes', 'no', 'new' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
81 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
82 # Where to place the email signature |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
83 EMAIL_SIGNATURE_POSITION = 'bottom' # one of 'top', 'bottom', 'none' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
84 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
85 # Keep email citations when accepting messages. Setting this to "no" strips |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
86 # out "quoted" text from the message. Signatures are also stripped. |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
87 EMAIL_KEEP_QUOTED_TEXT = 'yes' # either 'yes' or 'no' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
88 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
89 # Preserve the email body as is - that is, keep the citations _and_ |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
90 # signatures. |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
91 EMAIL_LEAVE_BODY_UNCHANGED = 'no' # either 'yes' or 'no' |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
92 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
93 # Default class to use in the mailgw if one isn't supplied in email |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
94 # subjects. To disable, comment out the variable below or leave it blank. |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
95 # Examples: |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
96 MAIL_DEFAULT_CLASS = 'issue' # use "issue" class by default |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
97 #MAIL_DEFAULT_CLASS = '' # disable (or just comment the var out) |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
98 |
|
0ef27b438916
adding the "minimal" template
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
99 # vim: set filetype=python ts=4 sw=4 et si |
