gazu 0.10.11__py2.py3-none-any.whl → 0.10.13__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.
gazu/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.10.11"
1
+ __version__ = "0.10.13"
gazu/shot.py CHANGED
@@ -404,7 +404,8 @@ def update_shot_data(shot, data={}, client=default):
404
404
  """
405
405
  shot = normalize_model_parameter(shot)
406
406
  current_shot = get_shot(shot["id"], client=client)
407
- updated_shot = {"id": current_shot["id"], "data": current_shot["data"]}
407
+ current_data = current_shot["data"] if current_shot["data"] is not None else {}
408
+ updated_shot = {"id": current_shot["id"], "data": current_data}
408
409
  updated_shot["data"].update(data)
409
410
  return update_shot(updated_shot, client=client)
410
411
 
gazu/task.py CHANGED
@@ -582,6 +582,40 @@ def remove_task_status(task_status, client=default):
582
582
  )
583
583
 
584
584
 
585
+ def update_task_type(task_type, client=default):
586
+ """
587
+ Update given task type into the API.
588
+
589
+ Args:
590
+ task_type (dict): The task type dict to update.
591
+
592
+ Returns:
593
+ dict: Updated task type.
594
+ """
595
+ return raw.put(
596
+ "data/task-types/%s" % task_type["id"],
597
+ task_type,
598
+ client=client,
599
+ )
600
+
601
+
602
+ def update_task_status(task_status, client=default):
603
+ """
604
+ Update given task status into the API.
605
+
606
+ Args:
607
+ task_status (dict): The task status dict to update.
608
+
609
+ Returns:
610
+ dict: Updated task status.
611
+ """
612
+ return raw.put(
613
+ "data/task-status/%s" % task_status["id"],
614
+ task_status,
615
+ client=client,
616
+ )
617
+
618
+
585
619
  @cache
586
620
  def get_task(task_id, client=default):
587
621
  """
@@ -1166,7 +1200,7 @@ def new_task_status(name, short_name, color, client=default):
1166
1200
 
1167
1201
  def update_task(task, client=default):
1168
1202
  """
1169
- Save given task data into the API. Metadata are fully replaced by the ones
1203
+ Update given task into the API. Metadata are fully replaced by the ones
1170
1204
  set on given task.
1171
1205
 
1172
1206
  Args:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gazu
3
- Version: 0.10.11
3
+ Version: 0.10.13
4
4
  Summary: Gazu is a client for Zou, the API to store the data of your CG production.
5
5
  Home-page: https://gazu.cg-wire.com/
6
6
  Author: CG Wire
@@ -32,7 +32,7 @@ Provides-Extra: dev
32
32
  Requires-Dist: wheel ; extra == 'dev'
33
33
  Provides-Extra: lint
34
34
  Requires-Dist: black ==24.4.2 ; (python_version >= "3.8") and extra == 'lint'
35
- Requires-Dist: pre-commit ==3.7.1 ; (python_version >= "3.9") and extra == 'lint'
35
+ Requires-Dist: pre-commit ==3.8.0 ; (python_version >= "3.9") and extra == 'lint'
36
36
  Provides-Extra: test
37
37
  Requires-Dist: pytest ; extra == 'test'
38
38
  Requires-Dist: pytest-cov ; extra == 'test'
@@ -1,5 +1,5 @@
1
1
  gazu/__init__.py,sha256=gVhtpZsvDiPuqvsEbCrgm6fKw8hluUhqspmlgGNIAvQ,3020
2
- gazu/__version__.py,sha256=M7u29cHvlThjTPUSkxLqaH6Hz32KmXoaVMrUQFdaDB8,24
2
+ gazu/__version__.py,sha256=y79JESzBvOjH_pWmT5Lt7k2s_slwZkMdVXCrdwe-NFY,24
3
3
  gazu/asset.py,sha256=GWwam0yqHna_b9_5g5r0-O2zhMb7KlhfbIC17IOXKkY,14488
4
4
  gazu/cache.py,sha256=MnxrnfYN7wHNTTL7qzkEpYCYzWcolT56fqQ0_RegMbE,5879
5
5
  gazu/casting.py,sha256=5xmGMoU3MFgv1br8_5xyTx-Z7wo9r51wRisiblqcr94,3945
@@ -17,13 +17,13 @@ gazu/person.py,sha256=9w85iUDzXne0JFsmpmXLVuUrgvDceCza14HBGrpJx84,9862
17
17
  gazu/playlist.py,sha256=n7LwOF5ZvHDzP_fng-soYUESfb-S2ATmZJHGBh8cRLo,3739
18
18
  gazu/project.py,sha256=fssI_Bf5UqqRd9bfM68oyfkhjxwWvjdiAcYvvUhI5LY,12649
19
19
  gazu/scene.py,sha256=bYsy7zKdQfDTfeqNAlgaqGMs2Hhxdy40NGt6TX_FBdA,5307
20
- gazu/shot.py,sha256=4fmMj4vWb4VMg92tfRDP5lqjSwip3Yv9lPrKerv_oUM,18850
20
+ gazu/shot.py,sha256=wFTvSmofrZOBS3O5IGR6wzpS5OLTTnpXofL5IT_j-fo,18926
21
21
  gazu/sorting.py,sha256=qSIO0pOHkj0Tl4gm9BJrYrcifWGGGmsW68Pl86zB_bg,266
22
22
  gazu/sync.py,sha256=OMsbQDROTdEwlukazUXPGnlC29QcaaHvsmqv3WsSexo,21582
23
- gazu/task.py,sha256=4aO8Ggk4lagVaNkFIdFE0-HnCcWg6d38BTFuwlqbyRY,35193
23
+ gazu/task.py,sha256=7A3A_Zms4WlFl72Jqi2u8dWcoVY3d81leFWAE8wOdQQ,35883
24
24
  gazu/user.py,sha256=GyJf6mrynHvLllw3Hsiv-6wjaYTHO_PBNkJzyJjJA1A,9556
25
- gazu-0.10.11.dist-info/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
26
- gazu-0.10.11.dist-info/METADATA,sha256=BQV--VEHiV6rO50gZi2ZOA3y_kUHHERy3_Z2aQqvMdc,5182
27
- gazu-0.10.11.dist-info/WHEEL,sha256=pWvVuNuBTVmNV7Lp2jMAgt1NplTICeFdl1SW8U3MWN4,109
28
- gazu-0.10.11.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
29
- gazu-0.10.11.dist-info/RECORD,,
25
+ gazu-0.10.13.dist-info/LICENSE,sha256=2n6rt7r999OuXp8iOqW9we7ORaxWncIbOwN1ILRGR2g,7651
26
+ gazu-0.10.13.dist-info/METADATA,sha256=UKJevIpMML_auKqcK0wevYoZMi9mPHTkjTNwDZjmRi0,5182
27
+ gazu-0.10.13.dist-info/WHEEL,sha256=XRxW4r1PNiVhMpP4bT9oWtu3HyndxpJ84SkubFgzp_Y,109
28
+ gazu-0.10.13.dist-info/top_level.txt,sha256=nv7fRIVpYYyIlk_66hBmMyvWcSC7UU-r-GE8uC1u1Go,5
29
+ gazu-0.10.13.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.3.0)
2
+ Generator: setuptools (72.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any