|
@ -27,15 +27,18 @@ import time |
|
|
import curses.ascii |
|
|
import curses.ascii |
|
|
from threading import Thread, Lock |
|
|
from threading import Thread, Lock |
|
|
from Queue import Queue |
|
|
from Queue import Queue |
|
|
from serial import Serial |
|
|
|
|
|
import pycountry |
|
|
|
|
|
import openerp.addons.hw_proxy.controllers.main as hw_proxy |
|
|
import openerp.addons.hw_proxy.controllers.main as hw_proxy |
|
|
from openerp import http |
|
|
from openerp import http |
|
|
from openerp.tools.config import config |
|
|
from openerp.tools.config import config |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
logger = logging.getLogger(__name__) |
|
|
logger = logging.getLogger(__name__) |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
|
|
import pycountry |
|
|
|
|
|
from serial import Serial |
|
|
|
|
|
except (ImportError, IOError) as err: |
|
|
|
|
|
logger.debug(err) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class TeliumPaymentTerminalDriver(Thread): |
|
|
class TeliumPaymentTerminalDriver(Thread): |
|
|
def __init__(self): |
|
|
def __init__(self): |
|
|