Exemplo n.º 1
0
    def trigger_remote_sync(self):
        # Trigger remote synchronization

        # This only gets set on a "start" call from client API.  The
        # remote sync job will only get registered is a "finish" is called
        if self.get_value("state") == "start":
            return

        from tactic.command.run_transaction_cmd import TransactionQueueAppendCmd
        cmd = TransactionQueueAppendCmd()
        input = {'search_type': 'sthpw/transaction_log', 'sobject': self}
        cmd.input = input
        cmd.execute()
Exemplo n.º 2
0
    def trigger_remote_undo(self):
        # Trigger remote synchronization

        if self.get_value("state") == "start":
            return

        from tactic.command.run_transaction_cmd import TransactionQueueAppendCmd
        cmd = TransactionQueueAppendCmd()
        input = {
            'search_type': 'sthpw/transaction_log',
            'sobject': self,
            'mode': 'undo'
        }
        cmd.input = input
        cmd.execute()
Exemplo n.º 3
0
    def trigger_remote_undo(my):
        # Trigger remote synchronization

        if my.get_value("state") == "start":
            return

        from tactic.command.run_transaction_cmd import TransactionQueueAppendCmd
        cmd = TransactionQueueAppendCmd()
        input = {
            'search_type': 'sthpw/transaction_log',
            'sobject': my,
            'mode': 'undo'
        }
        cmd.input = input
        cmd.execute()
Exemplo n.º 4
0
    def trigger_remote_sync(my):
        # Trigger remote synchronization

        # This only gets set on a "start" call from client API.  The
        # remote sync job will only get registered is a "finish" is called
        if my.get_value("state") == "start":
            return

        from tactic.command.run_transaction_cmd import TransactionQueueAppendCmd
        cmd = TransactionQueueAppendCmd()
        input = {
            'search_type': 'sthpw/transaction_log',
            'sobject': my
        }
        cmd.input = input
        cmd.execute()