Pass through to provider CompositionAdminSession.update_composition
325799
def save_composition(self, composition_form, *args, **kwargs):
        """"""
        # Implemented from kitosid template for -
        # osid.resource.ResourceAdminSession.update_resource
        if composition_form.is_for_update():
            return self.update_composition(composition_form, *args, **kwargs)
        else:
            return self.create_composition(composition_form, *args, **kwargs)
1174957
def clear_composition(self):
        
        # Implemented from template for osid.resource.ResourceForm.clear_avatar_template
        if (self.get_composition_metadata().is_read_only() or
                self.get_composition_metadata().is_required()):
            raise errors.NoAccess()
        self._my_map['compositionId'] = self._composition_default
1134094
def update(cls, **kwargs):
        '''
        
        '''
        q = cls._get_instance(**{'id': kwargs['id']})
        if q:
            for k, v in kwargs.items():
                setattr(q, k, v)
            _action_and_commit(q, session.add)
        else:
            cls.get_or_create(**kwargs)
731799
def _update(self, **kwargs):
        """"""
        path = self._construct_path_to_item()
        if not kwargs:
            return
        return self._http.put(path, json.dumps(kwargs))
1229224
private void doUpdateScope() throws PageException {

	admin.updateScopeCascadingType(getString("admin", action, "scopeCascadingType"));
	admin.updateAllowImplicidQueryCall(getBoolObject("admin", action, "allowImplicidQueryCall"));
	admin.updateMergeFormAndUrl(getBoolObject("admin", action, "mergeFormAndUrl"));
	admin.updateSessionManagement(getBoolObject("admin", action, "sessionManagement"));
	admin.updateClientManagement(getBoolObject("admin", action, "clientManagement"));
	admin.updateDomaincookies(getBoolObject("admin", action, "domainCookies"));
	admin.updateClientCookies(getBoolObject("admin", action, "clientCookies"));
	// admin.updateRequestTimeout(getTimespan("admin",action,"requestTimeout"));
	admin.updateClientTimeout(getTimespan("admin", action, "clientTimeout"));
	admin.updateSessionTimeout(getTimespan("admin", action, "sessionTimeout"));
	admin.updateClientStorage(getString("admin", action, "clientStorage"));
	admin.updateSessionStorage(getString("admin", action, "sessionStorage"));
	admin.updateApplicationTimeout(getTimespan("admin", action, "applicationTimeout"));
	admin.updateSessionType(getString("admin", action, "sessionType"));
	admin.updateLocalMode(getString("admin", action, "localMode"));
	admin.updateCGIReadonly(getBoolObject("admin", action, "cgiReadonly"));
	store();
	adminSync.broadcast(attributes, config);
    }
1027216
def update(self, auth, resource, desc={}, defer=False):
        
        return self._call('update', auth, [resource, desc], defer)
1363911
def update_templatetype(templatetype,**kwargs):
    

    tmpltype_i = db.DBSession.query(TemplateType).filter(TemplateType.id == templatetype.id).one()

    _update_templatetype(templatetype, tmpltype_i)

    db.DBSession.flush()

    return tmpltype_i
530285
def update_content_item(access_token, content_item_id, payload):
	'''
	
	'''

	headers = {'Authorization': 'Bearer ' + str(access_token)}
	content_item_url =\
		construct_content_item_url(enrichment_url, content_item_id)

	payload = create_random_payload(payload)
	request = requests.put(content_item_url, json=payload, headers=headers)

	if request.status_code == 200:

		content_item = request.json()
		return content_item

	return {'status': request.status_code, "message": request.text}
1107143
def update(self, **kwargs):
        
        ret_val = super(ManagerUtilsQuerySet, self).update(**kwargs)
        post_bulk_operation.send(sender=self.model, model=self.model)
        return ret_val
676988
def get_compositions_by_search(self, composition_query, composition_search):
        """"""
        # Implemented from azosid template for -
        # osid.resource.ResourceSearchSession.get_resources_by_search_template
        if not self._can('search'):
            raise PermissionDenied()
        return self._provider_session.get_compositions_by_search(composition_query, composition_search)
