diff --git a/tryton/rpc.py b/tryton/rpc.py index 6fac5593d6..39038ddbbb 100644 --- a/tryton/rpc.py +++ b/tryton/rpc.py @@ -11,7 +11,7 @@ except ImportError: from functools import partial -from tryton import bus, device_cookies +from tryton import bus, device_cookie from tryton.jsonrpc import ServerProxy, ServerPool, Fault from tryton.fingerprints import Fingerprints from tryton.config import get_config_dir @@ -80,7 +80,7 @@ def login(parameters): database = CONFIG['login.db'] username = CONFIG['login.login'] language = CONFIG['client.lang'] - parameters['device_cookie'] = device_cookies.get() + parameters['device_cookie'] = device_cookie.get() connection = ServerProxy(hostname, port, database) logging.getLogger(__name__).info('common.db.login(%s, %s, %s)' % (username, 'x' * 10, language)) @@ -92,7 +92,7 @@ def login(parameters): CONNECTION.close() CONNECTION = ServerPool( hostname, port, database, session=session, cache=not CONFIG['dev']) - device_cookies.renew() + device_cookie.renew() bus.listen(CONNECTION)