aa-mumble-quick-connect 0.0.4__py3-none-any.whl → 0.0.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. aa_mumble_quick_connect/__init__.py +1 -1
  2. aa_mumble_quick_connect/admin.py +1 -1
  3. aa_mumble_quick_connect/locale/cs_CZ/LC_MESSAGES/django.po +23 -11
  4. aa_mumble_quick_connect/locale/de/LC_MESSAGES/django.mo +0 -0
  5. aa_mumble_quick_connect/locale/de/LC_MESSAGES/django.po +24 -12
  6. aa_mumble_quick_connect/locale/django.pot +28 -12
  7. aa_mumble_quick_connect/locale/es/LC_MESSAGES/django.po +23 -11
  8. aa_mumble_quick_connect/locale/fr_FR/LC_MESSAGES/django.po +23 -11
  9. aa_mumble_quick_connect/locale/it_IT/LC_MESSAGES/django.po +23 -11
  10. aa_mumble_quick_connect/locale/ja/LC_MESSAGES/django.po +23 -11
  11. aa_mumble_quick_connect/locale/ko_KR/LC_MESSAGES/django.po +23 -11
  12. aa_mumble_quick_connect/locale/nl_NL/LC_MESSAGES/django.po +23 -11
  13. aa_mumble_quick_connect/locale/pl_PL/LC_MESSAGES/django.po +23 -11
  14. aa_mumble_quick_connect/locale/ru/LC_MESSAGES/django.po +23 -11
  15. aa_mumble_quick_connect/locale/sk/LC_MESSAGES/django.po +23 -11
  16. aa_mumble_quick_connect/locale/uk/LC_MESSAGES/django.po +23 -11
  17. aa_mumble_quick_connect/locale/zh_Hans/LC_MESSAGES/django.po +23 -11
  18. aa_mumble_quick_connect/migrations/0002_mumblelink_disable_url_verification.py +28 -0
  19. aa_mumble_quick_connect/models.py +66 -12
  20. aa_mumble_quick_connect/tests/test_models.py +115 -3
  21. {aa_mumble_quick_connect-0.0.4.dist-info → aa_mumble_quick_connect-0.0.5.dist-info}/METADATA +2 -2
  22. {aa_mumble_quick_connect-0.0.4.dist-info → aa_mumble_quick_connect-0.0.5.dist-info}/RECORD +24 -23
  23. {aa_mumble_quick_connect-0.0.4.dist-info → aa_mumble_quick_connect-0.0.5.dist-info}/WHEEL +0 -0
  24. {aa_mumble_quick_connect-0.0.4.dist-info → aa_mumble_quick_connect-0.0.5.dist-info}/licenses/LICENSE +0 -0
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: AA Mumble Quick Connect 0.0.1\n"
10
10
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-mumble-quick-connect/issues\n"
11
- "POT-Creation-Date: 2025-02-13 23:01+0100\n"
11
+ "POT-Creation-Date: 2025-02-14 09:35+0100\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,43 +25,55 @@ msgid "Mumble Quick Connect"
25
25
  msgstr ""
26
26
 
27
27
  #: aa_mumble_quick_connect/models.py:26
28
+ msgid "The Mumble channel URL must start with \"mumble://\""
29
+ msgstr ""
30
+
31
+ #: aa_mumble_quick_connect/models.py:36
28
32
  #, python-brace-format
29
- msgid "The Mumble channel URL must start with '{mumble_base_url}'"
33
+ msgid "The Mumble channel URL must start with \"{mumble_base_url}\""
30
34
  msgstr ""
31
35
 
32
- #: aa_mumble_quick_connect/models.py:44
36
+ #: aa_mumble_quick_connect/models.py:56
33
37
  msgid "Can access this app"
34
38
  msgstr ""
35
39
 
36
- #: aa_mumble_quick_connect/models.py:53
40
+ #: aa_mumble_quick_connect/models.py:65
37
41
  msgid "Name of the section"
38
42
  msgstr ""
39
43
 