469501
def update_resource(uri, r, content_type)
      clear
      uri = URI.parse(uri)
      @req = Net::HTTP::Put.new uri.request_uri
      @req['Content-Type'] = content_type
      cache = @cache.get(uri.to_s)
      unless cache.nil?
        @req['If-Not-Modified-Since'] = cache.last_modofied unless cache.last_modified.nil?
        @req['If-Match'] = cache.etag unless cache.etag.nil?
      end
      set_common_info(@req)
      @req.body = r
      @http_class.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
        @res = http.request(@req)
        case @res
          when Net::HTTPSuccess
            #warn "Bad Status Code: #{@res.code}" unless @res.class == Net::HTTPOK || @res.class == Net::HTTPNoContent
            unless @res.body.nil?
              @rc = Atom::MediaType::ENTRY.is_a?(@res['Content-Type']) ? Atom::Entry.new(:stream => @res.body) : @res.body
              @cache.put uri.to_s, {
                :rc            => @rc,
                :etag          => @res['ETag'],
                :last_modified => @res['Last-Modified'] }
            end
          else
            raise RequestError, "Failed to update resource. #{@res.code}"
        end
      end
    end
649936
private void doUpdateComponent() throws PageException {

	admin.updateComponentDeepSearch(getBoolObject("admin", action, "deepSearch"));
	admin.updateBaseComponent(getString("admin", action, "baseComponentTemplateCFML"), getString("admin", action, "baseComponentTemplateLucee"));
	admin.updateComponentDumpTemplate(getString("admin", action, "componentDumpTemplate"));
	admin.updateComponentDataMemberDefaultAccess(getString("admin", action, "componentDataMemberDefaultAccess"));
	admin.updateTriggerDataMember(getBoolObject("admin", action, "triggerDataMember"));
	admin.updateComponentUseShadow(getBoolObject("admin", action, "useShadow"));
	admin.updateComponentDefaultImport(getString("admin", action, "componentDefaultImport"));
	admin.updateComponentLocalSearch(getBoolObject("admin", action, "componentLocalSearch"));
	admin.updateComponentPathCache(getBoolObject("admin", action, "componentPathCache"));
	store();
	adminSync.broadcast(attributes, config);
    }
1122617
def update_cb(self, context, t, idx, userdata):
        """"""

        if t & PA_SUBSCRIPTION_EVENT_FACILITY_MASK == PA_SUBSCRIPTION_EVENT_SERVER:
            pa_operation_unref(
                pa_context_get_server_info(context, self._server_info_cb, None))

        self.request_update(context)
898765
@Override
	public void updateContext() {

		if( this.changeStateInstruction == ChangeStateInstruction.DELETE ) {

			// Find the path of the instances to remove
			Set<String> pathOfInstancesToRemove = new HashSet<> ();
			if( this.instancePath != null ) {
				pathOfInstancesToRemove.add( this.instancePath );

			} else for( Map.Entry<String,String> entry : this.context.instancePathToComponentName.entrySet()) {
				if( this.componentName.equals( entry.getValue()))
					pathOfInstancesToRemove.add( entry.getKey());
			}

			// Now, delete the instances that need to eb erased
			List<String> keys = new ArrayList<>( this.context.instancePathToComponentName.keySet());
			for( String path : keys ) {
				for( String pathToRemove : pathOfInstancesToRemove ) {

					if( path.equals( pathToRemove )
							|| path.startsWith( pathToRemove + "/" ))
						this.context.instancePathToComponentName.remove( path );
				}
			}
		}
	}
1123162
CompletableFuture<Void> update(PartitionMetadata metadata, PartitionManagementService managementService) {
    if (server == null && metadata.members().contains(managementService.getMembershipService().getLocalMember().id())) {
      server = createServer(managementService);
      return server.join(metadata.members());
    } else if (server != null && !metadata.members().contains(managementService.getMembershipService().getLocalMember().id())) {
      return server.leave().thenRun(() -> server = null);
    }
    return CompletableFuture.completedFuture(null);
  }
510190
def update(self, **kwargs):
        
        if 'useProxyServer' in kwargs and kwargs['useProxyServer'] == 'enabled':
            if 'proxyServerPool' not in kwargs:
                error = 'Missing proxyServerPool parameter value.'
                raise MissingUpdateParameter(error)
        if hasattr(self, 'useProxyServer'):
            if getattr(self, 'useProxyServer') == 'enabled' and 'proxyServerPool' not in self.__dict__:
                error = 'Missing proxyServerPool parameter value.'
                raise MissingUpdateParameter(error)

        self._update(**kwargs)

        return self
139682
public void updateFixture(final Consumer<FixtureResult> update) {
        final Optional<String> root = threadContext.getRoot();
        if (!root.isPresent()) {
            LOGGER.error("Could not update test fixture: no test fixture running");
            return;
        }
        final String uuid = root.get();
        updateFixture(uuid, update);
    }