def update_sequence_rule(self, sequence_rule_form):
        """Updates an existing sequence rule.

        arg:    sequence_rule_form
                (osid.assessment.authoring.SequenceRuleForm): the form
                containing the elements to be updated
        raise:  IllegalState - ``sequence_rule_form`` already used in an
                update transaction
        raise:  InvalidArgument - the form contains an invalid value
        raise:  NullArgument - ``sequence_rule_form`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - ``sequence_rule_form`` did not originate
                from ``get_sequence_rule_form_for_update()``
        *compliance: mandatory -- This method must be implemented.*

        """
        # Implemented from template for
        # osid.resource.ResourceAdminSession.update_resource_template
        collection = JSONClientValidated('assessment_authoring',
                                         collection='SequenceRule',
                                         runtime=self._runtime)
        if not isinstance(sequence_rule_form, ABCSequenceRuleForm):
            raise errors.InvalidArgument('argument type is not an SequenceRuleForm')
        if not sequence_rule_form.is_for_update():
            raise errors.InvalidArgument('the SequenceRuleForm is for update only, not create')
        try:
            if self._forms[sequence_rule_form.get_id().get_identifier()] == UPDATED:
                raise errors.IllegalState('sequence_rule_form already used in an update transaction')
        except KeyError:
            raise errors.Unsupported('sequence_rule_form did not originate from this session')
        if not sequence_rule_form.is_valid():
            raise errors.InvalidArgument('one or more of the form elements is invalid')
        collection.save(sequence_rule_form._my_map)

        self._forms[sequence_rule_form.get_id().get_identifier()] = UPDATED

        # Note: this is out of spec. The OSIDs don't require an object to be returned:
        return objects.SequenceRule(
            osid_object_map=sequence_rule_form._my_map,
            runtime=self._runtime,
            proxy=self._proxy)
def update_sequence_rule ( self , sequence_rule_form ) : collection = JSONClientValidated ( 'assessment_authoring' , collection = 'SequenceRule' , runtime = self . _runtime ) if not isinstance ( sequence_rule_form , ABCSequenceRuleForm ) : raise errors . InvalidArgument ( 'argument type is not an SequenceRuleForm' ) if not sequence_rule_form . is_for_update ( ) : raise errors . InvalidArgument ( 'the SequenceRuleForm is for update only, not create' ) try : if self . _forms [ sequence_rule_form . get_id ( ) . get_identifier ( ) ] == UPDATED : raise errors . IllegalState ( 'sequence_rule_form already used in an update transaction' ) except KeyError : raise errors . Unsupported ( 'sequence_rule_form did not originate from this session' ) if not sequence_rule_form . is_valid ( ) : raise errors . InvalidArgument ( 'one or more of the form elements is invalid' ) collection . save ( sequence_rule_form . _my_map ) self . _forms [ sequence_rule_form . get_id ( ) . get_identifier ( ) ] = UPDATED return objects . SequenceRule ( osid_object_map = sequence_rule_form . _my_map , runtime = self . _runtime , proxy = self . _proxy )
Updates an existing sequence rule.

        arg:    sequence_rule_form
                (osid.assessment.authoring.SequenceRuleForm): the form
                containing the elements to be updated
        raise:  IllegalState - ``sequence_rule_form`` already used in an
                update transaction
        raise:  InvalidArgument - the form contains an invalid value
        raise:  NullArgument - ``sequence_rule_form`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - ``sequence_rule_form`` did not originate
                from ``get_sequence_rule_form_for_update()``
        *compliance: mandatory -- This method must be implemented.*