40
- #: aa_mumble_quick_connect/models.py:62 aa_mumble_quick_connect/models.py:78
44
+ #: aa_mumble_quick_connect/models.py:74 aa_mumble_quick_connect/models.py:97
41
45
  msgid "Section"
42
46
  msgstr ""
43
47
 
44
- #: aa_mumble_quick_connect/models.py:63
48
+ #: aa_mumble_quick_connect/models.py:75
45
49
  msgid "Sections"
46
50
  msgstr ""
47
51
 
48
- #: aa_mumble_quick_connect/models.py:81
52
+ #: aa_mumble_quick_connect/models.py:100
49
53
  msgid "Section the Mumble channel belongs to. (Optional)"
50
54
  msgstr ""
51
55
 
52
- #: aa_mumble_quick_connect/models.py:83
56
+ #: aa_mumble_quick_connect/models.py:102
53
57
  msgid "Name of the Mumble channel"
54
58
  msgstr ""
55
59
 
56
- #: aa_mumble_quick_connect/models.py:87
60
+ #: aa_mumble_quick_connect/models.py:105
57
61
  msgid "URL to the channel"
58
62
  msgstr ""
59
63
 
60
- #: aa_mumble_quick_connect/models.py:96
64
+ #: aa_mumble_quick_connect/models.py:109
65
+ msgid "Disable Mumble channel URL verification"
66
+ msgstr ""
67
+
68
+ #: aa_mumble_quick_connect/models.py:111
69
+ msgid "If checked, the Mumble channel URL will not be verified against what is configured for this Auth instance when saving the link. Only use this if you are sure the URL is correct and the Mumble server is controlled by this Auth instance."
70
+ msgstr ""
71
+
72
+ #: aa_mumble_quick_connect/models.py:124
61
73
  msgid "Mumble Link"
62
74
  msgstr ""
63
75
 
64
- #: aa_mumble_quick_connect/models.py:97
76
+ #: aa_mumble_quick_connect/models.py:125
65
77
  msgid "Mumble Links"
66
78
  msgstr ""
67
79
 
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Mumble Quick Connect 0.0.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-mumble-quick-connect/issues\n"
9
- "POT-Creation-Date: 2025-02-13 23:01+0100\n"
9
+ "POT-Creation-Date: 2025-02-14 09:35+0100\n"
10
10
  "PO-Revision-Date: 2025-02-13 22:08+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Polish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-mumble-quick-connect/pl/>\n"
@@ -24,43 +24,55 @@ msgid "Mumble Quick Connect"
24
24
  msgstr ""
25
25
 
26
26
  #: aa_mumble_quick_connect/models.py:26
27
+ msgid "The Mumble channel URL must start with \"mumble://\""
28
+ msgstr ""
29
+
30
+ #: aa_mumble_quick_connect/models.py:36
27
31
  #, python-brace-format
28
- msgid "The Mumble channel URL must start with '{mumble_base_url}'"
32
+ msgid "The Mumble channel URL must start with \"{mumble_base_url}\""
29
33
  msgstr ""
30
34
 
31
- #: aa_mumble_quick_connect/models.py:44
35
+ #: aa_mumble_quick_connect/models.py:56
32
36
  msgid "Can access this app"
33
37
  msgstr ""
34
38
 
35
- #: aa_mumble_quick_connect/models.py:53
39
+ #: aa_mumble_quick_connect/models.py:65
36
40
  msgid "Name of the section"
37
41
  msgstr ""
38
42
 
39
- #: aa_mumble_quick_connect/models.py:62 aa_mumble_quick_connect/models.py:78
43
+ #: aa_mumble_quick_connect/models.py:74 aa_mumble_quick_connect/models.py:97
40
44
  msgid "Section"
41
45
  msgstr ""
42
46
 
43
- #: aa_mumble_quick_connect/models.py:63
47
+ #: aa_mumble_quick_connect/models.py:75
44
48
  msgid "Sections"
45
49
  msgstr ""
46
50
 
47
- #: aa_mumble_quick_connect/models.py:81
51
+ #: aa_mumble_quick_connect/models.py:100
48
52
  msgid "Section the Mumble channel belongs to. (Optional)"
