zou 0.20.71__py3-none-any.whl → 0.20.73__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.
@@ -524,16 +524,15 @@ def reply_comment(comment_id, text, person_id=None, files={}):
524
524
  replies = list(comment.replies)
525
525
  replies.append(reply)
526
526
  comment.update({"replies": replies})
527
+ comment_dict = comment.serialize(relations=True)
527
528
  if len(files.keys()) > 0:
528
- comment = comment.serialize(relations=True)
529
- new_attachment_files = add_attachments_to_comment(
530
- comment, files, reply_id=reply["id"]
529
+ _, new_attachment_files = add_attachments_to_comment(
530
+ comment_dict, files, reply_id=reply["id"]
531
531
  )
532
532
  for new_attachment_file in new_attachment_files:
533
533
  new_attachment_file["reply_id"] = reply["id"]
534
534
  reply["attachment_files"] = new_attachment_files
535
535
  tasks_service.clear_comment_cache(comment_id)
536
- comment = comment.serialize(relations=True)
537
536
  events.emit(
538
537
  "comment:reply",
539
538
  {
@@ -544,7 +543,7 @@ def reply_comment(comment_id, text, person_id=None, files={}):
544
543
  project_id=task["project_id"],
545
544
  )
546
545
  notifications_service.create_notifications_for_task_and_reply(
547
- task, comment, reply
546
+ task, comment_dict, reply
548
547
  )
549
548
  return reply
550
549
 
@@ -669,7 +668,7 @@ def add_attachments_to_comment(comment, files, reply_id=None):
669
668
  Create an attachment entry and for each given uploaded files and tie it
670
669
  to given comment.
671
670
  """
672
- if comment["attachment_files"] is None:
671
+ if comment.get("attachment_files", None) is None:
673
672
  comment["attachment_files"] = []
674
673
  new_attachment_files = []
675
674
  for uploaded_file in files.values():
@@ -685,4 +684,4 @@ def add_attachments_to_comment(comment, files, reply_id=None):
685
684
  )
686
685
  comment["attachment_files"].append(attachment_file)
687
686
  new_attachment_files.append(attachment_file)
688
- return new_attachment_files
687
+ return comment, new_attachment_files
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zou
3
- Version: 0.20.71
3
+ Version: 0.20.73
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=jpLzACNJQj7ZV-vygNr_yxjdy_Ljanp1xEeYXAHi-QE,24
1
+ zou/__init__.py,sha256=9N-gYCTePnyeOefVbNNdVa_3GXg3A2X4uYw26hqCmZk,24
2
2
  zou/cli.py,sha256=N9FyrL4TDgIiCUa-I3xIzOgiVLM14kz8_QLQ48y51oE,22767
3
3
  zou/debug.py,sha256=1fawPbkD4wn0Y9Gk0BiBFSa-CQe5agFi8R9uJYl2Uyk,520
4
4
  zou/event_stream.py,sha256=9O1PE_vDW8p3yfHJNSZ8w0ybD-660x8oGN0izgJdTjM,8575
@@ -18,7 +18,7 @@ zou/app/blueprints/breakdown/resources.py,sha256=vpE6aTdSPS3KSuGhgFIXxgYf3LXwjUj
18
18
  zou/app/blueprints/chats/__init__.py,sha256=YGmwGvddg3MgSYVIh-hmkX8t2em9_LblxBeJzFqFJD4,558
19
19
  zou/app/blueprints/chats/resources.py,sha256=ekKH8BghL4MAh-ZzT8IDPVy8cYAbCRAYwzjjkIa4DmU,5934
20
20
  zou/app/blueprints/comments/__init__.py,sha256=WqpJ7-_dK1cInGTFJAxQ7syZtPCotwq2oO20UEnk1h4,1532
21
- zou/app/blueprints/comments/resources.py,sha256=HOH3tTdNqJZx4goFr1OZqzx9xv6oS2D9TbfwHdA2tPQ,19479
21
+ zou/app/blueprints/comments/resources.py,sha256=6HKzH6eIqgT78BU4gy0IcExyE52fi9QrRimkqNvUNCw,19482
22
22
  zou/app/blueprints/concepts/__init__.py,sha256=sP_P4mfYvfMcgeE6MHZYP3eD0Lz0Lwit5-CFuVnA-Jg,894
23
23
  zou/app/blueprints/concepts/resources.py,sha256=hXVK0ON5vu2VDporVLrQdb5HjyxpVrXLoTq-ObLiO_Y,10114
24
24
  zou/app/blueprints/crud/__init__.py,sha256=bzjCUL2BAYuufiWcP1n83JAp1TKXEMqTeN6wMOha76M,9667
@@ -103,7 +103,7 @@ zou/app/blueprints/previews/resources.py,sha256=mRFVMl4fi4mptE1qMG68GAIg868HMiE7
103
103
  zou/app/blueprints/projects/__init__.py,sha256=RlKWld3A3kvMfyvH6uVN7cWXOtYOqnMjwUsrBIqXndg,5634
104
104
  zou/app/blueprints/projects/resources.py,sha256=kYMjJB91yQWmziE8zx3j7bahpKHKzGChGX5AhHzR_Hk,50721
105
105
  zou/app/blueprints/search/__init__.py,sha256=QCjQIY_85l_orhdEiqav_GifjReuwsjZggN3V0GeUVY,356
106
- zou/app/blueprints/search/resources.py,sha256=mV-JpMta1WOThYKkvboB8VMPG5H_vYPBz8Bx8OKNuvg,3087
106
+ zou/app/blueprints/search/resources.py,sha256=XhNewgF4y0Tj9TIZt-2b0c5Whu43YsoeLuNZG2EHFg4,4797
107
107
  zou/app/blueprints/shots/__init__.py,sha256=EcG9qmAchlucqg1M6-RqWGfuKpa5Kq6RgyLZNSsjUr4,4225
108
108
  zou/app/blueprints/shots/resources.py,sha256=jySSalQh8S8BgufYns3PXEBYkTJKU1s1LLrSWZVDiZw,53991
109
109
  zou/app/blueprints/source/__init__.py,sha256=H7K-4TDs4pc5EJvcYTYMJBHesxyqsE5-xq7J8ckOS2g,6093
@@ -135,9 +135,9 @@ zou/app/blueprints/source/shotgun/tasks.py,sha256=XXBRe9QhhS-kuZeV3HitOnpf7mmWVx
135
135
  zou/app/blueprints/source/shotgun/team.py,sha256=GF7y2BwDeFJCiidtG68icfCi-uV1-b96YKiH8KR54iE,1819
136
136
  zou/app/blueprints/source/shotgun/versions.py,sha256=8Mb35e5p3FLbbiu6AZb9tJErDKz2pPRBdIYu80Ayj7w,2292
137
137
  zou/app/blueprints/tasks/__init__.py,sha256=udtTZJVViawRAPu8dO_OoyVzQTheLYWTHeTnrC-2RDA,4331
138
- zou/app/blueprints/tasks/resources.py,sha256=a_YD9q_cKnheu9P1DX7vA5n7h2maZ-gEUrpZ4ItaBZI,55368
138
+ zou/app/blueprints/tasks/resources.py,sha256=npQQbc0XAhIYLMCtOZAzAkBu-Q1iHUlXjHRvpE___3Y,63190
139
139
  zou/app/blueprints/user/__init__.py,sha256=H9zCHcVobC6jq6dTToXKAjnZmDA0a9gChHiIP3BcZsc,4586
140
- zou/app/blueprints/user/resources.py,sha256=dbZe68cOe15twGrUPDU49kV12K9lUbANpBZ7ATLk_d0,39749
140
+ zou/app/blueprints/user/resources.py,sha256=0VeXiY02cmeMSTbE6Ij4l6tU-rpVWG9eqDR9UZgWDks,49588
141
141
  zou/app/file_trees/default.json,sha256=ryUrEmQYE8B_WkzCoQLgmem3N9yNwMIWx9G8p3HfG9o,2310
142
142
  zou/app/file_trees/simple.json,sha256=VBI43Z3rjQxtTpVCq3ktUgS0UB8x-aTowKL9LXuXCFI,3149
143
143
  zou/app/indexer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -200,7 +200,7 @@ zou/app/services/base_service.py,sha256=OZd0STFh-DyBBdwsmA7DMMnrwv4C8wJUbShvZ1is
200
200
  zou/app/services/breakdown_service.py,sha256=-bH1KUq9-No_OKnQtWK4XEU1w7uDPJnzWFMrKNkS1K0,27593
201
201
  zou/app/services/budget_service.py,sha256=uMU1vJr7kyxtkvMz_Nm7DyhW6qvSGYGqRHEQTxsHYCc,5468
202
202
  zou/app/services/chats_service.py,sha256=pqnT-RCltdf9Dp4t-2NtOSawGk0jyNhVPTgERZ_nYvk,8297
203
- zou/app/services/comments_service.py,sha256=BK4tQorV54M_fvsFIUfK3SS8flCleAK1piNkNxWOZ1s,22121
203
+ zou/app/services/comments_service.py,sha256=u62elfDISSOEP_GNXBUEqgnLoisK3hS8-S9UDPB1Gd8,22106
204
204
  zou/app/services/concepts_service.py,sha256=uH0leb23Op48wc1bHlUV2-I97QROsIemKr80F0UwnoM,11213
205
205
  zou/app/services/custom_actions_service.py,sha256=fWISEOOdthadrxeHuacEel5Xj6msn0yWXJQDG1gzvsY,297
206
206
  zou/app/services/deletion_service.py,sha256=UPojg4oyyCKjUObfwv9nY6tD0SVDeimpv0xgbcSmyyk,17372
@@ -469,9 +469,9 @@ zou/remote/normalize_movie.py,sha256=zNfEY3N1UbAHZfddGONTg2Sff3ieLVWd4dfZa1dpnes
469
469
  zou/remote/playlist.py,sha256=AsDo0bgYhDcd6DfNRV6r6Jj3URWwavE2ZN3VkKRPbLU,3293
470
470
  zou/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
471
471
  zou/utils/movie.py,sha256=d67fIL9dVBKt-E_qCGXRbNNdbJaJR5sHvZeX3hf8ldE,16559
472
- zou-0.20.71.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
473
- zou-0.20.71.dist-info/METADATA,sha256=pvPX3HKiuHeJVLe8RDDanCYI9-nJ6Pol8ecJfPVMHFg,6697
474
- zou-0.20.71.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
475
- zou-0.20.71.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
476
- zou-0.20.71.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
477
- zou-0.20.71.dist-info/RECORD,,
472
+ zou-0.20.73.dist-info/licenses/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
473
+ zou-0.20.73.dist-info/METADATA,sha256=jGQvWdZ4Z0s4yTLv-E2yVc7OmT-qenSS2erRkO8VwJM,6697
474
+ zou-0.20.73.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
475
+ zou-0.20.73.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
476
+ zou-0.20.73.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
477
+ zou-0.20.73.dist-info/RECORD,,
File without changes