gazu 0.10.27__tar.gz → 0.10.29__tar.gz
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-0.10.27 → gazu-0.10.29}/PKG-INFO +1 -1
- gazu-0.10.29/gazu/__version__.py +1 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/person.py +14 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/task.py +21 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu.egg-info/PKG-INFO +1 -1
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_person.py +14 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_task.py +22 -8
- gazu-0.10.27/gazu/__version__.py +0 -1
- {gazu-0.10.27 → gazu-0.10.29}/LICENSE +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/README.rst +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/__init__.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/asset.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/cache.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/casting.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/client.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/concept.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/context.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/edit.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/encoder.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/entity.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/events.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/exception.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/files.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/helpers.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/playlist.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/project.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/scene.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/shot.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/sorting.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/sync.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu/user.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu.egg-info/SOURCES.txt +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu.egg-info/dependency_links.txt +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu.egg-info/not-zip-safe +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu.egg-info/requires.txt +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/gazu.egg-info/top_level.txt +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/pyproject.toml +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/setup.cfg +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/setup.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_asset.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_cache.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_casting.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_client.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_concept.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_context.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_edit.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_entity.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_files.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_helpers.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_playlist.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_project.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_scene.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_shot.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_sync.py +0 -0
- {gazu-0.10.27 → gazu-0.10.29}/tests/test_user.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.10.29"
|
|
@@ -432,3 +432,17 @@ def change_password_for_person(person, password, client=default):
|
|
|
432
432
|
{"password": password, "password_2": password},
|
|
433
433
|
client=client,
|
|
434
434
|
)
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
def invite_person(person, client=default):
|
|
438
|
+
"""
|
|
439
|
+
Sends an email to given person to invite him/her to connect to Kitsu.
|
|
440
|
+
|
|
441
|
+
Args:
|
|
442
|
+
person (dict): The person to invite.
|
|
443
|
+
"""
|
|
444
|
+
person = normalize_model_parameter(person)
|
|
445
|
+
return raw.get(
|
|
446
|
+
"actions/persons/%s/invite" % (person["id"]),
|
|
447
|
+
client=client,
|
|
448
|
+
)
|
|
@@ -471,6 +471,27 @@ def get_task_type_by_name(
|
|
|
471
471
|
return raw.fetch_first("task-types", params, client=client)
|
|
472
472
|
|
|
473
473
|
|
|
474
|
+
@cache
|
|
475
|
+
def get_task_type_by_short_name(
|
|
476
|
+
task_type_short_name, for_entity=None, department=None, client=default
|
|
477
|
+
):
|
|
478
|
+
"""
|
|
479
|
+
Args:
|
|
480
|
+
task_type_short_name (str): Short name of claimed task type.
|
|
481
|
+
for_entity (str): The entity type for which the task type is created.
|
|
482
|
+
department (str): The department for which the task type is created.
|
|
483
|
+
|
|
484
|
+
Returns:
|
|
485
|
+
dict: Task type object for given name.
|
|
486
|
+
"""
|
|
487
|
+
params = {"short_name": task_type_short_name}
|
|
488
|
+
if for_entity is not None:
|
|
489
|
+
params["for_entity"] = for_entity
|
|
490
|
+
if department is not None:
|
|
491
|
+
params["department_id"] = normalize_model_parameter(department)["id"]
|
|
492
|
+
return raw.fetch_first("task-types", params, client=client)
|
|
493
|
+
|
|
494
|
+
|
|
474
495
|
@cache
|
|
475
496
|
def get_task_by_path(project, file_path, entity_type="shot", client=default):
|
|
476
497
|
"""
|
|
@@ -341,3 +341,17 @@ class PersonTestCase(unittest.TestCase):
|
|
|
341
341
|
gazu.person.change_password_for_person(person_id, "password"),
|
|
342
342
|
{"success": True},
|
|
343
343
|
)
|
|
344
|
+
|
|
345
|
+
def test_invite_person(self):
|
|
346
|
+
with requests_mock.mock() as mock:
|
|
347
|
+
person_id = fakeid("person-1")
|
|
348
|
+
mock_route(
|
|
349
|
+
mock,
|
|
350
|
+
"GET",
|
|
351
|
+
"actions/persons/%s/invite" % person_id,
|
|
352
|
+
text={"success": True},
|
|
353
|
+
)
|
|
354
|
+
self.assertEqual(
|
|
355
|
+
gazu.person.invite_person(person_id),
|
|
356
|
+
{"success": True},
|
|
357
|
+
)
|
|
@@ -180,18 +180,32 @@ class TaskTestCase(unittest.TestCase):
|
|
|
180
180
|
|
|
181
181
|
def test_get_task_type_by_name(self):
|
|
182
182
|
with requests_mock.mock() as mock:
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
mock_route(
|
|
184
|
+
mock,
|
|
185
|
+
"GET",
|
|
186
|
+
"data/task-types",
|
|
187
|
+
text=[
|
|
188
|
+
{"name": "FX", "id": "task-type-fx"},
|
|
189
|
+
{"name": "Modeling", "id": "task-type-modeling"},
|
|
190
|
+
],
|
|
191
191
|
)
|
|
192
192
|
task_type = gazu.task.get_task_type_by_name("FX")
|
|
193
193
|
self.assertEqual(task_type["name"], "FX")
|
|
194
194
|
|
|
195
|
+
def test_get_task_type_by_short_name(self):
|
|
196
|
+
with requests_mock.mock() as mock:
|
|
197
|
+
mock_route(
|
|
198
|
+
mock,
|
|
199
|
+
"GET",
|
|
200
|
+
"data/task-types",
|
|
201
|
+
text=[
|
|
202
|
+
{"name": "FX", "id": "task-type-fx"},
|
|
203
|
+
{"name": "Modeling", "id": "task-type-modeling"},
|
|
204
|
+
],
|
|
205
|
+
)
|
|
206
|
+
task_type = gazu.task.get_task_type_by_short_name("FX")
|
|
207
|
+
self.assertEqual(task_type["name"], "FX")
|
|
208
|
+
|
|
195
209
|
def test_get_task_by_path(self):
|
|
196
210
|
with requests_mock.mock() as mock:
|
|
197
211
|
file_path = "/simple/SE01/S01/animation/blocking"
|
gazu-0.10.27/gazu/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.10.27"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|