Mercurial > p > roundup > code
annotate templates/classic/initial_data.py @ 3945:1dd64778bc45
Mail improvements:
- Implement new config option in mail-section "ignore_alternatives" to
ignore alternatives in a multipart/alternative mail. The *last*
text/plain part of the *first* multipart/alternative is used as the
message, if ignore_alternatives is set all other alternative parts of
the first multipart/alternative that contained a text/plain part are
ignored. Other multipart/alternative or other multipart are attached
as before. This fixes [SF#959811] "Multipart/alternative handling
considered bad". Note that this also changes which text/plain part is
attached as the message if there are several text/plain parts in a
multipart: Previously the *first* text/plain would be attached. Now we
attach the *last* one, this is more in line with rfc 2046, sec. 5.1.4.
according to Philipp Gortan.
- Fix bug in attachment of text parts: If there are multiple text/plain
parts in a nested multipart, the previous code would attach the
multipart serialisation instead of the text/plain serialisation as a
file to the issue in some cases.
- Add regression tests for the new config-option and bug-fixes above.
| author | Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net> |
|---|---|
| date | Wed, 14 Nov 2007 14:57:47 +0000 |
| parents | 9e07a5642dd0 |
| children |
| rev | line source |
|---|---|
|
2633
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 # |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
2 # TRACKER INITIAL PRIORITY AND STATUS VALUES |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
3 # |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
4 pri = db.getclass('priority') |
|
3762
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
5 pri.create(name=''"critical", order="1") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
6 pri.create(name=''"urgent", order="2") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
7 pri.create(name=''"bug", order="3") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
8 pri.create(name=''"feature", order="4") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
9 pri.create(name=''"wish", order="5") |
|
2633
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
10 |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
11 stat = db.getclass('status') |
|
3762
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
12 stat.create(name=''"unread", order="1") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
13 stat.create(name=''"deferred", order="2") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
14 stat.create(name=''"chatting", order="3") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
15 stat.create(name=''"need-eg", order="4") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
16 stat.create(name=''"in-progress", order="5") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
17 stat.create(name=''"testing", order="6") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
18 stat.create(name=''"done-cbb", order="7") |
|
9e07a5642dd0
mark priority and status names for translation
Alexander Smishlajev <a1s@users.sourceforge.net>
parents:
3130
diff
changeset
|
19 stat.create(name=''"resolved", order="8") |
|
2633
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
20 |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
21 # create the two default users |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
22 user = db.getclass('user') |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
23 user.create(username="admin", password=adminpw, |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
24 address=admin_email, roles='Admin') |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
25 user.create(username="anonymous", roles='Anonymous') |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
26 |
|
3130
7308c3c5a943
docs editing from Jean Jordaan
Richard Jones <richard@users.sourceforge.net>
parents:
2633
diff
changeset
|
27 # add any additional database creation steps here - but only if you |
|
2633
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
28 # haven't initialised the database with the admin "initialise" command |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
29 |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
30 |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
31 # vim: set filetype=python sts=4 sw=4 et si |
|
a9e1fff1e793
I thought I committed this last night. Ho hum.
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
32 #SHA: b1da2e72a7fe9f26086f243eb744135b085101d9 |