49
53
  msgstr ""
50
54
 
51
- #: aa_mumble_quick_connect/models.py:83
55
+ #: aa_mumble_quick_connect/models.py:102
52
56
  msgid "Name of the Mumble channel"
53
57
  msgstr ""
54
58
 
55
- #: aa_mumble_quick_connect/models.py:87
59
+ #: aa_mumble_quick_connect/models.py:105
56
60
  msgid "URL to the channel"
57
61
  msgstr ""
58
62
 
59
- #: aa_mumble_quick_connect/models.py:96
63
+ #: aa_mumble_quick_connect/models.py:109
64
+ msgid "Disable Mumble channel URL verification"
65
+ msgstr ""
66
+
67
+ #: aa_mumble_quick_connect/models.py:111
68
+ msgid "If checked, the Mumble channel URL will not be verified against what is configured for this Auth instance when saving the link. Only use this if you are sure the URL is correct and the Mumble server is controlled by this Auth instance."
69
+ msgstr ""
70
+
71
+ #: aa_mumble_quick_connect/models.py:124
60
72
  msgid "Mumble Link"
61
73
  msgstr ""
62
74
 
63
- #: aa_mumble_quick_connect/models.py:97
75
+ #: aa_mumble_quick_connect/models.py:125
64
76
  msgid "Mumble Links"
65
77
  msgstr ""
66
78
 
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Mumble Quick Connect 0.0.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-mumble-quick-connect/issues\n"
9
- "POT-Creation-Date: 2025-02-13 23:01+0100\n"
9
+ "POT-Creation-Date: 2025-02-14 09:35+0100\n"
10
10
  "PO-Revision-Date: 2025-02-13 22:08+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Russian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-mumble-quick-connect/ru/>\n"
@@ -24,43 +24,55 @@ msgid "Mumble Quick Connect"
24
24
  msgstr ""
25
25
 
26
26
  #: aa_mumble_quick_connect/models.py:26
27
+ msgid "The Mumble channel URL must start with \"mumble://\""
28
+ msgstr ""
29
+
30
+ #: aa_mumble_quick_connect/models.py:36
27
31
  #, python-brace-format
28
- msgid "The Mumble channel URL must start with '{mumble_base_url}'"
32
+ msgid "The Mumble channel URL must start with \"{mumble_base_url}\""
29
33
  msgstr ""
30
34
 
31
- #: aa_mumble_quick_connect/models.py:44
35
+ #: aa_mumble_quick_connect/models.py:56
32
36
  msgid "Can access this app"
33
37
  msgstr "Имеет доступ к приложению"
34
38
 
35
- #: aa_mumble_quick_connect/models.py:53
39
+ #: aa_mumble_quick_connect/models.py:65
36
40
  msgid "Name of the section"
37
41
  msgstr ""
38
42
 
39
- #: aa_mumble_quick_connect/models.py:62 aa_mumble_quick_connect/models.py:78
43
+ #: aa_mumble_quick_connect/models.py:74 aa_mumble_quick_connect/models.py:97
40
44
  msgid "Section"
41
45
  msgstr ""
42
46
 
43
- #: aa_mumble_quick_connect/models.py:63
47
+ #: aa_mumble_quick_connect/models.py:75
44
48
  msgid "Sections"
45
49
  msgstr ""
46
50
 
47
- #: aa_mumble_quick_connect/models.py:81
51
+ #: aa_mumble_quick_connect/models.py:100
48
52
  msgid "Section the Mumble channel belongs to. (Optional)"
49
53
  msgstr ""
50
54
 
51
- #: aa_mumble_quick_connect/models.py:83
55
+ #: aa_mumble_quick_connect/models.py:102
52
56
  msgid "Name of the Mumble channel"
53
57
  msgstr ""
54
58
 
55
- #: aa_mumble_quick_connect/models.py:87
59
+ #: aa_mumble_quick_connect/models.py:105
56
60
  msgid "URL to the channel"
