Send a single action. This is a shortcut for `actions`.
352693
def act(self, action):
    """"""
    if action and action.ListFields():  # Skip no-ops.
      return self.actions(sc_pb.RequestAction(actions=[action]))
209212
def action(action_callback=None, **kwargs):
    

    if action_callback is None:
        return lambda fn: action(fn, **kwargs)
    else:
        return Action(action_callback, **kwargs).decorate_module(action_callback)
1132268
public static void sendAction(ActionType action, MalisisSlot slot, int code)
	{
		if (action == null || current() == null || current().inventoryContainer == null)
			return;

		int inventoryId = slot != null ? slot.getInventoryId() : 0;
		int slotNumber = slot != null ? slot.getSlotIndex() : 0;

		current().inventoryContainer.handleAction(action, inventoryId, slotNumber, code);
		InventoryActionMessage.sendAction(action, inventoryId, slotNumber, code);
	}
1373893
def updateAction( self ):
        
        item = self.uiActionTREE.currentItem()
        if ( item ):
            action = item.action()
        else:
            action = QAction()
            
        self.uiShortcutTXT.setText(action.shortcut().toString())
382298
def append(self, action):
        '''  '''
        if self._receiver is not None:
            self._receiver.append(action)
        if self._receiver is self._undos:
            self._redos.clear()
            self.docallback()
380958
function send() {
		// Check form for errors
		if(!$("#transaction").val()) return alert('Missing parameter !');

		// Send
		nem.com.requests.transaction.announce(endpoint, $("#transaction").val()).then(function(res) {
			// If code >= 2, it's an error
			if (res.code >= 2) {
				alert(res.message);
			} else {
				alert(res.message);
			}
		}, function(err) {
			alert(err);
		})
	}
1089011
function (id, type, action, data) {
		var messageObject = {
			id: id,
			type: type,
			action: action,
			data: data
		};
		sendMessage(messageObject);
	}
360518
def run(self, request):
        
        if request.body.get('action_name'):
            return self._get_response_for_single_action(request.body.get('action_name'))

        return self._get_response_for_all_actions()
602991
public SoapClientRequestActionBuilder send() {
        SoapClientRequestActionBuilder soapClientRequestActionBuilder;
        if (soapClient != null) {
            soapClientRequestActionBuilder = new SoapClientRequestActionBuilder(action, soapClient);
        } else {
            soapClientRequestActionBuilder = new SoapClientRequestActionBuilder(action, soapClientUri);
        }

        soapClientRequestActionBuilder.withApplicationContext(applicationContext);

        return soapClientRequestActionBuilder;
    }
809174
def send_wcf_action(soap_action,body,*args)
			yield(req) if block_given?
			cookies = @cookies.empty? ? "" : @cookies.join(',')
			header = {
				"SOAPAction" => soap_action,
				"Content-Type" => "text/xml; charset=utf-8",
				"Cookie" => cookies
			}
			send_message_to_wcf(@service_address, header, body, *args)
		end
1282803
def send_chat_action(self, peer: Peer, action: botapi.ChatAction, on_success: callable=None):
        
        botapi.send_chat_action(chat_id=peer.id, action=action, on_success=on_success, **self.request_args).run()
9222
def send_single_file(self, sender, receiver, media_id):
        
        return self.send_file(sender, 'single', receiver, media_id)
1144968
def send(self, alf):
    '''  '''
    send_alf = SendThread(self.url, alf, self.connection_timeout, self.retry_count)
    send_alf.start()
862556
def _add_action(self, action):
        
        kwargs = self._get_method_params()

        kwargs['action'] = action

        self._bulk_actions.append(kwargs)
799074
def execute_action(self, action_name, **options):
        
        assert action_name in NG_ACTIONS, 'wrong action - {0}'.format(action_name)

        action = NG_ACTIONS[action_name]
        self.loop.run_sync(lambda: action.execute(**options), timeout=self.timeout)
1023141
def execute(action, *args, &block)
      action_name = action.to_s.gsub(/_with(out)?_callback_.*$/, '')
      result = nil
      run_callbacks(action_name) do
        result = send(action, *args, &block)
      end
      result
    end
431386
public function sendAction()
    {
        $result = \Cms\Model\Mail::send();
        if ($result['success'] > 0) {
            $this->getMessenger()->addMessage('messenger.mail.queue.sent', true);
        }
        if ($result['error'] > 0) {
            $this->getMessenger()->addMessage('messenger.mail.queue.error', false);
        }
        if ($result['success'] + $result['error'] == 0) {
            $this->getMessenger()->addMessage('messenger.mail.queue.empty');
        }
        $this->getResponse()->redirect('cmsAdmin', 'mail', 'index');
    }