This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from trytond.model import fields | |
from trytond.pool import PoolMeta | |
__all__ = ['Country'] | |
class Country(metaclass=PoolMeta): | |
__name__ = 'country.country' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
import uuid | |
import time | |
import zmq | |
def sender(send_addr, receiver_port): | |
send_socket = ctx.socket(zmq.REQ) | |
address = "tcp://{addr}:{port}".format(addr=send_addr, port=receiver_port) |