Fix wrong import name introduced in changeset e4bfb7718b16
This commit is contained in:
1 parent
b8e33795d0
commit
c4e25ab925
1 file changed
+3
-3
+3
-3
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user