udata 7.0.7.dev28628__py2.py3-none-any.whl → 7.0.7.dev28634__py2.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/api/__init__.py +2 -1
- udata/api/oauth2.py +2 -1
- {udata-7.0.7.dev28628.dist-info → udata-7.0.7.dev28634.dist-info}/METADATA +2 -1
- {udata-7.0.7.dev28628.dist-info → udata-7.0.7.dev28634.dist-info}/RECORD +8 -8
- {udata-7.0.7.dev28628.dist-info → udata-7.0.7.dev28634.dist-info}/LICENSE +0 -0
- {udata-7.0.7.dev28628.dist-info → udata-7.0.7.dev28634.dist-info}/WHEEL +0 -0
- {udata-7.0.7.dev28628.dist-info → udata-7.0.7.dev28634.dist-info}/entry_points.txt +0 -0
- {udata-7.0.7.dev28628.dist-info → udata-7.0.7.dev28634.dist-info}/top_level.txt +0 -0
udata/api/__init__.py
CHANGED
|
@@ -19,7 +19,6 @@ from udata.i18n import get_locale
|
|
|
19
19
|
from udata.auth import (
|
|
20
20
|
current_user, login_user, Permission, RoleNeed, PermissionDenied
|
|
21
21
|
)
|
|
22
|
-
from udata.core.user.models import User
|
|
23
22
|
from udata.utils import safe_unicode
|
|
24
23
|
|
|
25
24
|
from . import fields, oauth2
|
|
@@ -128,6 +127,8 @@ class UDataApi(Api):
|
|
|
128
127
|
'''Authentify the user if credentials are given'''
|
|
129
128
|
@wraps(func)
|
|
130
129
|
def wrapper(*args, **kwargs):
|
|
130
|
+
from udata.core.user.models import User
|
|
131
|
+
|
|
131
132
|
if current_user.is_authenticated:
|
|
132
133
|
return func(*args, **kwargs)
|
|
133
134
|
|
udata/api/oauth2.py
CHANGED
|
@@ -36,7 +36,6 @@ from udata.app import csrf
|
|
|
36
36
|
from udata.auth import current_user, login_required, login_user
|
|
37
37
|
from udata.i18n import I18nBlueprint, lazy_gettext as _
|
|
38
38
|
from udata.mongo import db
|
|
39
|
-
from udata.core.user.models import User
|
|
40
39
|
from udata.core.storages import images, default_image_basename
|
|
41
40
|
|
|
42
41
|
|
|
@@ -244,6 +243,8 @@ class AuthorizationCodeGrant(grants.AuthorizationCodeGrant):
|
|
|
244
243
|
|
|
245
244
|
class PasswordGrant(grants.ResourceOwnerPasswordCredentialsGrant):
|
|
246
245
|
def authenticate_user(self, username, password):
|
|
246
|
+
from udata.core.user.models import User
|
|
247
|
+
|
|
247
248
|
user = User.objects(email=username).first()
|
|
248
249
|
if user and verify_password(password, user.password):
|
|
249
250
|
return user
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: udata
|
|
3
|
-
Version: 7.0.7.
|
|
3
|
+
Version: 7.0.7.dev28634
|
|
4
4
|
Summary: Open data portal
|
|
5
5
|
Home-page: https://github.com/opendatateam/udata
|
|
6
6
|
Author: Opendata Team
|
|
@@ -139,6 +139,7 @@ It is collectively taken care of by members of the
|
|
|
139
139
|
- Move `db` and Mongo fields classes outside `udata.models` [#3005](https://github.com/opendatateam/udata/pull/3005)
|
|
140
140
|
- :warning: Update LICENSE_GROUPS config layout [#3010](https://github.com/opendatateam/udata/pull/3010)
|
|
141
141
|
- Remove unused dependencies [#3006](https://github.com/opendatateam/udata/pull/3006)
|
|
142
|
+
- Move some `import User` to runtime imports [#3013](https://github.com/opendatateam/udata/pull/3013)
|
|
142
143
|
- Move `Owned` mixin to its own module [#3008](https://github.com/opendatateam/udata/pull/3008)
|
|
143
144
|
- Move `badge_fields` to separate module than `models.py` [#3011](https://github.com/opendatateam/udata/pull/3011)
|
|
144
145
|
|
|
@@ -23,11 +23,11 @@ udata/worker.py,sha256=K-Wafye5-uXP4kQlffRKws2J9YbJ6m6n2QjcVsY8Nsg,118
|
|
|
23
23
|
udata/wsgi.py,sha256=P7AJvZ5JqY4uRSBOzaFiBniChWIU9RVQ-Y0PN4vCCMY,77
|
|
24
24
|
udata/admin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
25
25
|
udata/admin/views.py,sha256=wMlpnC1aINW-6JDk6-kQXhcTYBZH-5wajEuWzVDcIKA,331
|
|
26
|
-
udata/api/__init__.py,sha256=
|
|
26
|
+
udata/api/__init__.py,sha256=0Eh2xF4GaWcpfL9WMvDBLxi6-si4JK5VcxaBVhc73yc,10864
|
|
27
27
|
udata/api/commands.py,sha256=oK2p1VdUvULDdYuvYYpYvY_bdkPJy-KfROfoX71oOuA,3277
|
|
28
28
|
udata/api/errors.py,sha256=Sy_f3WVrNTUPZjCOogIVgocDdUjnKz149KDi4mMA_Lg,240
|
|
29
29
|
udata/api/fields.py,sha256=l-Fa27-easR86qgof2bk130jq1N1pNUgGmQzok1UI3Q,3094
|
|
30
|
-
udata/api/oauth2.py,sha256=
|
|
30
|
+
udata/api/oauth2.py,sha256=ERppP1FtigiAJXO01IjhFFzG8ajPVD6gPcKpBrjHFO4,11726
|
|
31
31
|
udata/api/parsers.py,sha256=Fo4krCaFao0D1QNqKpjWiFVvKVLd9b_2mon6RbbOXls,1485
|
|
32
32
|
udata/api/signals.py,sha256=9zcw4NDdpJwhgsS5UyLtnls1w_RfqghYFULza6d4-cw,162
|
|
33
33
|
udata/auth/__init__.py,sha256=ziR6gzkE1V4__3ynjE-_IPWHzmapOsZIrnaDAjDijsM,1958
|
|
@@ -675,9 +675,9 @@ udata/translations/pt/LC_MESSAGES/udata.mo,sha256=zCVMB-a4-mLM1jNyYMk58rgVRaVIwQ
|
|
|
675
675
|
udata/translations/pt/LC_MESSAGES/udata.po,sha256=avfWczvlLBKSohyB55-4TLmUGMU_Rze4XmAo4OTk2v0,43513
|
|
676
676
|
udata/translations/sr/LC_MESSAGES/udata.mo,sha256=ScuqdpaV4y1ZIpBAEfxeaKdzkyGZL0mJmKMoG6w0iRQ,28553
|
|
677
677
|
udata/translations/sr/LC_MESSAGES/udata.po,sha256=QpgEXh1eHjztPa7oNLXd_sds1DC95A-STTtZyTE4m-E,50093
|
|
678
|
-
udata-7.0.7.
|
|
679
|
-
udata-7.0.7.
|
|
680
|
-
udata-7.0.7.
|
|
681
|
-
udata-7.0.7.
|
|
682
|
-
udata-7.0.7.
|
|
683
|
-
udata-7.0.7.
|
|
678
|
+
udata-7.0.7.dev28634.dist-info/LICENSE,sha256=V8j_M8nAz8PvAOZQocyRDX7keai8UJ9skgmnwqETmdY,34520
|
|
679
|
+
udata-7.0.7.dev28634.dist-info/METADATA,sha256=XAKFY2BJI6UQod6OqXX7kIhsCLbQmvYB_nYIQT8JaLA,121198
|
|
680
|
+
udata-7.0.7.dev28634.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
|
681
|
+
udata-7.0.7.dev28634.dist-info/entry_points.txt,sha256=3SKiqVy4HUqxf6iWspgMqH8d88Htk6KoLbG1BU-UddQ,451
|
|
682
|
+
udata-7.0.7.dev28634.dist-info/top_level.txt,sha256=39OCg-VWFWOq4gCKnjKNu-s3OwFlZIu_dVH8Gl6ndHw,12
|
|
683
|
+
udata-7.0.7.dev28634.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|