57
61
  msgstr ""
58
62
 
59
- #: aa_mumble_quick_connect/models.py:96
63
+ #: aa_mumble_quick_connect/models.py:109
64
+ msgid "Disable Mumble channel URL verification"
65
+ msgstr ""
66
+
67
+ #: aa_mumble_quick_connect/models.py:111
68
+ msgid "If checked, the Mumble channel URL will not be verified against what is configured for this Auth instance when saving the link. Only use this if you are sure the URL is correct and the Mumble server is controlled by this Auth instance."
69
+ msgstr ""
70
+
71
+ #: aa_mumble_quick_connect/models.py:124
60
72
  msgid "Mumble Link"
61
73
  msgstr ""
62
74
 
63
- #: aa_mumble_quick_connect/models.py:97
75
+ #: aa_mumble_quick_connect/models.py:125
64
76
  msgid "Mumble Links"
65
77
  msgstr ""
66
78
 
@@ -8,7 +8,7 @@ msgid ""
8
8
  msgstr ""
9
9
  "Project-Id-Version: AA Mumble Quick Connect 0.0.1\n"
10
10
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-mumble-quick-connect/issues\n"
11
- "POT-Creation-Date: 2025-02-13 23:01+0100\n"
11
+ "POT-Creation-Date: 2025-02-14 09:35+0100\n"
12
12
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
13
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
14
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,43 +25,55 @@ msgid "Mumble Quick Connect"
25
25
  msgstr ""
26
26
 
27
27
  #: aa_mumble_quick_connect/models.py:26
28
+ msgid "The Mumble channel URL must start with \"mumble://\""
29
+ msgstr ""
30
+
31
+ #: aa_mumble_quick_connect/models.py:36
28
32
  #, python-brace-format
29
- msgid "The Mumble channel URL must start with '{mumble_base_url}'"
33
+ msgid "The Mumble channel URL must start with \"{mumble_base_url}\""
30
34
  msgstr ""
31
35
 
32
- #: aa_mumble_quick_connect/models.py:44
36
+ #: aa_mumble_quick_connect/models.py:56
33
37
  msgid "Can access this app"
34
38
  msgstr ""
35
39
 
36
- #: aa_mumble_quick_connect/models.py:53
40
+ #: aa_mumble_quick_connect/models.py:65
37
41
  msgid "Name of the section"
38
42
  msgstr ""
39
43
 
40
- #: aa_mumble_quick_connect/models.py:62 aa_mumble_quick_connect/models.py:78
44
+ #: aa_mumble_quick_connect/models.py:74 aa_mumble_quick_connect/models.py:97
41
45
  msgid "Section"
42
46
  msgstr ""
43
47
 
44
- #: aa_mumble_quick_connect/models.py:63
48
+ #: aa_mumble_quick_connect/models.py:75
45
49
  msgid "Sections"
46
50
  msgstr ""
47
51
 
48
- #: aa_mumble_quick_connect/models.py:81
52
+ #: aa_mumble_quick_connect/models.py:100
49
53
  msgid "Section the Mumble channel belongs to. (Optional)"
50
54
  msgstr ""
51
55
 
52
- #: aa_mumble_quick_connect/models.py:83
56
+ #: aa_mumble_quick_connect/models.py:102
53
57
  msgid "Name of the Mumble channel"
54
58
  msgstr ""
55
59
 
56
- #: aa_mumble_quick_connect/models.py:87
60
+ #: aa_mumble_quick_connect/models.py:105
57
61
  msgid "URL to the channel"
58
62
  msgstr ""
59
63
 
60
- #: aa_mumble_quick_connect/models.py:96
64
+ #: aa_mumble_quick_connect/models.py:109
65
+ msgid "Disable Mumble channel URL verification"
66
+ msgstr ""
67
+
68
+ #: aa_mumble_quick_connect/models.py:111
69
+ msgid "If checked, the Mumble channel URL will not be verified against what is configured for this Auth instance when saving the link. Only use this if you are sure the URL is correct and the Mumble server is controlled by this Auth instance."
70
+ msgstr ""
71
+
72
+ #: aa_mumble_quick_connect/models.py:124
61
73
  msgid "Mumble Link"
