@utilities.arguments_not_none<EOL><INDENT>def create_asset_content(self, asset_content_form):<DEDENT>
<EOL>from dlkit.abstract_osid.repository.objects import AssetContentForm as ABCAssetContentForm<EOL>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>if not isinstance(asset_content_form, ABCAssetContentForm):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>if asset_content_form.is_for_update():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>if self._forms[asset_content_form.get_id().get_identifier()] == CREATED:<EOL><INDENT>raise errors.IllegalState('<STR_LIT>')<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>raise errors.Unsupported('<STR_LIT>')<EOL><DEDENT>if not asset_content_form.is_valid():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>asset_content_form._my_map['<STR_LIT>'] = ObjectId()<EOL>asset_id = Id(asset_content_form._my_map['<STR_LIT>']).get_identifier()<EOL>asset = collection.find_one(<EOL>{'<STR_LIT>': [{'<STR_LIT>': ObjectId(asset_id)},<EOL>{'<STR_LIT>' + self._catalog_name + '<STR_LIT>': {'<STR_LIT>': [str(self._catalog_id)]}}]})<EOL>asset['<STR_LIT>'].append(asset_content_form._my_map)<EOL>result = collection.save(asset)<EOL>self._forms[asset_content_form.get_id().get_identifier()] = CREATED<EOL>from .objects import AssetContent<EOL>return AssetContent(<EOL>osid_object_map=asset_content_form._my_map,<EOL>runtime=self._runtime,<EOL>proxy=self._proxy)<EOL>
Creates new ``AssetContent`` for a given asset.

        arg:    asset_content_form (osid.repository.AssetContentForm):
                the form for this ``AssetContent``
        return: (osid.repository.AssetContent) - the new
                ``AssetContent``
        raise:  IllegalState - ``asset_content_form`` already used in a
                create transaction
        raise:  InvalidArgument - one or more of the form elements is
                invalid
        raise:  NullArgument - ``asset_content_form`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - ``asset_content_form`` did not originate
                from ``get_asset_content_form_for_create()``
        *compliance: mandatory -- This method must be implemented.*