Skip to content

Commit 155f2c9

Browse files
committed
Merge pull request #178 from acsone/9.0-mig-sbi
Some more 9.0 migration
2 parents cfa4f54 + 09425c5 commit 155f2c9

File tree

9 files changed

+12
-456
lines changed

9 files changed

+12
-456
lines changed

connector/CHANGES.rst

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ Changelog
77
.. *
88
99
10+
9.0.1.0.1 (2016-03-03)
11+
~~~~~~~~~~~~~~~~~~~~~~
12+
13+
* Enabled the JobRunner by default, with a default channels configuration of root:1
14+
* Removed the old workers
15+
* Removed the broken dbfilter support (https://github.com/OCA/connector/issues/58)
16+
* Cleaned the methods that have been deprecated in version 3.x
17+
1018
8.0.3.3.0 (2016-02-29)
1119
~~~~~~~~~~~~~~~~~~~~~~
1220

connector/__openerp__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
##############################################################################
2121

2222
{'name': 'Connector',
23-
'version': '9.0.1.0.0',
23+
'version': '9.0.1.0.1',
2424
'author': 'Camptocamp,Openerp Connector Core Editors,'
2525
'Odoo Community Association (OCA)',
2626
'website': 'http://odoo-connector.com',
@@ -40,6 +40,6 @@
4040
'setting_view.xml',
4141
'res_partner_view.xml',
4242
],
43-
'installable': False,
43+
'installable': True,
4444
'application': True,
4545
}

connector/connector.py

-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import logging
2424
import struct
2525

26-
from contextlib import contextmanager
2726
from openerp import models, fields
2827

2928
from .exception import RetryableJobError

connector/jobrunner/__init__.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
# to configure the runner (channels mostly).
4747

4848

49-
enable = os.environ.get('ODOO_CONNECTOR_CHANNELS')
50-
51-
5249
class ConnectorRunnerThread(Thread):
5350

5451
def __init__(self):
@@ -78,7 +75,7 @@ def stop(self):
7875
def prefork_start(server, *args, **kwargs):
7976
global runner_thread
8077
res = orig_prefork_start(server, *args, **kwargs)
81-
if enable and not config['stop_after_init']:
78+
if not config['stop_after_init']:
8279
_logger.info("starting jobrunner thread (in prefork server)")
8380
runner_thread = ConnectorRunnerThread()
8481
runner_thread.start()
@@ -99,7 +96,7 @@ def prefork_stop(server, graceful=True):
9996
def threaded_start(server, *args, **kwargs):
10097
global runner_thread
10198
res = orig_threaded_start(server, *args, **kwargs)
102-
if enable and not config['stop_after_init']:
99+
if not config['stop_after_init']:
103100
_logger.info("starting jobrunner thread (in threaded server)")
104101
runner_thread = ConnectorRunnerThread()
105102
runner_thread.start()

connector/queue/queue.py

-41
This file was deleted.

0 commit comments

Comments
 (0)