zou 0.20.33__py3-none-any.whl → 0.20.35__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 CHANGED
@@ -1 +1 @@
1
- __version__ = "0.20.33"
1
+ __version__ = "0.20.35"
@@ -289,7 +289,8 @@ class AttachmentResource(Resource):
289
289
  user = persons_service.get_current_user()
290
290
  comment = tasks_service.get_comment(comment_id)
291
291
  if comment["person_id"] != user["id"]:
292
- permissions.check_admin_permissions()
292
+ task = tasks_service.get_task(task_id)
293
+ user_service.check_manager_project_access(task["project_id"])
293
294
 
294
295
  deletion_service.remove_attachment_file_by_id(attachment_id)
295
296
  return "", 204
@@ -470,7 +470,7 @@ Your login is: <strong>{person["email"]}</strong>
470
470
  You are invited to set your password by following this link: <a href="{reset_url}">{reset_url}</a>
471
471
  </p>
472
472
  <p>
473
- This link will expire after 2 days. After, you have to request to reset your password.
473
+ This link will expire after one week. After, you have to request to reset your password.
474
474
  The invitation was sent at this date: {time_string}.
475
475
  </p>
476
476
  <p>
@@ -1452,12 +1452,17 @@ def get_last_notifications(
1452
1452
  ),
1453
1453
  None,
1454
1454
  )
1455
- reply_mentions = reply.get("mentions", []) or []
1456
- reply_department_mentions = (
1457
- reply.get("department_mentions", []) or []
1458
- )
1459
1455
  if reply is not None:
1460
1456
  reply_text = reply["text"]
1457
+ reply_mentions = reply.get("mentions", []) or []
1458
+ reply_department_mentions = (
1459
+ reply.get("department_mentions", []) or []
1460
+ )
1461
+ else:
1462
+ reply_mentions = []
1463
+ reply_department_mentions = (
1464
+ []
1465
+ )
1461
1466
 
1462
1467
  if role == "client" and is_current_user_artist:
1463
1468
  comment_text = ""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zou
3
- Version: 0.20.33
3
+ Version: 0.20.35
4
4
  Summary: API to store and manage the data of your animation production
5
5
  Home-page: https://zou.cg-wire.com
6
6
  Author: CG Wire
@@ -1,4 +1,4 @@
1
- zou/__init__.py,sha256=ChzpDudrhUpEsDCtVpv7u0IVHo6qDAfpCNTU0yFeJR8,24
1
+ zou/__init__.py,sha256=CiKA3TE6R01oyvtNw_rNBH1DEEAmpZITm9M-h70F1PQ,24
2
2
  zou/cli.py,sha256=HuYi2Ma7SP2SD7C9d9dwpZ49BHpytKIoyJP_su9JwZY,18755
3
3
  zou/debug.py,sha256=1fawPbkD4wn0Y9Gk0BiBFSa-CQe5agFi8R9uJYl2Uyk,520
4
4
  zou/event_stream.py,sha256=_BB_cwEpWOrHEhfxxgwzZgfAauekg0lrI5COume2XR8,6663
@@ -18,7 +18,7 @@ zou/app/blueprints/breakdown/resources.py,sha256=pmGlHLiXFsPRbxf403SiVgGiaBbtK8G
18
18
  zou/app/blueprints/chats/__init__.py,sha256=YGmwGvddg3MgSYVIh-hmkX8t2em9_LblxBeJzFqFJD4,558
19
19
  zou/app/blueprints/chats/resources.py,sha256=4yLFermdwOsnBLs9nx8yxuHWLar24uQWQy0XgsUNDD0,5950
20
20
  zou/app/blueprints/comments/__init__.py,sha256=WqpJ7-_dK1cInGTFJAxQ7syZtPCotwq2oO20UEnk1h4,1532
21
- zou/app/blueprints/comments/resources.py,sha256=To2tyxh1pMkBAnlnj-0u3PGW70n4JTnNsv7BXw-Ng7I,19185
21
+ zou/app/blueprints/comments/resources.py,sha256=hS5Yt8Mz7d9e19A4-yXaXO12sFugg_UzLPBxKXdtQYU,19260
22
22
  zou/app/blueprints/concepts/__init__.py,sha256=sP_P4mfYvfMcgeE6MHZYP3eD0Lz0Lwit5-CFuVnA-Jg,894
23
23
  zou/app/blueprints/concepts/resources.py,sha256=maJNrBAWX0bKbDKtOZc3YFp4nTVtIdkkAA4H9WA9n1Y,10140
