zou 0.19.53__py3-none-any.whl → 0.19.54__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.19.53"
1
+ __version__ = "0.19.54"
@@ -114,6 +114,7 @@ class TasksResource(BaseModelsResource, ArgsMixin):
114
114
  if assignees is not None:
115
115
  instance.assignees = persons
116
116
  instance.save()
117
+ self.emit_create_event(instance.serialize())
117
118
 
118
119
  return tasks_service.get_task_with_relations(str(instance.id)), 201
119
120
 
@@ -722,6 +722,7 @@ def set_shared_assets(
722
722
  project_id=None,
723
723
  asset_type_id=None,
724
724
  asset_ids=None,
725
+ with_events=False
725
726
  ):
726
727
  """
727
728
  Set all assets of a project to is_shared=True or False.
@@ -748,11 +749,12 @@ def set_shared_assets(
748
749
  for asset in assets:
749
750
  asset_id = str(asset.id)
750
751
  clear_asset_cache(asset_id)
751
- events.emit(
752
- "asset:update",
753
- {"asset_id": asset_id},
754
- project_id=project_id,
755
- )
752
+ if with_events:
753
+ events.emit(
754
+ "asset:update",
755
+ {"asset_id": asset_id},
756
+ project_id=project_id,
757
+ )
756
758
 
757
759
  return Entity.serialize_list(assets, obj_type="Asset")
758
760
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: zou
3
- Version: 0.19.53
3
+ Version: 0.19.54
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=pD0JAB0QjLmeBWMfIo8bPcKr4iY6NMWdWsfNhrZAyHQ,24
1
+ zou/__init__.py,sha256=166Pydgqhznfbi3veNYuwTUKwt-iztD4zn5BNG5qvwY,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=HXPN79RZlG4Y3dYTqkprm8iJPmOn80W7INULHR6GjC8,8246
@@ -56,7 +56,7 @@ zou/app/blueprints/crud/software.py,sha256=8UmSPMX-V210nlX0k_RafV930tYqPayt2mBOy
56
56
  zou/app/blueprints/crud/status_automation.py,sha256=VYgqYlPDmXG38qvACY2UXZNVVqiWjjZM0jD2_2746Kw,2347
57
57
  zou/app/blueprints/crud/studio.py,sha256=GviLxRFt8SDE9F58MoVLdXLE1DXq9IlaZB23RrQiz5g,937
58
58
  zou/app/blueprints/crud/subscription.py,sha256=xFV_nvRg2ow6E0JWo4VHgeK_SkKX3K8i80thY3qRCl0,392
59
- zou/app/blueprints/crud/task.py,sha256=a-BJ5mgE3dRDUiE-KaZjho7vgJ2qbm9D6d36ZWhWrZA,5672
59
+ zou/app/blueprints/crud/task.py,sha256=efhEWUZUs8HMRaze8ORvi8qoZ3fAfJ154BXtZQunBos,5729
60
60
  zou/app/blueprints/crud/task_status.py,sha256=SAWI7qG_9QsBZY5CpjZABYE0zuCimVzhfZfyEfQ_Rj8,1468
61
61
  zou/app/blueprints/crud/task_type.py,sha256=c_UIIEJjYpwuy7DB2zADWCppr4wOOyDNqhc4JaeSaJM,1801
62
62
  zou/app/blueprints/crud/time_spent.py,sha256=9tfoKJ77OEDTnpKHshO3UMDz_KCoyLq1CWquInm5DY0,3057
@@ -179,7 +179,7 @@ zou/app/models/task_type.py,sha256=IsixVAfz3pyMf0eQw8x-uFNM9OHNkZpsPLEz_VNQ0hA,1
179
179
  zou/app/models/time_spent.py,sha256=n7i3FO9g1eE_zATkItoCgrGVqq3iMSfdlKSveEZPloc,795
180
180
  zou/app/models/working_file.py,sha256=q0LM3s1ziw_9AmmPDCkwyf1-TJkWTBMgo2LdHyVRwxg,1509
181
181
  zou/app/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
182
- zou/app/services/assets_service.py,sha256=U9sOQNKQWUPO7cKtX6U_lZCC3vdE31oRjpZJ-nx7pL0,23554
182
+ zou/app/services/assets_service.py,sha256=VCfXtl8OzPgLV7sHGDfVifv9unZ4wtY6oYs4ndkcPDY,23620
183
183
  zou/app/services/auth_service.py,sha256=hQpNb21xlr5EiTrXnzpFb4W4GDtglubqA2z_-YIBfnk,22897
184
184
  zou/app/services/backup_service.py,sha256=_ZtZp6wkcVYnHxBosziwLGdrTvsUttXGphiydq53iy8,4840
185
185
  zou/app/services/base_service.py,sha256=OZd0STFh-DyBBdwsmA7DMMnrwv4C8wJUbShvZ1isndU,1383
@@ -411,9 +411,9 @@ zou/remote/normalize_movie.py,sha256=zNfEY3N1UbAHZfddGONTg2Sff3ieLVWd4dfZa1dpnes
411
411
  zou/remote/playlist.py,sha256=AsDo0bgYhDcd6DfNRV6r6Jj3URWwavE2ZN3VkKRPbLU,3293
412
412
  zou/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
413
413
  zou/utils/movie.py,sha256=u9LCEOvmkxwm-KiZ6jKNdB9LSC6XXUDwJpVx8LkDwJg,16416
414
- zou-0.19.53.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
415
- zou-0.19.53.dist-info/METADATA,sha256=mQHTR0rn7ZZhoKkAPGml6Df6-U1fAs0g3NXrmPXDEz4,6704
416
- zou-0.19.53.dist-info/WHEEL,sha256=5Mi1sN9lKoFv_gxcPtisEVrJZihrm_beibeg5R6xb4I,91
417
- zou-0.19.53.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
418
- zou-0.19.53.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
419
- zou-0.19.53.dist-info/RECORD,,
414
+ zou-0.19.54.dist-info/LICENSE,sha256=dql8h4yceoMhuzlcK0TT_i-NgTFNIZsgE47Q4t3dUYI,34520
415
+ zou-0.19.54.dist-info/METADATA,sha256=0sFDQwWARVyRbxzBwpRrBqB5t_9d3elr_a0U7jSM99w,6704
416
+ zou-0.19.54.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
417
+ zou-0.19.54.dist-info/entry_points.txt,sha256=PelQoIx3qhQ_Tmne7wrLY-1m2izuzgpwokoURwSohy4,130
418
+ zou-0.19.54.dist-info/top_level.txt,sha256=4S7G_jk4MzpToeDItHGjPhHx_fRdX52zJZWTD4SL54g,4
419
+ zou-0.19.54.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.0.0)
2
+ Generator: setuptools (75.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
File without changes