Esempio n. 1
0
 def get(self):
     """
     Retrieve all scene entries. Filters can be specified in the query
     string.
     """
     criterions = query.get_query_criterions_from_request(request)
     user_service.check_project_access(criterions)
     return shots_service.get_scenes(criterions)
Esempio n. 2
0
 def get(self):
     """
     Retrieve all scene entries. Filters can be specified in the query
     string.
     """
     criterions = query.get_query_criterions_from_request(request)
     if not permissions.has_manager_permissions():
         user_service.check_criterions_has_task_related(criterions)
     return shots_service.get_scenes(criterions)
Esempio n. 3
0
 def test_get_scenes(self):
     scenes = shots_service.get_scenes()
     self.assertEquals(len(scenes), 1)
     self.assertEquals(scenes[0]["id"], str(self.scene.id))
Esempio n. 4
0
 def test_import_scene_task(self):
     self.load_scene_task()
     scenes = shots_service.get_scenes({"shotgun_id": 1})
     self.tasks = self.get("data/tasks?entity_id=%s" % scenes[0]["id"])
     self.assertEqual(len(self.tasks), 1)