1.0.2dev: Merged [12549] from 0.12-stable (#11009)

git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12550 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Resource name on diff view page links to latest version of the resource. Refs #11517.

Patch by Jun Omae.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12552 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: follow-up to r11767, fixed raw default values in `trac.ini.sample` and added unit tests (#11074)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12554 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Merged [12557] from 0.12-stable (fix for #11498)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12558 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Merged [12560] from 0.12-stable (fix for #11510)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12561 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Coding style change - replaced human-readable single-quoted strings with double-quoted strings.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12563 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Follow-on to [12159]. Refs #10752.

Better name for permission and don't fail if it already exists in the table.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12565 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Refactored and extended test cases. Refs #2311.
 * Use a consistent `for ... in False, True` pattern.
 * Added test case for `always_notify_reporter` is `false`.
 * Added test case for `always_notify_updater` is `false`.
 * Moved recipient test cases into their own class and split some test cases into multiple test cases.
 * Added test case for `always_notify_owner`.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12569 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Avoid `UnboundLocalError` if `tktid` refers to a non-existent ticket. Refs #2311.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12570 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: `PreferencesModule` can be set as the `default_handler`. Refs #11531.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12573 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Merged [12574] from 0.12-stable (fix for #10978)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12575 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: reactivate translations with new langauage setting when changed in user preferences (closes #11515)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12578 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Send notification to previous owner when ticket owner is changed. Refs #2311.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12580 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Renamed some variables and refactored `BatchNotifyTicketEmail.get_recipients`. Refs #2311.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12581 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Merged [12585] from 0.12-stable. Refs #11518.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12586 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Fixed 1-space indentation.


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12588 af82e41b-90c4-0310-8c96-b1721e28e2e2
1.0.2dev: Merged [12590] from 0.12-stable (fix for #11549)


git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.0-stable@12591 af82e41b-90c4-0310-8c96-b1721e28e2e2