Mercurial > p > roundup > code
annotate share/roundup/templates/devel/config.ini @ 5548:fea11d05110e
Avoid errors from selecting "no selection" on multilink (issue2550722).
As discussed in issue 2550722 there are various cases where selecting
"no selection" on a multilink can result in inappropriate errors from
Roundup:
* If selecting "no selection" produces a null edit (a value was set in
the multilink in an edit with an error, then removed again, along
with all other changes, in the next form submission), so the page is
rendered from the form contents including the "-<id>" value for "no
selection" for the multilink.
* If creating an item with a nonempty value for a multilink has an
error, and the resubmission changes that multilink to "no selection"
(and this in turn has subcases, according to whether the creation
then succeeds or fails on the resubmission, which need fixes in
different places in the Roundup code).
All of these cases have in common that it is expected and OK to have a
"-<id>" value for a submission for a multilink when <id> is not set in
that multilink in the database (because the original attempt to set
<id> in that multilink had an error), so the hyperdb.py logic to give
an error in that case is thus removed. In the subcase of the second
case where the resubmission with "no selection" has an error, the
templating code tries to produce a menu entry for the "-<id>"
multilink value, which also results in an error, hence the
templating.py change to ignore such values in the list for a
multilink.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Thu, 27 Sep 2018 11:33:01 +0000 |
| parents | 8aa3175fb6ae |
| children |
| rev | line source |
|---|---|
| 4434 | 1 # Roundup issue tracker configuration file |
| 2 # Autogenerated at Fri Nov 17 16:59:49 2006 | |
| 3 | |
| 4 # WARNING! Following options need adjustments: | |
| 5 # [mail]: domain, host | |
| 6 # [tracker]: web | |
| 7 | |
| 8 [main] | |
| 9 | |
| 10 # Database directory path. | |
| 11 # The path may be either absolute or relative | |
| 12 # to the directory containig this config file. | |
| 13 # Default: db | |
| 14 database = db | |
| 15 | |
| 16 # Path to the HTML templates directory. | |
| 17 # The path may be either absolute or relative | |
| 18 # to the directory containig this config file. | |
| 19 # Default: html | |
| 20 templates = html | |
| 21 | |
| 22 # Path to directory holding additional static files | |
| 23 # available via Web UI. This directory may contain | |
| 24 # sitewide images, CSS stylesheets etc. and is searched | |
| 25 # for these files prior to the TEMPLATES directory | |
| 26 # specified above. If this option is not set, all static | |
| 27 # files are taken from the TEMPLATES directory | |
| 28 # The path may be either absolute or relative | |
| 29 # to the directory containig this config file. | |
| 30 # Default: | |
| 31 static_files = | |
| 32 | |
| 33 # Email address that roundup will complain to if it runs into trouble. | |
| 34 # Default: roundup-admin | |
| 35 admin_email = roundup-admin | |
| 36 | |
| 37 # The 'dispatcher' is a role that can get notified | |
| 38 # of new items to the database. | |
| 39 # It is used by the ERROR_MESSAGES_TO config setting. | |
| 40 # Default: roundup-admin | |
| 41 dispatcher_email = roundup-admin | |
| 42 | |
| 43 # Additional text to include in the "name" part | |
| 44 # of the From: address used in nosy messages. | |
| 45 # If the sending user is "Foo Bar", the From: line | |
| 46 # is usually: "Foo Bar" <issue_tracker@tracker.example> | |
| 47 # the EMAIL_FROM_TAG goes inside the "Foo Bar" quotes like so: | |
| 48 # "Foo Bar EMAIL_FROM_TAG" <issue_tracker@tracker.example> | |
| 49 # Default: | |
| 50 email_from_tag = | |
| 51 | |
| 52 # Roles that a user gets when they register with Web User Interface. | |
| 53 # This is a comma-separated string of role names (e.g. 'Admin,User'). | |
| 54 # Default: User | |
| 55 new_web_user_roles = User | |
| 56 | |
| 57 # Roles that a user gets when they register with Email Gateway. | |
| 58 # This is a comma-separated string of role names (e.g. 'Admin,User'). | |
| 59 # Default: User | |
| 60 new_email_user_roles = User | |
| 61 | |
| 62 # Send error message emails to the dispatcher, user, or both? | |
| 63 # The dispatcher is configured using the DISPATCHER_EMAIL setting. | |
| 64 # Default: user | |
| 65 error_messages_to = user | |
| 66 | |
| 67 # HTML version to generate. The templates are html4 by default. | |
| 68 # If you wish to make them xhtml, then you'll need to change this | |
| 69 # var to 'xhtml' too so all auto-generated HTML is compliant. | |
| 70 # Allowed values: html4, xhtml | |
| 71 # Default: html4 | |
| 72 html_version = xhtml | |
| 73 | |
| 74 # Default timezone offset, applied when user's timezone is not set. | |
| 75 # If pytz module is installed, value may be any valid | |
| 76 # timezone specification (e.g. EET or Europe/Warsaw). | |
| 77 # If pytz is not installed, value must be integer number | |
| 78 # giving local timezone offset from UTC in hours. | |
| 79 # Default: UTC | |
| 80 timezone = UTC | |
| 81 | |
| 82 # Register new users instantly, or require confirmation via | |
| 83 # email? | |
| 84 # Allowed values: yes, no | |
| 85 # Default: no | |
| 86 instant_registration = no | |
| 87 | |
| 88 # Offer registration confirmation by email or only through the web? | |
| 89 # Allowed values: yes, no | |
| 90 # Default: yes | |
| 91 email_registration_confirmation = yes | |
| 92 | |
| 93 # Additional stop-words for the full-text indexer specific to | |
| 94 # your tracker. See the indexer source for the default list of | |
| 95 # stop-words (eg. A,AND,ARE,AS,AT,BE,BUT,BY, ...) | |
| 96 # Allowed values: comma-separated list of words | |
| 97 # Default: | |
| 98 indexer_stopwords = | |
| 99 | |
| 100 # Defines the file creation mode mask. | |
| 101 # Default: 02 | |
| 102 umask = 02 | |
| 103 | |
| 104 [tracker] | |
| 105 | |
| 106 # A descriptive name for your roundup instance. | |
| 107 # Default: Roundup issue tracker | |
| 108 name = Roundup tracker | |
| 109 | |
| 110 # The web address that the tracker is viewable at. | |
| 111 # This will be included in information sent to users of the tracker. | |
| 112 # The URL MUST include the cgi-bin part or anything else | |
| 113 # that is required to get to the home page of the tracker. | |
| 114 # You MUST include a trailing '/' in the URL. | |
| 115 # Default: NO DEFAULT | |
| 116 web = | |
| 117 | |
| 118 # Email address that mail to roundup should go to. | |
| 119 # Default: issue_tracker | |
| 120 email = issue_tracker | |
| 121 | |
| 122 # Default locale name for this tracker. | |
| 123 # If this option is not set, the language is determined | |
| 124 # by OS environment variable LANGUAGE, LC_ALL, LC_MESSAGES, | |
| 125 # or LANG, in that order of preference. | |
| 126 # Default: | |
| 127 language = | |
| 128 | |
| 129 [web] | |
| 130 | |
| 131 # Whether to use HTTP Basic Authentication, if present. | |
| 132 # Roundup will use either the REMOTE_USER or HTTP_AUTHORIZATION | |
| 133 # variables supplied by your web server (in that order). | |
| 134 # Set this option to 'no' if you do not wish to use HTTP Basic | |
| 135 # Authentication in your web interface. | |
| 136 # Allowed values: yes, no | |
| 137 # Default: yes | |
| 138 http_auth = yes | |
| 139 | |
| 140 # Whether to use HTTP Accept-Language, if present. | |
| 141 # Browsers send a language-region preference list. | |
| 142 # It's usually set in the client's browser or in their | |
| 143 # Operating System. | |
| 144 # Set this option to 'no' if you want to ignore it. | |
| 145 # Allowed values: yes, no | |
| 146 # Default: yes | |
| 147 use_browser_language = no | |
| 148 | |
| 149 # Setting this option makes Roundup display error tracebacks | |
| 150 # in the user's browser rather than emailing them to the | |
| 151 # tracker admin. | |
| 152 # Allowed values: yes, no | |
| 153 # Default: no | |
| 154 debug = no | |
| 155 | |
| 156 # Settings in this section are used by Postgresql and MySQL backends only | |
| 157 [rdbms] | |
| 158 | |
| 159 # Name of the database to use. | |
| 160 # Default: roundup | |
| 161 name = roundup_roundup_tracker | |
| 162 | |
| 163 # Database server host. | |
| 164 # Default: localhost | |
| 165 host = localhost | |
| 166 | |
| 167 # TCP port number of the database server. | |
| 168 # Postgresql usually resides on port 5432 (if any), | |
| 169 # for MySQL default port number is 3306. | |
| 170 # Leave this option empty to use backend default | |
| 171 # Default: | |
| 172 port = | |
| 173 | |
| 174 # Database user name that Roundup should use. | |
| 175 # Default: roundup | |
| 176 user = roundup | |
| 177 | |
| 178 # Database user password. | |
| 179 # Default: roundup | |
| 180 password = roundup | |
| 181 | |
| 182 # Name of the MySQL defaults file. | |
| 183 # Only used in MySQL connections. | |
| 184 # Default: ~/.my.cnf | |
| 185 read_default_file = ~/.my.cnf | |
| 186 | |
| 187 # Name of the group to use in the MySQL defaults file (.my.cnf). | |
| 188 # Only used in MySQL connections. | |
| 189 # Default: roundup | |
| 190 read_default_group = roundup | |
| 191 | |
| 192 [logging] | |
| 193 | |
| 194 # Path to configuration file for standard Python logging module. | |
| 195 # If this option is set, logging configuration is loaded | |
| 196 # from specified file; options 'filename' and 'level' | |
| 197 # in this section are ignored. | |
| 198 # The path may be either absolute or relative | |
| 199 # to the directory containig this config file. | |
| 200 # Default: | |
| 201 config = | |
| 202 | |
| 203 # Log file name for minimal logging facility built into Roundup. | |
| 204 # If no file name specified, log messages are written on stderr. | |
| 205 # If above 'config' option is set, this option has no effect. | |
| 206 # The path may be either absolute or relative | |
| 207 # to the directory containig this config file. | |
| 208 # Default: | |
| 209 filename = | |
| 210 | |
| 211 # Minimal severity level of messages written to log file. | |
| 212 # If above 'config' option is set, this option has no effect. | |
| 213 # Allowed values: DEBUG, INFO, WARNING, ERROR | |
| 214 # Default: ERROR | |
| 215 level = ERROR | |
| 216 | |
| 217 # Outgoing email options. | |
| 218 # Used for nozy messages and approval requests | |
| 219 [mail] | |
| 220 | |
| 221 # Domain name used for email addresses. | |
| 222 # Default: NO DEFAULT | |
| 223 #domain = NO DEFAULT | |
| 224 domain = psf.upfronthosting.co.za | |
| 225 | |
| 226 # SMTP mail host that roundup will use to send mail | |
| 227 # Default: NO DEFAULT | |
| 228 #host = NO DEFAULT | |
| 229 host = localhost | |
| 230 | |
| 231 # SMTP login name. | |
| 232 # Set this if your mail host requires authenticated access. | |
| 233 # If username is not empty, password (below) MUST be set! | |
| 234 # Default: | |
| 235 username = | |
| 236 | |
| 237 # SMTP login password. | |
| 238 # Set this if your mail host requires authenticated access. | |
| 239 # Default: NO DEFAULT | |
| 240 #password = NO DEFAULT | |
| 241 | |
| 242 # If your SMTP mail host provides or requires TLS | |
| 243 # (Transport Layer Security) then set this option to 'yes'. | |
| 244 # Allowed values: yes, no | |
| 245 # Default: no | |
| 246 tls = no | |
| 247 | |
| 248 # If TLS is used, you may set this option to the name | |
| 249 # of a PEM formatted file that contains your private key. | |
| 250 # The path may be either absolute or relative | |
| 251 # to the directory containig this config file. | |
| 252 # Default: | |
| 253 tls_keyfile = | |
| 254 | |
| 255 # If TLS is used, you may set this option to the name | |
| 256 # of a PEM formatted certificate chain file. | |
| 257 # The path may be either absolute or relative | |
| 258 # to the directory containig this config file. | |
| 259 # Default: | |
| 260 tls_certfile = | |
| 261 | |
| 262 # Character set to encode email headers with. | |
| 263 # We use utf-8 by default, as it's the most flexible. | |
| 264 # Some mail readers (eg. Eudora) can't cope with that, | |
| 265 # so you might need to specify a more limited character set | |
| 266 # (eg. iso-8859-1). | |
| 267 # Default: utf-8 | |
| 268 charset = utf-8 | |
| 269 | |
| 270 # Setting this option makes Roundup to write all outgoing email | |
| 271 # messages to this file *instead* of sending them. | |
| 272 # This option has the same effect as environment variable SENDMAILDEBUG. | |
| 273 # Environment variable takes precedence. | |
| 274 # The path may be either absolute or relative | |
| 275 # to the directory containig this config file. | |
| 276 # Default: | |
| 277 #debug = /home/roundup/outgoing-mail | |
| 278 debug = | |
| 279 | |
| 280 # Roundup Mail Gateway options | |
| 281 [mailgw] | |
| 282 | |
| 283 # Keep email citations when accepting messages. | |
| 284 # Setting this to "no" strips out "quoted" text from the message. | |
| 285 # Signatures are also stripped. | |
| 286 # Allowed values: yes, no | |
| 287 # Default: yes | |
| 288 keep_quoted_text = yes | |
| 289 | |
| 290 # Preserve the email body as is - that is, | |
| 291 # keep the citations _and_ signatures. | |
| 292 # Allowed values: yes, no | |
| 293 # Default: no | |
| 294 leave_body_unchanged = no | |
| 295 | |
| 296 # Default class to use in the mailgw | |
| 297 # if one isn't supplied in email subjects. | |
| 298 # To disable, leave the value blank. | |
| 299 # Default: issue | |
| 300 default_class = issue | |
| 301 | |
| 302 # Default locale name for the tracker mail gateway. | |
| 303 # If this option is not set, mail gateway will use | |
| 304 # the language of the tracker instance. | |
| 305 # Default: | |
| 306 language = | |
| 307 | |
| 308 # Controls the parsing of the [prefix] on subject | |
| 309 # lines in incoming emails. "strict" will return an | |
| 310 # error to the sender if the [prefix] is not recognised. | |
| 311 # "loose" will attempt to parse the [prefix] but just | |
| 312 # pass it through as part of the issue title if not | |
| 313 # recognised. "none" will always pass any [prefix] | |
| 314 # through as part of the issue title. | |
| 315 # Default: strict | |
| 316 subject_prefix_parsing = strict | |
| 317 | |
| 318 # Controls the parsing of the [suffix] on subject | |
| 319 # lines in incoming emails. "strict" will return an | |
| 320 # error to the sender if the [suffix] is not recognised. | |
| 321 # "loose" will attempt to parse the [suffix] but just | |
| 322 # pass it through as part of the issue title if not | |
| 323 # recognised. "none" will always pass any [suffix] | |
| 324 # through as part of the issue title. | |
| 325 # Default: strict | |
| 326 subject_suffix_parsing = strict | |
| 327 | |
| 328 # Defines the brackets used for delimiting the prefix and | |
| 329 # suffix in a subject line. The presence of "suffix" in | |
| 330 # the config option name is a historical artifact and may | |
| 331 # be ignored. | |
| 332 # Default: [] | |
| 333 subject_suffix_delimiters = [] | |
| 334 | |
| 335 # Controls matching of the incoming email subject line | |
| 336 # against issue titles in the case where there is no | |
| 337 # designator [prefix]. "never" turns off matching. | |
| 338 # "creation + interval" or "activity + interval" | |
| 339 # will match an issue for the interval after the issue's | |
| 340 # creation or last activity. The interval is a standard | |
| 341 # Roundup interval. | |
| 342 # Default: always | |
| 343 subject_content_match = always | |
| 344 | |
| 345 # Nosy messages sending | |
| 346 [nosy] | |
| 347 | |
| 348 # Send nosy messages to the author of the message. | |
|
4788
8aa3175fb6ae
[issue2550801] Explain configuration option in more detail
Pradip Caulagi <caulagi@gmail.com>
parents:
4434
diff
changeset
|
349 # Allowed values: yes, no, new, nosy |
|
8aa3175fb6ae
[issue2550801] Explain configuration option in more detail
Pradip Caulagi <caulagi@gmail.com>
parents:
4434
diff
changeset
|
350 # yes - always |
|
8aa3175fb6ae
[issue2550801] Explain configuration option in more detail
Pradip Caulagi <caulagi@gmail.com>
parents:
4434
diff
changeset
|
351 # no - never |
|
8aa3175fb6ae
[issue2550801] Explain configuration option in more detail
Pradip Caulagi <caulagi@gmail.com>
parents:
4434
diff
changeset
|
352 # new - only when the issue is created |
|
8aa3175fb6ae
[issue2550801] Explain configuration option in more detail
Pradip Caulagi <caulagi@gmail.com>
parents:
4434
diff
changeset
|
353 # nosy - only when the author is in the nosy list |
| 4434 | 354 # Default: no |
| 355 messages_to_author = yes | |
| 356 | |
| 357 # Where to place the email signature. | |
| 358 # Allowed values: top, bottom, none | |
| 359 # Default: bottom | |
| 360 signature_position = bottom | |
| 361 | |
| 362 # Does the author of a message get placed on the nosy list | |
| 363 # automatically? If 'new' is used, then the author will | |
| 364 # only be added when a message creates a new issue. | |
| 365 # If 'yes', then the author will be added on followups too. | |
| 366 # If 'no', they're never added to the nosy. | |
| 367 # | |
| 368 # Allowed values: yes, no, new | |
| 369 # Default: new | |
| 370 add_author = yes | |
| 371 | |
| 372 # Do the recipients (To:, Cc:) of a message get placed on the | |
| 373 # nosy list? If 'new' is used, then the recipients will | |
| 374 # only be added when a message creates a new issue. | |
| 375 # If 'yes', then the recipients will be added on followups too. | |
| 376 # If 'no', they're never added to the nosy. | |
| 377 # | |
| 378 # Allowed values: yes, no, new | |
| 379 # Default: new | |
| 380 add_recipients = new | |
| 381 | |
| 382 # Controls the email sending from the nosy reactor. If | |
| 383 # "multiple" then a separate email is sent to each | |
| 384 # recipient. If "single" then a single email is sent with | |
| 385 # each recipient as a CC address. | |
| 386 # Default: single | |
| 387 email_sending = multiple |
