Ejemplo n.º 1
0
 def get(self):
     """
     Retrieve all entities that are not shot or sequence.
     Adds project name and asset type name and all related tasks.
     """
     criterions = query.get_query_criterions_from_request(request)
     page = query.get_page_from_request(request)
     user_service.check_project_access(criterions.get("project_id", None))
     return assets_service.get_assets_and_tasks(criterions, page)
Ejemplo n.º 2
0
 def get(self):
     """
     Retrieve all entities that are not shot or sequence.
     Adds project name and asset type name and all related tasks.
     """
     criterions = query.get_query_criterions_from_request(request)
     page = query.get_page_from_request(request)
     if not permissions.has_manager_permissions():
         user_service.check_criterions_has_task_related(criterions)
     return assets_service.all_assets_and_tasks(criterions, page)
Ejemplo n.º 3
0
 def get(self):
     """
     Retrieve all entities that are not shot or sequence.
     Adds project name and asset type name and all related tasks.
     If episode_id is given as parameter, it returns assets not linked
     to an episode and assets linked to given episode.
     """
     criterions = query.get_query_criterions_from_request(request)
     page = query.get_page_from_request(request)
     user_service.check_project_access(criterions.get("project_id", None))
     return assets_service.get_assets_and_tasks(criterions, page)
Ejemplo n.º 4
0
 def get(self):
     """
     Retrieve all entities that are not shot or sequence.
     Adds project name and asset type name and all related tasks.
     If episode_id is given as parameter, it returns assets not linked
     to an episode and assets linked to given episode.
     """
     criterions = query.get_query_criterions_from_request(request)
     page = query.get_page_from_request(request)
     check_criterion_access(criterions)
     if permissions.has_vendor_permissions():
         criterions["assigned_to"] = persons_service.get_current_user(
         )["id"]
     return assets_service.get_assets_and_tasks(criterions, page)