def get_activities_for_objectives(self, objective_ids=None):
if objective_ids is None:<EOL><INDENT>raise NullArgument()<EOL><DEDENT>activities = []<EOL>for i in objective_ids:<EOL><INDENT>acts = None<EOL>url_path = construct_url('<STR_LIT>',<EOL>bank_id=self._catalog_idstr,<EOL>obj_id=i)<EOL>try:<EOL><INDENT>acts = json.loads(self._get_request(url_path))<EOL><DEDENT>except (NotFound, OperationFailed):<EOL><INDENT>if self._activity_view == PLENARY:<EOL><INDENT>raise<EOL><DEDENT>else:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>if acts:<EOL><INDENT>activities += acts<EOL><DEDENT><DEDENT>return objects.ActivityList(activities)<EOL>
Gets the activities for the given objectives.
        In plenary mode, the returned list contains all of the
        activities specified in the objective Id list, in the order of
        the list, including duplicates, or an error results if a course
        offering Id in the supplied list is not found or inaccessible.
        Otherwise, inaccessible Activities may be omitted from the list
        and may present the elements in any order including returning a
        unique set.
        arg:    objectiveIds (osid.id.IdList): list of objective Ids
        return: (osid.learning.ActivityList) - list of activities
        raise:  NotFound - an objectiveId not found
        raise:  NullArgument - objectiveIdList is null
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        compliance: mandatory - This method is must be implemented.