Skip to content

Commit

Permalink
[MERGE] forward port branch saas-6 up to 3c3ce75
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Oct 27, 2016
2 parents 179f7c0 + 3c3ce75 commit 477e69d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion addons/website/static/src/js/website.ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ var ViewEditor = Widget.extend({
var args = {
key: $(document.documentElement).data('view-xmlid'),
full: true,
bundles: !!$('script[src*=".assets_common"]').length
bundles: this.$('.js_include_bundles')[0].checked
};
return ajax
.jsonRpc('/website/customize_template_get', 'call', args)
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Depends:
node-less,
postgresql-client,
python,
python-babel,
python-dateutil,
python-decorator,
python-docutils,
Expand All @@ -32,7 +33,6 @@ Depends:
python-passlib,
python-psutil,
python-psycopg2,
python-pybabel,
python-pychart,
python-pydot,
python-pyparsing,
Expand Down
20 changes: 14 additions & 6 deletions openerp/tools/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, fname=None):
self.config_file = fname

self._LOGLEVELS = dict([
(getattr(loglevels, 'LOG_%s' % x), getattr(logging, x))
(getattr(loglevels, 'LOG_%s' % x), getattr(logging, x))
for x in ('CRITICAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG', 'NOTSET')
])

Expand All @@ -111,7 +111,7 @@ def __init__(self, fname=None):
group.add_option("--addons-path", dest="addons_path",
help="specify additional addons paths (separated by commas).",
action="callback", callback=self._check_addons_path, nargs=1, type="string")
group.add_option("--load", dest="server_wide_modules", help="Comma-separated list of server-wide modules default=web")
group.add_option("--load", dest="server_wide_modules", help="Comma-separated list of server-wide modules. Default is 'web,web_kanban'")

group.add_option("-D", "--data-dir", dest="data_dir", my_default=_get_default_datadir(),
help="Directory where to store Odoo data")
Expand Down Expand Up @@ -390,6 +390,7 @@ def die(cond, msg):
'test_file', 'test_enable', 'test_commit', 'test_report_directory',
'osv_memory_count_limit', 'osv_memory_age_limit', 'max_cron_threads', 'unaccent',
'data_dir',
'server_wide_modules',
]

posix_keys = [
Expand Down Expand Up @@ -440,14 +441,21 @@ def die(cond, msg):
if len(self.options['language']) > 5:
raise Exception('ERROR: The Lang name must take max 5 chars, Eg: -lfr_BE')

# server_wide_modules defaults to web,web_kanban if empty or unset
server_wide_modules = self.options['server_wide_modules'] = (
self.options['server_wide_modules']
if self.options['server_wide_modules']
else 'web,web_kanban'
)

if opt.save:
self.save()

openerp.conf.addons_paths = self.options['addons_path'].split(',')
if opt.server_wide_modules:
openerp.conf.server_wide_modules = map(lambda m: m.strip(), opt.server_wide_modules.split(','))
else:
openerp.conf.server_wide_modules = ['web','web_kanban']

openerp.conf.server_wide_modules = [
m.strip() for m in server_wide_modules.split(',')
]

def _is_addons_path(self, path):
for f in os.listdir(path):
Expand Down
2 changes: 1 addition & 1 deletion setup/package.dfdebian
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apt-get update -qq && \
postgresql \
postgresql-client \
python \
python-babel \
python-dateutil \
python-decorator \
python-docutils \
Expand All @@ -36,7 +37,6 @@ RUN apt-get update -qq && \
python-passlib \
python-psutil \
python-psycopg2 \
python-pybabel \
python-pychart \
python-pydot \
python-pyparsing \
Expand Down

0 comments on commit 477e69d

Please sign in to comment.