@utilities.arguments_not_none<EOL><INDENT>def get_sequence_rules_for_assessment(self, assessment_id):<DEDENT>
<EOL>def get_all_children_part_ids(part):<EOL><INDENT>child_ids = []<EOL>if part.has_children():<EOL><INDENT>child_ids = list(part.get_child_assessment_part_ids())<EOL>for child in part.get_child_assessment_parts():<EOL><INDENT>child_ids += get_all_children_part_ids(child)<EOL><DEDENT><DEDENT>return child_ids<EOL><DEDENT>all_assessment_part_ids = []<EOL>mgr = self._get_provider_manager('<STR_LIT>', local=True)<EOL>lookup_session = mgr.get_assessment_lookup_session(proxy=self._proxy)<EOL>lookup_session.use_federated_bank_view()<EOL>assessment = lookup_session.get_assessment(assessment_id)<EOL>if assessment.has_children():<EOL><INDENT>mgr = self._get_provider_manager('<STR_LIT>', local=True)<EOL>lookup_session = mgr.get_assessment_part_lookup_session(proxy=self._proxy)<EOL>lookup_session.use_federated_bank_view()<EOL>all_assessment_part_ids = list(assessment.get_child_ids())<EOL>for child_part_id in assessment.get_child_ids():<EOL><INDENT>child_part = lookup_session.get_assessment_part(child_part_id)<EOL>all_assessment_part_ids += get_all_children_part_ids(child_part)<EOL><DEDENT><DEDENT>id_strs = [str(part_id) for part_id in all_assessment_part_ids]<EOL>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>result = collection.find(<EOL>dict({'<STR_LIT>': {'<STR_LIT>': id_strs}},<EOL>**self._view_filter()))<EOL>return objects.SequenceRuleList(result, runtime=self._runtime)<EOL>
Gets a ``SequenceRuleList`` for an entire assessment.

        arg:    assessment_id (osid.id.Id): an assessment ``Id``
        return: (osid.assessment.authoring.SequenceRuleList) - the
                returned ``SequenceRule`` list
        raise:  NullArgument - ``assessment_id`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        *compliance: mandatory -- This method must be implemented.*