Example #1
0
 def get(self, sequence_id):
     """
     Retrieve given sequence.
     """
     sequence = shots_service.get_full_sequence(sequence_id)
     user_service.check_project_access(sequence["project_id"])
     return sequence
Example #2
0
 def get(self, sequence_id):
     """
     Retrieve given sequence.
     """
     sequence = shots_service.get_full_sequence(sequence_id)
     if not permissions.has_manager_permissions():
         user_service.check_has_task_related(sequence["project_id"])
     return sequence
Example #3
0
 def test_get_full_sequence(self):
     sequence = shots_service.get_full_sequence(self.sequence.id)
     self.assertEquals(sequence["id"], str(self.sequence.id))
     self.assertEquals(sequence["episode_name"], str(self.episode.name))