62
74
  msgstr ""
63
75
 
64
- #: aa_mumble_quick_connect/models.py:97
76
+ #: aa_mumble_quick_connect/models.py:125
65
77
  msgid "Mumble Links"
66
78
  msgstr ""
67
79
 
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Mumble Quick Connect 0.0.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-mumble-quick-connect/issues\n"
9
- "POT-Creation-Date: 2025-02-13 23:01+0100\n"
9
+ "POT-Creation-Date: 2025-02-14 09:35+0100\n"
10
10
  "PO-Revision-Date: 2025-02-13 22:08+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-mumble-quick-connect/uk/>\n"
@@ -24,43 +24,55 @@ msgid "Mumble Quick Connect"
24
24
  msgstr ""
25
25
 
26
26
  #: aa_mumble_quick_connect/models.py:26
27
+ msgid "The Mumble channel URL must start with \"mumble://\""
28
+ msgstr ""
29
+
30
+ #: aa_mumble_quick_connect/models.py:36
27
31
  #, python-brace-format
28
- msgid "The Mumble channel URL must start with '{mumble_base_url}'"
32
+ msgid "The Mumble channel URL must start with \"{mumble_base_url}\""
29
33
  msgstr ""
30
34
 
31
- #: aa_mumble_quick_connect/models.py:44
35
+ #: aa_mumble_quick_connect/models.py:56
32
36
  msgid "Can access this app"
33
37
  msgstr ""
34
38
 
35
- #: aa_mumble_quick_connect/models.py:53
39
+ #: aa_mumble_quick_connect/models.py:65
36
40
  msgid "Name of the section"
37
41
  msgstr ""
38
42
 
39
- #: aa_mumble_quick_connect/models.py:62 aa_mumble_quick_connect/models.py:78
43
+ #: aa_mumble_quick_connect/models.py:74 aa_mumble_quick_connect/models.py:97
40
44
  msgid "Section"
41
45
  msgstr ""
42
46
 
43
- #: aa_mumble_quick_connect/models.py:63
47
+ #: aa_mumble_quick_connect/models.py:75
44
48
  msgid "Sections"
45
49
  msgstr ""
46
50
 
47
- #: aa_mumble_quick_connect/models.py:81
51
+ #: aa_mumble_quick_connect/models.py:100
48
52
  msgid "Section the Mumble channel belongs to. (Optional)"
49
53
  msgstr ""
50
54
 
51
- #: aa_mumble_quick_connect/models.py:83
55
+ #: aa_mumble_quick_connect/models.py:102
52
56
  msgid "Name of the Mumble channel"
53
57
  msgstr ""
54
58
 
55
- #: aa_mumble_quick_connect/models.py:87
59
+ #: aa_mumble_quick_connect/models.py:105
56
60
  msgid "URL to the channel"
57
61
  msgstr ""
58
62
 
59
- #: aa_mumble_quick_connect/models.py:96
63
+ #: aa_mumble_quick_connect/models.py:109
64
+ msgid "Disable Mumble channel URL verification"
65
+ msgstr ""
66
+
67
+ #: aa_mumble_quick_connect/models.py:111
68
+ msgid "If checked, the Mumble channel URL will not be verified against what is configured for this Auth instance when saving the link. Only use this if you are sure the URL is correct and the Mumble server is controlled by this Auth instance."
69
+ msgstr ""
70
+
71
+ #: aa_mumble_quick_connect/models.py:124
60
72
  msgid "Mumble Link"
61
73
  msgstr ""
62
74
 
63
- #: aa_mumble_quick_connect/models.py:97
75
+ #: aa_mumble_quick_connect/models.py:125
64
76
  msgid "Mumble Links"
65
77
  msgstr ""
