@utilities.arguments_not_none<EOL><INDENT>def get_comment_form_for_create(self, reference_id, comment_record_types):<DEDENT>
<EOL>if not isinstance(reference_id, ABCId):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>for arg in comment_record_types:<EOL><INDENT>if not isinstance(arg, ABCType):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT><DEDENT>if comment_record_types == []:<EOL><INDENT>obj_form = objects.CommentForm(<EOL>book_id=self._catalog_id,<EOL>reference_id=reference_id,<EOL>effective_agent_id=str(self.get_effective_agent_id()),<EOL>catalog_id=self._catalog_id,<EOL>runtime=self._runtime,<EOL>proxy=self._proxy)<EOL><DEDENT>else:<EOL><INDENT>obj_form = objects.CommentForm(<EOL>book_id=self._catalog_id,<EOL>record_types=comment_record_types,<EOL>reference_id=reference_id,<EOL>effective_agent_id=self.get_effective_agent_id(),<EOL>catalog_id=self._catalog_id,<EOL>runtime=self._runtime,<EOL>proxy=self._proxy)<EOL><DEDENT>obj_form._for_update = False<EOL>self._forms[obj_form.get_id().get_identifier()] = not CREATED<EOL>return obj_form<EOL>
Gets the comment form for creating new comments.

        A new form should be requested for each create transaction.

        arg:    reference_id (osid.id.Id): the ``Id`` for the reference
                object
        arg:    comment_record_types (osid.type.Type[]): array of
                comment record types
        return: (osid.commenting.CommentForm) - the comment form
        raise:  NullArgument - ``reference_id or comment_record_types``
                is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - unable to get form for requested record
                types
        *compliance: mandatory -- This method must be implemented.*