24
24
  zou/app/blueprints/crud/__init__.py,sha256=qn7xkEh2EG0mPS_RBmm0GgYr0O1jnmI8ymXZnFWZCz8,8361
@@ -200,7 +200,7 @@ zou/app/services/index_service.py,sha256=IaffQz_oj6GPEbuDp4a2qnSc6n-hhIcmA_LrTm3
200
200
  zou/app/services/names_service.py,sha256=TOSrintROmxcAlcFQE0i2E3PBLnw81GAztNselpTn18,2947
201
201
  zou/app/services/news_service.py,sha256=eOXkvLhOcgncI2NrgiJEccV28oxZX5CsZVqaE-l4kWQ,9084
202
202
  zou/app/services/notifications_service.py,sha256=7GDRio_mGaRYV5BHOAdpxBZjA_LLYUfVpbwZqy1n9pI,15685
203
- zou/app/services/persons_service.py,sha256=L-4neKMzM0GHtkc2WKLuf1ufLX7dctOcsZbRfG9hKh4,16564
203
+ zou/app/services/persons_service.py,sha256=HjV-su80Y2BO9l5zoBKHMNF0mDGtkWqPhEOs3nQ3nlI,16566
204
204
  zou/app/services/playlists_service.py,sha256=Gs5K6jDJmnbdWqNvM3J0cOn0Lfxh_JtoPdEmqYXFSWk,32345
205
205
  zou/app/services/preview_files_service.py,sha256=Yk-vwzHuKTzNkEZfl9DhQRdDuRU006uwZxJ-RKajEkI,35842
206
206
  zou/app/services/projects_service.py,sha256=aIbYaFomy7OX2Pxvkf9w5qauDvkjuc9ummSGNYIpQMY,21249
@@ -213,7 +213,7 @@ zou/app/services/sync_service.py,sha256=iWxx1kOGEXympHmSBBQWtDZWNtumdxp8kppee0Oe
213
213
  zou/app/services/tasks_service.py,sha256=6ZFq4DhJ9HDgWT3CcikUWWImMNuHko1Bz_ARKPfeoEw,69775
214
214
  zou/app/services/telemetry_services.py,sha256=xQm1h1t_JxSFW59zQGf4NuNdUi1UfMa_6pQ-ytRbmGA,1029
215
215
  zou/app/services/time_spents_service.py,sha256=H9X-60s6oqtY9rtU-K2jKwUSljfkdGlf_9wMr3iVfIA,15158
216
- zou/app/services/user_service.py,sha256=-ST4zUm2rbdXgdw2xzVJaYEA-LAsZvInRjDvpCC8GJA,51353
216
+ zou/app/services/user_service.py,sha256=OPQUP0N7xFpN_WIiIT8IrJKuhqY9NQD54Mlm-ABReFc,51510
217
217
  zou/app/stores/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
218
218
  zou/app/stores/auth_tokens_store.py,sha256=-qOJPybLHvnMOq3PWk073OW9HJwOHGhFLZeOIlX1UVw,1290
219
219
  zou/app/stores/file_store.py,sha256=yLQDM6mNbj9oe0vsWdBqun7D8Dw-eSjD1yHCCftX0OI,4045
@@ -420,9 +420,9 @@ zou/remote/normalize_movie.py,sha256=zNfEY3N1UbAHZfddGONTg2Sff3ieLVWd4dfZa1dpnes
420
420
  zou/remote/playlist.py,sha256=AsDo0bgYhDcd6DfNRV6r6Jj3URWwavE2ZN3VkKRPbLU,3293
421
421
  zou/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
422
422
  zou/utils/movie.py,sha256=d67fIL9dVBKt-E_qCGXRbNNdbJaJR5sHvZeX3hf8ldE,16559
423
- zou-0.20.33.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
424
- zou-0.20.33.dist-info/METADATA,sha256=y7gEfXe-8I10IRuyqpVUG7UAQqinUOE_iqcWhgqg65o,6695
425
- zou-0.20.33.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
426
- zou-0.20.33.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
427
- zou-0.20.33.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
428
- zou-0.20.33.dist-info/RECORD,,
423
+ zou-0.20.35.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
424
+ zou-0.20.35.dist-info/METADATA,sha256=2Bq8sfXkRJCkAJELu6sxbCnmQdLCaIo8yNeuM88cLAI,6695
425
+ zou-0.20.35.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
426
+ zou-0.20.35.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
427
+ zou-0.20.35.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
428
+ zou-0.20.35.dist-info/RECORD,,
File without changes