def set_published(self, published=None):
if published is None:<EOL><INDENT>raise NullArgument()<EOL><DEDENT>metadata = Metadata(**settings.METADATA['<STR_LIT>'])<EOL>if metadata.is_read_only():<EOL><INDENT>raise NoAccess()<EOL><DEDENT>if self._is_valid_input(published, metadata, array=False):<EOL><INDENT>self._my_map['<STR_LIT>'] = published<EOL><DEDENT>else:<EOL><INDENT>raise InvalidArgument()<EOL><DEDENT>
Sets the published status.

        :param published: the published status
        :type published: ``boolean``
        :raise: ``NoAccess`` -- ``Metadata.isReadOnly()`` is ``true``

        *compliance: mandatory -- This method must be implemented.*