66
78
 
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: AA Mumble Quick Connect 0.0.1\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-mumble-quick-connect/issues\n"
9
- "POT-Creation-Date: 2025-02-13 23:01+0100\n"
9
+ "POT-Creation-Date: 2025-02-14 09:35+0100\n"
10
10
  "PO-Revision-Date: 2025-02-13 22:08+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Chinese (Simplified Han script) <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-mumble-quick-connect/zh_Hans/>\n"
@@ -24,43 +24,55 @@ msgid "Mumble Quick Connect"
24
24
  msgstr ""
25
25
 
26
26
  #: aa_mumble_quick_connect/models.py:26
27
+ msgid "The Mumble channel URL must start with \"mumble://\""
28
+ msgstr ""
29
+
30
+ #: aa_mumble_quick_connect/models.py:36
27
31
  #, python-brace-format
28
- msgid "The Mumble channel URL must start with '{mumble_base_url}'"
32
+ msgid "The Mumble channel URL must start with \"{mumble_base_url}\""
29
33
  msgstr ""
30
34
 
31
- #: aa_mumble_quick_connect/models.py:44
35
+ #: aa_mumble_quick_connect/models.py:56
32
36
  msgid "Can access this app"
33
37
  msgstr "能够访问此应用程序"
34
38
 
35
- #: aa_mumble_quick_connect/models.py:53
39
+ #: aa_mumble_quick_connect/models.py:65
36
40
  msgid "Name of the section"
37
41
  msgstr ""
38
42
 
39
- #: aa_mumble_quick_connect/models.py:62 aa_mumble_quick_connect/models.py:78
43
+ #: aa_mumble_quick_connect/models.py:74 aa_mumble_quick_connect/models.py:97
40
44
  msgid "Section"
41
45
  msgstr ""
42
46
 
43
- #: aa_mumble_quick_connect/models.py:63
47
+ #: aa_mumble_quick_connect/models.py:75
44
48
  msgid "Sections"
45
49
  msgstr ""
46
50
 
47
- #: aa_mumble_quick_connect/models.py:81
51
+ #: aa_mumble_quick_connect/models.py:100
48
52
  msgid "Section the Mumble channel belongs to. (Optional)"
49
53
  msgstr ""
50
54
 
51
- #: aa_mumble_quick_connect/models.py:83
55
+ #: aa_mumble_quick_connect/models.py:102
52
56
  msgid "Name of the Mumble channel"
53
57
  msgstr ""
54
58
 
55
- #: aa_mumble_quick_connect/models.py:87
59
+ #: aa_mumble_quick_connect/models.py:105
56
60
  msgid "URL to the channel"
57
61
  msgstr ""
58
62
 
59
- #: aa_mumble_quick_connect/models.py:96
63
+ #: aa_mumble_quick_connect/models.py:109
64
+ msgid "Disable Mumble channel URL verification"
65
+ msgstr ""
66
+
67
+ #: aa_mumble_quick_connect/models.py:111
68
+ msgid "If checked, the Mumble channel URL will not be verified against what is configured for this Auth instance when saving the link. Only use this if you are sure the URL is correct and the Mumble server is controlled by this Auth instance."
69
+ msgstr ""
70
+
71
+ #: aa_mumble_quick_connect/models.py:124
60
72
  msgid "Mumble Link"
61
73
  msgstr ""
62
74
 
63
- #: aa_mumble_quick_connect/models.py:97
75
+ #: aa_mumble_quick_connect/models.py:125
64
76
  msgid "Mumble Links"
65
77
  msgstr ""
66
78
 
@@ -0,0 +1,28 @@
1
+ # Generated by Django 4.2.19 on 2025-02-14 07:35
2
+
3
+ # Django
4
+ from django.db import migrations, models
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("aa_mumble_quick_connect", "0001_initial"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AddField(
15
+ model_name="mumblelink",
16
+ name="disable_url_verification",
17
+ field=models.BooleanField(
18
+ default=False,
19
+ help_text="If checked, the Mumble channel URL will not be verified against what is configured for this Auth instance when saving the link. Only use this if you are sure the URL is correct and the Mumble server is controlled by this Auth instance.",
20
+ verbose_name="Disable Mumble channel URL verification",
21
+ ),
22
+ ),
23
+ migrations.AlterField(
24
+ model_name="mumblelink",
25
+ name="url",
26
+ field=models.CharField(help_text="URL to the channel", max_length=255),
27
+ ),
28
+ ]
@@ -9,23 +9,35 @@ from django.db import models
9
9
  from django.utils.translation import gettext_lazy as _
