Approve witness(es)
433691
def approvewitness(ctx, witnesses, account):
    
    print_tx(ctx.bitshares.approvewitness(witnesses, account=account))
894940
function isActionsExistsInPermissionActions(allActions, schemaActions) {
    return utils.contains(allActions.sort().join(), schemaActions.sort().join());
}
440636
def approveproposal(ctx, proposal, account):
    
    print_tx(ctx.bitshares.approveproposal(proposal, account=account))
431976
def verify( options={}, &block )
      approval = Git::Approvals::Approval.new( approval_path, options )
      approval.diff( block.call ) do |err|
        ::RSpec::Expectations.fail_with err
      end
    rescue Errno::ENOENT => e
      ::RSpec::Expectations.fail_with e.message
      EOS
    end
56634
def approveproposal(ctx, proposal, account):
    
    pprint(ctx.peerplays.approveproposal(proposal, account=account))
1252269
def acknowledged(self, value):
        
        assert (isinstance(value, bool))
        self._acknowledged = value
        if value:
            self._timeouted = False
            self._rejected = False
            self._cancelled = False
1046850
public boolean isApproved(TPSReportStatus status) {
        return status.match(new TPSReportStatus.MatchBlockWithDefault<Boolean>() {
            @Override
            public Boolean _case(Approved x) {
                return true;
            }

            @Override
            protected Boolean _default(TPSReportStatus x) {
                return false;
            }
        });
    }
447845
public function poll()
    {
        if (! count(config('eyewitness.application_domains'))) {
            $this->eye->logger()->debug('No application domain set for DNS witness');
            return;
        }

        foreach (config('eyewitness.application_domains') as $domain) {
            $record = $this->getDnsRecord($domain);

            if ($record && $this->hasDnsRecordChanged($domain, $record)) {
                if ($this->checkDnsChangeThreshold($domain)) {
                    $this->saveDnsRecord($domain, $record);
                    $this->eye->notifier()->alert(new Change(['domain' => $domain]));
                }
            }
        }
    }
834755
def hearing(self, column=None, value=None, **kwargs):
        
        return self._resolve_call('PCS_EVIDENTIARY_HEARING_EVENT', column,
                                  value, **kwargs)
553248
def approve(user)
      friendship = find_any_friendship_with(user)
      return false if friendship.nil? || invited?(user)
      friendship.update_attribute(:pending, false)
    end
469990
def approve(self, request, *args, **kwargs):
        
        self.object = self.get_object()
        success_url = self.get_success_url()
        self.object.approved = True
        self.object.save()
        messages.success(self.request, self.success_message)
        return HttpResponseRedirect(success_url)
606101
def _compute_am_i_approver(self):
        """"""
        for rec in self:
            rec.am_i_approver = rec.can_user_approve_this_page(self.env.user)
753988
def verify
      create_order
      start_challenge
      wait_verify_status
      check_verify_status
    rescue Acme::Client::Error => e
      retry_on_verify_error(e)
    end
438459
def _verify_one(self, rsock):
        
        poller = mitogen.core.Poller()
        poller.start_receive(rsock.fileno())
        try:
            while True:
                for fd in poller.poll():
                    return
        finally:
            poller.close()
1112026
def check_can_approve(self, request, application, roles):
        
        try:
            authorised_persons = self.get_authorised_persons(application)
            authorised_persons.get(pk=request.user.pk)
            return True
        except Person.DoesNotExist:
            return False
1029977
def can_approve(self, user, **data):
        
        is_external = data.get('service_type', self.service_type) == 'external'
        raise Return(user.is_admin() or is_external)
117948
function approveWallet(wallet, xPubKey, account, arrWalletDefinitionTemplate, arrOtherCosigners, onDone){
	var arrDeviceAddresses = getDeviceAddresses(arrWalletDefinitionTemplate);
	device.addIndirectCorrespondents(arrOtherCosigners, function(){
		addWallet(wallet, xPubKey, account, arrWalletDefinitionTemplate, function(){
			arrDeviceAddresses.forEach(function(device_address){
				if (device_address !== device.getMyDeviceAddress())
					sendMyXPubKey(device_address, wallet, xPubKey);
			});
			if (onDone)
				onDone();
		});
	});
}