udata 13.0.1.dev10__py3-none-any.whl → 13.0.1.dev12__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.
Potentially problematic release.
This version of udata might be problematic. Click here for more details.
- udata/commands/info.py +1 -3
- udata/entrypoints.py +0 -1
- udata/tests/api/test_security_api.py +2 -1
- udata/tests/test_mail.py +2 -2
- udata/translations/ar/LC_MESSAGES/udata.mo +0 -0
- udata/translations/ar/LC_MESSAGES/udata.po +267 -279
- udata/translations/de/LC_MESSAGES/udata.mo +0 -0
- udata/translations/de/LC_MESSAGES/udata.po +269 -281
- udata/translations/es/LC_MESSAGES/udata.mo +0 -0
- udata/translations/es/LC_MESSAGES/udata.po +267 -279
- udata/translations/fr/LC_MESSAGES/udata.mo +0 -0
- udata/translations/fr/LC_MESSAGES/udata.po +278 -290
- udata/translations/it/LC_MESSAGES/udata.mo +0 -0
- udata/translations/it/LC_MESSAGES/udata.po +269 -281
- udata/translations/pt/LC_MESSAGES/udata.mo +0 -0
- udata/translations/pt/LC_MESSAGES/udata.po +269 -281
- udata/translations/sr/LC_MESSAGES/udata.mo +0 -0
- udata/translations/sr/LC_MESSAGES/udata.po +270 -282
- {udata-13.0.1.dev10.dist-info → udata-13.0.1.dev12.dist-info}/METADATA +1 -2
- {udata-13.0.1.dev10.dist-info → udata-13.0.1.dev12.dist-info}/RECORD +24 -24
- {udata-13.0.1.dev10.dist-info → udata-13.0.1.dev12.dist-info}/WHEEL +0 -0
- {udata-13.0.1.dev10.dist-info → udata-13.0.1.dev12.dist-info}/entry_points.txt +0 -0
- {udata-13.0.1.dev10.dist-info → udata-13.0.1.dev12.dist-info}/licenses/LICENSE +0 -0
- {udata-13.0.1.dev10.dist-info → udata-13.0.1.dev12.dist-info}/top_level.txt +0 -0
udata/commands/info.py
CHANGED
|
@@ -43,9 +43,7 @@ def plugins():
|
|
|
43
43
|
plugins = current_app.config["PLUGINS"]
|
|
44
44
|
for name, description in entrypoints.ENTRYPOINTS.items():
|
|
45
45
|
echo("{0} ({1})".format(white(description), name))
|
|
46
|
-
if name == "udata.
|
|
47
|
-
actives = [current_app.config["THEME"]]
|
|
48
|
-
elif name == "udata.avatars":
|
|
46
|
+
if name == "udata.avatars":
|
|
49
47
|
actives = [avatar_config("provider")]
|
|
50
48
|
else:
|
|
51
49
|
actives = plugins
|
udata/entrypoints.py
CHANGED
|
@@ -5,6 +5,7 @@ from flask import url_for
|
|
|
5
5
|
from flask_security.recoverable import generate_reset_password_token
|
|
6
6
|
|
|
7
7
|
from udata.commands.fixtures import UserFactory
|
|
8
|
+
from udata.i18n import lazy_gettext as _
|
|
8
9
|
from udata.tests.api import PytestOnlyAPITestCase
|
|
9
10
|
from udata.tests.helpers import capture_mails
|
|
10
11
|
|
|
@@ -105,7 +106,7 @@ class SecurityAPITest(PytestOnlyAPITestCase):
|
|
|
105
106
|
assert len(mails) == 1
|
|
106
107
|
assert len(mails[0].recipients) == 1
|
|
107
108
|
assert mails[0].recipients[0] == "jane2@example.org"
|
|
108
|
-
assert mails[0].subject == "Confirm your email address"
|
|
109
|
+
assert mails[0].subject == _("Confirm your email address")
|
|
109
110
|
|
|
110
111
|
@pytest.mark.options(CAPTCHETAT_BASE_URL=None, SECURITY_RETURN_GENERIC_RESPONSES=True)
|
|
111
112
|
def test_reset_password(self, api):
|
udata/tests/test_mail.py
CHANGED
|
@@ -96,8 +96,8 @@ class MailGenerationTest(APITestCase):
|
|
|
96
96
|
)
|
|
97
97
|
|
|
98
98
|
assert len(mails) == 1
|
|
99
|
-
assert "<strong>
|
|
100
|
-
assert "
|
|
99
|
+
assert "<strong>Du texte :</strong> Some content" in mails[0].html
|
|
100
|
+
assert "Du texte : Some content" in mails[0].body
|
|
101
101
|
|
|
102
102
|
@pytest.mark.options(DEFAULT_LANGUAGE="en")
|
|
103
103
|
def test_labelled_bloc_truncation(self):
|
|
Binary file
|