10
10
 
11
11
 
12
- def validate_mumble_url(url: str):
12
+ def validate_mumble_url(url: str, disable_url_verification: bool = False) -> str:
13
13
  """
14
- Validate Mumble URL
15
-
16
- :param url:
17
- :type url:
18
- :return:
19
- :rtype:
14
+ Validate Mumble channel URL against the configured Mumble server
15
+
16
+ :param url: URL to validate
17
+ :type url: str
18
+ :param disable_url_verification: Disable URL verification
19
+ :type disable_url_verification: bool
20
+ :return: Validated URL
21
+ :rtype: str
20
22
  """
21
23
 
22
- mumble_base_url = f"mumble://{settings.MUMBLE_URL}"
23
-
24
- if not url.startswith(mumble_base_url):
24
+ if not url.startswith("mumble://"):
25
25
  raise ValidationError(
26
- _(f"The Mumble channel URL must start with '{mumble_base_url}'")
26
+ {"url": _('The Mumble channel URL must start with "mumble://"')}
27
27
  )
28
28
 
29
+ if not disable_url_verification:
30
+ mumble_base_url = f"mumble://{settings.MUMBLE_URL}"
31
+
32
+ if not url.startswith(mumble_base_url):
33
+ raise ValidationError(
34
+ {
35
+ "url": _(
36
+ _(f'The Mumble channel URL must start with "{mumble_base_url}"')
37
+ )
38
+ }
39
+ )
40
+
29
41
  return url
30
42
 
31
43
 
@@ -63,6 +75,13 @@ class Section(models.Model):
63
75
  verbose_name_plural = _("Sections")
64
76
 
65
77
  def __str__(self) -> str:
78
+ """
79
+ String representation
80
+
81
+ :return: Name of the section
82
+ :rtype: str
83
+ """
84
+
66
85
  return self.name
67
86
 
68
87
 
@@ -83,9 +102,18 @@ class MumbleLink(models.Model):
83
102
  name = models.CharField(max_length=255, help_text=_("Name of the Mumble channel"))
84
103
  url = models.CharField(
85
104
  max_length=255,
86
- validators=[validate_mumble_url],
87
105
  help_text=_("URL to the channel"),
88
106
  )
107
+ disable_url_verification = models.BooleanField(
108
+ default=False,
109
+ verbose_name=_("Disable Mumble channel URL verification"),
110
+ help_text=_(
111
+ "If checked, the Mumble channel URL will not be verified against what is "
112
+ "configured for this Auth instance when saving the link. Only use this "
113
+ "if you are sure the URL is correct and the Mumble server is controlled "
114
+ "by this Auth instance."
115
+ ),
116
+ )
89
117
 
90
118
  class Meta: # pylint: disable=too-few-public-methods
91
119
  """
@@ -97,4 +125,30 @@ class MumbleLink(models.Model):
97
125
  verbose_name_plural = _("Mumble Links")
98
126
 
99
127
  def __str__(self) -> str:
128
+ """
129
+ String representation
130
+
131
+ :return: Name of the Mumble channel
132
+ :rtype: str
133
+ """
134
+
100
135
  return self.name
136
+
137
+ def clean(self):
138
+ """
139
+ Clean method
140
+
141
+ :param args: Arguments
142
+ :type args: tuple
143
+ :param kwargs: Keyword arguments
144
+ :type kwargs: dict
145
+ :return: None
146
+ :rtype: None
147
+ """
148
+
149
+ # Validate Mumble URL
150
+ self.url = validate_mumble_url(
151
+ url=self.url, disable_url_verification=self.disable_url_verification
152
+ )
153
+
154
+ super().clean() # pragma: no cover