zou 0.19.51__py3-none-any.whl → 0.19.52__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.
- zou/__init__.py +1 -1
- zou/app/blueprints/auth/resources.py +26 -22
- zou/app/blueprints/previews/resources.py +2 -0
- {zou-0.19.51.dist-info → zou-0.19.52.dist-info}/METADATA +1 -1
- {zou-0.19.51.dist-info → zou-0.19.52.dist-info}/RECORD +9 -9
- {zou-0.19.51.dist-info → zou-0.19.52.dist-info}/WHEEL +1 -1
- {zou-0.19.51.dist-info → zou-0.19.52.dist-info}/LICENSE +0 -0
- {zou-0.19.51.dist-info → zou-0.19.52.dist-info}/entry_points.txt +0 -0
- {zou-0.19.51.dist-info → zou-0.19.52.dist-info}/top_level.txt +0 -0
zou/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.19.
|
|
1
|
+
__version__ = "0.19.52"
|
|
@@ -1376,31 +1376,35 @@ class SAMLSSOResource(Resource, ArgsMixin):
|
|
|
1376
1376
|
email, "default".encode("utf-8"), **person_info
|
|
1377
1377
|
)
|
|
1378
1378
|
|
|
1379
|
-
access_token = create_access_token(
|
|
1380
|
-
identity=user["id"],
|
|
1381
|
-
additional_claims={
|
|
1382
|
-
"identity_type": "person",
|
|
1383
|
-
},
|
|
1384
|
-
)
|
|
1385
|
-
refresh_token = create_refresh_token(
|
|
1386
|
-
identity=user["id"],
|
|
1387
|
-
additional_claims={
|
|
1388
|
-
"identity_type": "person",
|
|
1389
|
-
},
|
|
1390
|
-
)
|
|
1391
|
-
identity_changed.send(
|
|
1392
|
-
current_app._get_current_object(),
|
|
1393
|
-
identity=Identity(user["id"], "person"),
|
|
1394
|
-
)
|
|
1395
|
-
|
|
1396
|
-
ip_address = request.environ.get("HTTP_X_REAL_IP", request.remote_addr)
|
|
1397
|
-
|
|
1398
1379
|
response = make_response(
|
|
1399
1380
|
redirect(f"{config.DOMAIN_PROTOCOL}://{config.DOMAIN_NAME}")
|
|
1400
1381
|
)
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1382
|
+
|
|
1383
|
+
if user["active"]:
|
|
1384
|
+
access_token = create_access_token(
|
|
1385
|
+
identity=user["id"],
|
|
1386
|
+
additional_claims={
|
|
1387
|
+
"identity_type": "person",
|
|
1388
|
+
},
|
|
1389
|
+
)
|
|
1390
|
+
refresh_token = create_refresh_token(
|
|
1391
|
+
identity=user["id"],
|
|
1392
|
+
additional_claims={
|
|
1393
|
+
"identity_type": "person",
|
|
1394
|
+
},
|
|
1395
|
+
)
|
|
1396
|
+
identity_changed.send(
|
|
1397
|
+
current_app._get_current_object(),
|
|
1398
|
+
identity=Identity(user["id"], "person"),
|
|
1399
|
+
)
|
|
1400
|
+
|
|
1401
|
+
ip_address = request.environ.get(
|
|
1402
|
+
"HTTP_X_REAL_IP", request.remote_addr
|
|
1403
|
+
)
|
|
1404
|
+
|
|
1405
|
+
set_access_cookies(response, access_token)
|
|
1406
|
+
set_refresh_cookies(response, refresh_token)
|
|
1407
|
+
events_service.create_login_log(user["id"], ip_address, "web")
|
|
1404
1408
|
|
|
1405
1409
|
return response
|
|
1406
1410
|
|
|
@@ -981,6 +981,7 @@ class BaseThumbnailResource(Resource):
|
|
|
981
981
|
|
|
982
982
|
|
|
983
983
|
class PersonThumbnailResource(BaseThumbnailResource):
|
|
984
|
+
|
|
984
985
|
def __init__(self):
|
|
985
986
|
BaseThumbnailResource.__init__(
|
|
986
987
|
self,
|
|
@@ -1028,6 +1029,7 @@ class ProjectThumbnailResource(BaseThumbnailResource):
|
|
|
1028
1029
|
"projects",
|
|
1029
1030
|
projects_service.get_project,
|
|
1030
1031
|
projects_service.update_project,
|
|
1032
|
+
thumbnail_utils.BIG_SQUARE_SIZE,
|
|
1031
1033
|
)
|
|
1032
1034
|
|
|
1033
1035
|
def check_allowed_to_get(self, instance_id):
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
zou/__init__.py,sha256=
|
|
1
|
+
zou/__init__.py,sha256=CXdAtGdLQ3H3JntZq8Z7OptAeL5sbsEvqWtL7mYMKTo,24
|
|
2
2
|
zou/cli.py,sha256=DHHf4mz33Bi0gGFJ0GdRUpjrMrMSQYyVubJFppHPZlU,18914
|
|
3
3
|
zou/debug.py,sha256=1fawPbkD4wn0Y9Gk0BiBFSa-CQe5agFi8R9uJYl2Uyk,520
|
|
4
4
|
zou/event_stream.py,sha256=zgob2dZKray2lxPa11hdRNmOg8XRlKDdRcGdF80ylwg,8245
|
|
@@ -12,7 +12,7 @@ zou/app/blueprints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
|
12
12
|
zou/app/blueprints/assets/__init__.py,sha256=tSRvVrnPj732F4k_lkxoTJBJNmIUAqKXPLJDHvOtAA4,2178
|
|
13
13
|
zou/app/blueprints/assets/resources.py,sha256=qY4K890kTTRWUVnNomilEuJY7qBy4RWHG2XiTuWPfBA,18988
|
|
14
14
|
zou/app/blueprints/auth/__init__.py,sha256=xP874bMWUnLIirOPSEbpe-Q2fBBQrxZGKd0tLZmNJXk,1128
|
|
15
|
-
zou/app/blueprints/auth/resources.py,sha256=
|
|
15
|
+
zou/app/blueprints/auth/resources.py,sha256=CAqlC8Q2Mw3grjL2bU_aZJQ18huwa1Kf3ym2sueH8Bg,45136
|
|
16
16
|
zou/app/blueprints/breakdown/__init__.py,sha256=Dp6GWSGxxWIedpyzTTEKpCRUYEo8oVNVyQhwNvTMmQM,1888
|
|
17
17
|
zou/app/blueprints/breakdown/resources.py,sha256=JY3j17kv7xPKV9S-XoOxNYivpGHlfZkXI5WuGtx3_Yk,13591
|
|
18
18
|
zou/app/blueprints/chats/__init__.py,sha256=YGmwGvddg3MgSYVIh-hmkX8t2em9_LblxBeJzFqFJD4,558
|
|
@@ -91,7 +91,7 @@ zou/app/blueprints/persons/resources.py,sha256=wYM5xcjP7Q0-ETZTom4yjvOnTO9kYzfjY
|
|
|
91
91
|
zou/app/blueprints/playlists/__init__.py,sha256=vuEk1F3hFHsmuKWhdepMoLyOzmNKDn1YrjjfcaIz0lQ,1596
|
|
92
92
|
zou/app/blueprints/playlists/resources.py,sha256=alRlMHypUFErXLsEYxpFK84cdjFJ3YWwamZtW0KcwLY,17211
|
|
93
93
|
zou/app/blueprints/previews/__init__.py,sha256=qGohO6LRNZKXBAegINcUXuZlrtxobJKQg84-rQ1L3AU,4202
|
|
94
|
-
zou/app/blueprints/previews/resources.py,sha256=
|
|
94
|
+
zou/app/blueprints/previews/resources.py,sha256=UgzObCvYfQTT1c1OriQaWVYr17iuQQpbrLHZThsKcNM,47120
|
|
95
95
|
zou/app/blueprints/projects/__init__.py,sha256=Pn3fA5bpNFEPBzxTKJ2foV6osZFflXXSM2l2uZh3ktM,3927
|
|
96
96
|
zou/app/blueprints/projects/resources.py,sha256=v9_TLh3mujL-p7QcGkfSOJnNojzoJA15jhqAHz5kEIc,31552
|
|
97
97
|
zou/app/blueprints/search/__init__.py,sha256=QCjQIY_85l_orhdEiqav_GifjReuwsjZggN3V0GeUVY,356
|
|
@@ -410,9 +410,9 @@ zou/remote/normalize_movie.py,sha256=zNfEY3N1UbAHZfddGONTg2Sff3ieLVWd4dfZa1dpnes
|
|
|
410
410
|
zou/remote/playlist.py,sha256=AsDo0bgYhDcd6DfNRV6r6Jj3URWwavE2ZN3VkKRPbLU,3293
|
|
411
411
|
zou/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
412
412
|
zou/utils/movie.py,sha256=u9LCEOvmkxwm-KiZ6jKNdB9LSC6XXUDwJpVx8LkDwJg,16416
|
|
413
|
-
zou-0.19.
|
|
414
|
-
zou-0.19.
|
|
415
|
-
zou-0.19.
|
|
416
|
-
zou-0.19.
|
|
417
|
-
zou-0.19.
|
|
418
|
-
zou-0.19.
|
|
413
|
+
zou-0.19.52.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
|
|
414
|
+
zou-0.19.52.dist-info/METADATA,sha256=60v2YWNqsw0AW9QBQdYFaQ-XBUfXMaGBbp_p0KxL6-g,6704
|
|
415
|
+
zou-0.19.52.dist-info/WHEEL,sha256=uCRv0ZEik_232NlR4YDw4Pv3Ajt5bKvMH13NUU7hFuI,91
|
|
416
|
+
zou-0.19.52.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
|
|
417
|
+
zou-0.19.52.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
|
|
418
|
+
zou-0.19.52.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|