Mercurial > p > roundup > code
annotate templates/classic/config.py @ 2467:76ead526113d
client instances may be used as translation engines.
any backend translator may be passed as constructor
argument or via setTranslator() method. by default,
templating.translationService is used.
use this engine to translate client messages.
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Tue, 15 Jun 2004 09:19:49 +0000 |
| parents | fa50e1347397 |
| children | e80604dbe2af |
| rev | line source |
|---|---|
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 # |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/) |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
3 # This module is free software, and you may redistribute it and/or modify |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
4 # under the same terms as Python, so long as this copyright message and |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
5 # disclaimer are retained in their original form. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
6 # |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
7 # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
8 # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING |
|
21312a7564fd
moving templates around
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 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
10 # POSSIBILITY OF SUCH DAMAGE. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
11 # |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
17 # |
|
2397
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
18 # $Id: config.py,v 1.9 2004-06-08 05:29:18 richard Exp $ |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
19 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
20 import os |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
21 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
22 # roundup home is this package's directory |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
23 TRACKER_HOME=os.path.split(__file__)[0] |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
24 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
25 # The SMTP mail host that roundup will use to send mail |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
26 MAILHOST = 'localhost' |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
27 |
|
1612
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
28 # If your SMTP mail host requires a username and password for access, then |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
29 # specify them here. |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
30 # eg. MAILUSER = ('username', 'password') |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
31 MAILUSER = () |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
32 |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
33 # If your SMTP mail host provides or requires TLS (Transport Layer |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
34 # Security) then set MAILHOST_TLS = 'yes' |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
35 # Optionallly, you may also set MAILHOST_TLS_KEYFILE to the name of a PEM |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
36 # formatted file that contains your private key, and MAILHOST_TLS_CERTFILE |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
37 # to the name of a PEM formatted certificate chain file. |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
38 MAILHOST_TLS = 'no' |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
39 MAILHOST_TLS_KEYFILE = '' |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
40 MAILHOST_TLS_CERTFILE = '' |
|
e109d59f232d
SMTP login and TLS support added ([SF#710853] with extras ;)
Richard Jones <richard@users.sourceforge.net>
parents:
1602
diff
changeset
|
41 |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
42 # The domain name used for email addresses. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
43 MAIL_DOMAIN = 'your.tracker.email.domain.example' |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
44 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
45 # This is the directory that the database is going to be stored in |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
46 DATABASE = os.path.join(TRACKER_HOME, 'db') |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
47 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
48 # This is the directory that the HTML templates reside in |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
49 TEMPLATES = os.path.join(TRACKER_HOME, 'html') |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
50 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
51 # A descriptive name for your roundup instance |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
52 TRACKER_NAME = 'Roundup issue tracker' |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
53 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
54 # The email address that mail to roundup should go to |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
55 TRACKER_EMAIL = 'issue_tracker@%s'%MAIL_DOMAIN |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
56 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
57 # The web address that the tracker is viewable at. This will be included in |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
58 # information sent to users of the tracker. The URL MUST include the cgi-bin |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
59 # part or anything else that is required to get to the home page of the |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
60 # tracker. You MUST include a trailing '/' in the URL. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
61 TRACKER_WEB = 'http://tracker.example/cgi-bin/roundup.cgi/bugs/' |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
62 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
63 # The email address that roundup will complain to if it runs into trouble |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
64 ADMIN_EMAIL = 'roundup-admin@%s'%MAIL_DOMAIN |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
65 |
|
2397
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
66 # These variables define where to log Roundup's internal messages to. |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
67 # You have two choices - either using the standard Python logging module |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
68 # or a minimal logging facility built into Roundup. The former is activated |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
69 # when you provide a LOGGING_CONFIG variable below which contains the |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
70 # configuration of the logging module. The latter is activated when you |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
71 # provide the LOGGING_FILENAME and optionally LOGGING_LEVEL variables. If |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
72 # none of these variables are defined then only errors will be logged, and |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
73 # they will go to stderr. |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
74 # LOGGGING_CONFIG = os.path.join(TRACKER_HOME, 'logging.ini') |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
75 # or, |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
76 # LOGGING_FILENAME = '/path/to/log file' |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
77 # LOGGING_LEVEL = 'INFO' # one of 'DEBUG', 'INFO', 'WARNING', 'ERROR' |
|
fa50e1347397
added basic logging support
Richard Jones <richard@users.sourceforge.net>
parents:
2149
diff
changeset
|
78 |
|
2149
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
79 # The 'dispatcher' is a role that can get notified of new items to the |
|
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
80 # database. It is used by the ERROR_MESSAGES_TO config setting. |
|
2119
cc4667ef3f12
Added the ability to toggle where error messages go.
Eddie Parker <eparker@users.sourceforge.net>
parents:
2034
diff
changeset
|
81 DISPATCHER_EMAIL = ADMIN_EMAIL |
|
cc4667ef3f12
Added the ability to toggle where error messages go.
Eddie Parker <eparker@users.sourceforge.net>
parents:
2034
diff
changeset
|
82 |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
83 # Additional text to include in the "name" part of the From: address used |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
84 # in nosy messages. If the sending user is "Foo Bar", the From: line is |
|
2121
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
85 # usually: "Foo Bar" <issue_tracker@tracker.example> |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
86 # the EMAIL_FROM_TAG goes inside the "Foo Bar" quotes like so: |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
87 # "Foo Bar EMAIL_FROM_TAG" <issue_tracker@tracker.example> |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
88 EMAIL_FROM_TAG = "" |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
89 |
|
2121
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
90 # |
|
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
91 # SECURITY DEFINITIONS |
|
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
92 # |
|
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
93 # define the Roles that a user gets when they register with the tracker |
|
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
94 # these are a comma-separated string of role names (e.g. 'Admin,User') |
|
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
95 NEW_WEB_USER_ROLES = 'User' |
|
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
96 NEW_EMAIL_USER_ROLES = 'User' |
|
2119
cc4667ef3f12
Added the ability to toggle where error messages go.
Eddie Parker <eparker@users.sourceforge.net>
parents:
2034
diff
changeset
|
97 |
|
2149
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
98 # Send error message emails to the dispatcher, user, or both? |
|
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
99 # If 'dispatcher', error messages will only be sent to the dispatcher. |
|
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
100 # If 'user', error messages will only be sent to the user. |
|
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
101 # If 'both', error messages will be sent to both individuals. |
|
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
102 # The dispatcher is configured using the DISPATCHER_EMAIL setting, which |
|
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
103 # defaults to ADMIN_EMAIL. |
|
2119
cc4667ef3f12
Added the ability to toggle where error messages go.
Eddie Parker <eparker@users.sourceforge.net>
parents:
2034
diff
changeset
|
104 ERROR_MESSAGES_TO = 'user' |
|
cc4667ef3f12
Added the ability to toggle where error messages go.
Eddie Parker <eparker@users.sourceforge.net>
parents:
2034
diff
changeset
|
105 |
|
2121
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
106 # Send nosy messages to the author of the message |
|
fd5459469069
Did a couple of things:
Eddie Parker <eparker@users.sourceforge.net>
parents:
2119
diff
changeset
|
107 MESSAGES_TO_AUTHOR = 'no' # either 'yes' or 'no' |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
108 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
109 # Does the author of a message get placed on the nosy list automatically? |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
110 # If 'new' is used, then the author will only be added when a message |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
111 # creates a new issue. If 'yes', then the author will be added on followups |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
112 # too. If 'no', they're never added to the nosy. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
113 ADD_AUTHOR_TO_NOSY = 'new' # one of 'yes', 'no', 'new' |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
114 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
115 # Do the recipients (To:, Cc:) of a message get placed on the nosy list? |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
116 # If 'new' is used, then the recipients will only be added when a message |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
117 # creates a new issue. If 'yes', then the recipients will be added on followups |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
118 # too. If 'no', they're never added to the nosy. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
119 ADD_RECIPIENTS_TO_NOSY = 'new' # either 'yes', 'no', 'new' |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
120 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
121 # Where to place the email signature |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
122 EMAIL_SIGNATURE_POSITION = 'bottom' # one of 'top', 'bottom', 'none' |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
123 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
124 # Keep email citations when accepting messages. Setting this to "no" strips |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
125 # out "quoted" text from the message. Signatures are also stripped. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
126 EMAIL_KEEP_QUOTED_TEXT = 'yes' # either 'yes' or 'no' |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
127 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
128 # Preserve the email body as is - that is, keep the citations _and_ |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
129 # signatures. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
130 EMAIL_LEAVE_BODY_UNCHANGED = 'no' # either 'yes' or 'no' |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
131 |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
132 # Default class to use in the mailgw if one isn't supplied in email |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
133 # subjects. To disable, comment out the variable below or leave it blank. |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
134 # Examples: |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
135 MAIL_DEFAULT_CLASS = 'issue' # use "issue" class by default |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
136 #MAIL_DEFAULT_CLASS = '' # disable (or just comment the var out) |
|
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
137 |
|
1952
c40ed9113285
Applied Stefan Seefeld's html4/xhtml patch with some changes.
Richard Jones <richard@users.sourceforge.net>
parents:
1612
diff
changeset
|
138 # HTML version to generate. The templates are html4 by default. If you |
|
c40ed9113285
Applied Stefan Seefeld's html4/xhtml patch with some changes.
Richard Jones <richard@users.sourceforge.net>
parents:
1612
diff
changeset
|
139 # wish to make them xhtml, then you'll need to change this var to 'xhtml' |
|
c40ed9113285
Applied Stefan Seefeld's html4/xhtml patch with some changes.
Richard Jones <richard@users.sourceforge.net>
parents:
1612
diff
changeset
|
140 # too so all auto-generated HTML is compliant. |
|
c40ed9113285
Applied Stefan Seefeld's html4/xhtml patch with some changes.
Richard Jones <richard@users.sourceforge.net>
parents:
1612
diff
changeset
|
141 HTML_VERSION = 'html4' # either 'html4' or 'xhtml' |
|
c40ed9113285
Applied Stefan Seefeld's html4/xhtml patch with some changes.
Richard Jones <richard@users.sourceforge.net>
parents:
1612
diff
changeset
|
142 |
|
2034
be047db3dd3d
Eudora can't handle utf-8 headers. We love Eudora. [SF#900046]
Richard Jones <richard@users.sourceforge.net>
parents:
1952
diff
changeset
|
143 # Character set to encode email headers with. We use utf-8 by default, as |
|
be047db3dd3d
Eudora can't handle utf-8 headers. We love Eudora. [SF#900046]
Richard Jones <richard@users.sourceforge.net>
parents:
1952
diff
changeset
|
144 # it's the most flexible. Some mail readers (eg. Eudora) can't cope with |
|
be047db3dd3d
Eudora can't handle utf-8 headers. We love Eudora. [SF#900046]
Richard Jones <richard@users.sourceforge.net>
parents:
1952
diff
changeset
|
145 # that, so you might need to specify a more limited character set (eg. |
|
be047db3dd3d
Eudora can't handle utf-8 headers. We love Eudora. [SF#900046]
Richard Jones <richard@users.sourceforge.net>
parents:
1952
diff
changeset
|
146 # 'iso-8859-1'. |
|
be047db3dd3d
Eudora can't handle utf-8 headers. We love Eudora. [SF#900046]
Richard Jones <richard@users.sourceforge.net>
parents:
1952
diff
changeset
|
147 EMAIL_CHARSET = 'utf-8' |
|
be047db3dd3d
Eudora can't handle utf-8 headers. We love Eudora. [SF#900046]
Richard Jones <richard@users.sourceforge.net>
parents:
1952
diff
changeset
|
148 #EMAIL_CHARSET = 'iso-8859-1' # use this instead for Eudora users |
|
be047db3dd3d
Eudora can't handle utf-8 headers. We love Eudora. [SF#900046]
Richard Jones <richard@users.sourceforge.net>
parents:
1952
diff
changeset
|
149 |
|
2149
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
150 # You may specify a different default timezone, for use when users do not |
|
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
151 # choose their own in their settings. |
|
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
152 DEFAULT_TIMEZONE = 0 # specify as numeric hour offest |
|
702f9a6afdcf
Added DEFAULT_TIMEZONE. Fixed up some missing info from What's New.
Richard Jones <richard@users.sourceforge.net>
parents:
2121
diff
changeset
|
153 |
|
1591
21312a7564fd
moving templates around
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
154 # vim: set filetype=python ts=4 sw=4 et si |
