Mercurial > p > roundup > code
comparison templates/classic/config.py @ 2119:cc4667ef3f12
Added the ability to toggle where error messages go.
They either go to the user (default, for backwards compatibility), the
dispatcher, or both. These are able to be toggled via settings in config.py.
Please refer to upgrading.txt for more details. (And Richard, let me know
if I've done anything wrong with this checkin. :))
| author | Eddie Parker <eparker@users.sourceforge.net> |
|---|---|
| date | Thu, 25 Mar 2004 19:27:15 +0000 |
| parents | be047db3dd3d |
| children | fd5459469069 |
comparison
equal
deleted
inserted
replaced
| 2118:917826e3fb54 | 2119:cc4667ef3f12 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: config.py,v 1.5 2004-02-23 05:29:05 richard Exp $ | 18 # $Id: config.py,v 1.6 2004-03-25 19:27:15 eparker Exp $ |
| 19 | 19 |
| 20 import os | 20 import os |
| 21 | 21 |
| 22 # roundup home is this package's directory | 22 # roundup home is this package's directory |
| 23 TRACKER_HOME=os.path.split(__file__)[0] | 23 TRACKER_HOME=os.path.split(__file__)[0] |
| 61 TRACKER_WEB = 'http://tracker.example/cgi-bin/roundup.cgi/bugs/' | 61 TRACKER_WEB = 'http://tracker.example/cgi-bin/roundup.cgi/bugs/' |
| 62 | 62 |
| 63 # The email address that roundup will complain to if it runs into trouble | 63 # The email address that roundup will complain to if it runs into trouble |
| 64 ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN | 64 ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN |
| 65 | 65 |
| 66 # The 'dispatcher' is a role that can get notified of new items to the database. | |
| 67 DISPATCHER_EMAIL = ADMIN_EMAIL | |
| 68 | |
| 66 # Additional text to include in the "name" part of the From: address used | 69 # Additional text to include in the "name" part of the From: address used |
| 67 # in nosy messages. If the sending user is "Foo Bar", the From: line is | 70 # in nosy messages. If the sending user is "Foo Bar", the From: line is |
| 68 # usually: | 71 # usually: |
| 69 # "Foo Bar" <issue_tracker@tracker.example> | 72 # "Foo Bar" <issue_tracker@tracker.example> |
| 70 # the EMAIL_FROM_TAG goes inside the "Foo Bar" quotes like so: | 73 # the EMAIL_FROM_TAG goes inside the "Foo Bar" quotes like so: |
| 71 # "Foo Bar EMAIL_FROM_TAG" <issue_tracker@tracker.example> | 74 # "Foo Bar EMAIL_FROM_TAG" <issue_tracker@tracker.example> |
| 72 EMAIL_FROM_TAG = "" | 75 EMAIL_FROM_TAG = "" |
| 76 | |
| 77 | |
| 78 # Send error messages to the dispatcher, user, or both? | |
| 79 # If 'dispatcher', error message notifications will only be sent to the dispatcher. | |
| 80 # If 'user', error message notifications will only be sent to the user. | |
| 81 # If 'both', error message notifications will be sent to both individuals. | |
| 82 ERROR_MESSAGES_TO = 'user' | |
| 73 | 83 |
| 74 # Send nosy messages to the author of the message? | 84 # Send nosy messages to the author of the message? |
| 75 # If 'new' is used, then the author will only be sent the message when the | 85 # If 'new' is used, then the author will only be sent the message when the |
| 76 # message creates a new issue. If 'yes' then the author will always be sent | 86 # message creates a new issue. If 'yes' then the author will always be sent |
| 77 # a copy of the message they wrote. | 87 # a copy of the message they wrote. |
