@utilities.arguments_not_none<EOL><INDENT>def update_catalog(self, catalog_form):<DEDENT>
<EOL>if self._catalog_session is not None:<EOL><INDENT>return self._catalog_session.update_catalog(catalog_form=catalog_form)<EOL><DEDENT>collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>if not isinstance(catalog_form, ABCCatalogForm):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>if not catalog_form.is_for_update():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>if self._forms[catalog_form.get_id().get_identifier()] == UPDATED:<EOL><INDENT>raise errors.IllegalState('<STR_LIT>')<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>raise errors.Unsupported('<STR_LIT>')<EOL><DEDENT>if not catalog_form.is_valid():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>collection.save(catalog_form._my_map)  <EOL>self._forms[catalog_form.get_id().get_identifier()] = UPDATED<EOL>return objects.Catalog(osid_object_map=catalog_form._my_map, runtime=self._runtime, proxy=self._proxy)<EOL>
Updates an existing catalog.

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