gazu 0.10.26__tar.gz → 0.10.27__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.26 → gazu-0.10.27}/PKG-INFO +1 -1
- gazu-0.10.27/gazu/__version__.py +1 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/person.py +2 -2
- {gazu-0.10.26 → gazu-0.10.27}/gazu/project.py +1 -1
- {gazu-0.10.26 → gazu-0.10.27}/gazu/task.py +7 -9
- {gazu-0.10.26 → gazu-0.10.27}/gazu.egg-info/PKG-INFO +1 -1
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_person.py +2 -2
- gazu-0.10.26/gazu/__version__.py +0 -1
- {gazu-0.10.26 → gazu-0.10.27}/LICENSE +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/README.rst +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/__init__.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/asset.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/cache.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/casting.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/client.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/concept.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/context.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/edit.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/encoder.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/entity.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/events.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/exception.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/files.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/helpers.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/playlist.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/scene.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/shot.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/sorting.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/sync.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu/user.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu.egg-info/SOURCES.txt +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu.egg-info/dependency_links.txt +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu.egg-info/not-zip-safe +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu.egg-info/requires.txt +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/gazu.egg-info/top_level.txt +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/pyproject.toml +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/setup.cfg +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/setup.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_asset.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_cache.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_casting.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_client.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_concept.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_context.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_edit.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_entity.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_files.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_helpers.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_playlist.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_project.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_scene.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_shot.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_sync.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_task.py +0 -0
- {gazu-0.10.26 → gazu-0.10.27}/tests/test_user.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.10.27"
|
|
@@ -117,8 +117,8 @@ def get_person(id, relations=False, client=default):
|
|
|
117
117
|
dict: Person corresponding to given id.
|
|
118
118
|
"""
|
|
119
119
|
params = {"id": id}
|
|
120
|
-
if
|
|
121
|
-
params["relations"] =
|
|
120
|
+
if relations:
|
|
121
|
+
params["relations"] = True
|
|
122
122
|
|
|
123
123
|
return raw.fetch_first("persons", params=params, client=client)
|
|
124
124
|
|
|
@@ -76,7 +76,7 @@ def get_project_url(project, section="assets", client=default):
|
|
|
76
76
|
project = normalize_model_parameter(project)
|
|
77
77
|
path = "{host}/productions/{project_id}/{section}/"
|
|
78
78
|
return path.format(
|
|
79
|
-
host=raw.get_api_url_from_host(),
|
|
79
|
+
host=raw.get_api_url_from_host(client=client),
|
|
80
80
|
project_id=project["id"],
|
|
81
81
|
section=section,
|
|
82
82
|
)
|
|
@@ -740,7 +740,7 @@ def task_to_review(
|
|
|
740
740
|
def get_time_spent(task, date=None, client=default):
|
|
741
741
|
"""
|
|
742
742
|
Get the time spent by CG artists on a task at a given date if given. A field contains
|
|
743
|
-
the total time spent. Durations are given in
|
|
743
|
+
the total time spent. Durations are given in minutes. Date format is
|
|
744
744
|
YYYY-MM-DD.
|
|
745
745
|
|
|
746
746
|
Args:
|
|
@@ -759,14 +759,13 @@ def get_time_spent(task, date=None, client=default):
|
|
|
759
759
|
|
|
760
760
|
def set_time_spent(task, person, date, duration, client=default):
|
|
761
761
|
"""
|
|
762
|
-
Set the time spent by a CG artist on a given task at a given date.
|
|
763
|
-
must be set in seconds. Date format is YYYY-MM-DD.
|
|
762
|
+
Set the time spent by a CG artist on a given task at a given date.
|
|
764
763
|
|
|
765
764
|
Args:
|
|
766
765
|
task (str / dict): The task dict or the task ID.
|
|
767
766
|
person (str / dict): The person who spent the time on given task.
|
|
768
|
-
date (str): The date for which time spent must be set.
|
|
769
|
-
duration (int): The duration of the time spent on given task.
|
|
767
|
+
date (str): The date ("YYYY-MM-DD") for which time spent must be set.
|
|
768
|
+
duration (int): The duration (in minutes) of the time spent on given task.
|
|
770
769
|
|
|
771
770
|
Returns:
|
|
772
771
|
dict: Created time spent entry.
|
|
@@ -784,14 +783,13 @@ def set_time_spent(task, person, date, duration, client=default):
|
|
|
784
783
|
def add_time_spent(task, person, date, duration, client=default):
|
|
785
784
|
"""
|
|
786
785
|
Add given duration to the already logged duration for given task and person
|
|
787
|
-
at a given date.
|
|
788
|
-
YYYY-MM-DD.
|
|
786
|
+
at a given date.
|
|
789
787
|
|
|
790
788
|
Args:
|
|
791
789
|
task (str / dict): The task dict or the task ID.
|
|
792
790
|
person (str / dict): The person who spent the time on given task.
|
|
793
|
-
date (str): The date for which time spent must be
|
|
794
|
-
duration (int): The duration
|
|
791
|
+
date (str): The date ("YYYY-MM-DD") for which time spent must be set.
|
|
792
|
+
duration (int): The duration (in minutes) of the time spent on given task.
|
|
795
793
|
|
|
796
794
|
Returns:
|
|
797
795
|
dict: Updated time spent entry.
|
|
@@ -244,11 +244,11 @@ class PersonTestCase(unittest.TestCase):
|
|
|
244
244
|
mock_route(
|
|
245
245
|
mock,
|
|
246
246
|
"GET",
|
|
247
|
-
"data/persons?id=%s&relations=
|
|
247
|
+
"data/persons?id=%s&relations=True" % (fakeid("John Doe")),
|
|
248
248
|
text=result,
|
|
249
249
|
)
|
|
250
250
|
self.assertEqual(
|
|
251
|
-
gazu.person.get_person(fakeid("John Doe"), relations=
|
|
251
|
+
gazu.person.get_person(fakeid("John Doe"), relations=True),
|
|
252
252
|
result[0],
|
|
253
253
|
)
|
|
254
254
|
|
gazu-0.10.26/gazu/__version__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.10.26"
|
|
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
|