misc: enable studio by default (#40392)
This commit is contained in:
parent
ec3370d6c7
commit
00c012b12c
|
@ -45,7 +45,8 @@ def welco_url(request, pub):
|
|||
|
||||
@pytest.fixture
|
||||
def studio(request, pub):
|
||||
return site_options(request, pub, 'options', 'studio', 'true')
|
||||
# studio enabled is now the default
|
||||
return
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
|
@ -368,14 +368,17 @@ class QommonPublisher(Publisher, object):
|
|||
return
|
||||
|
||||
def has_site_option(self, option):
|
||||
defaults = {
|
||||
'studio': True,
|
||||
}
|
||||
if self.site_options is None:
|
||||
self.load_site_options()
|
||||
try:
|
||||
return (self.site_options.get('options', option) == 'true')
|
||||
except ConfigParser.NoSectionError:
|
||||
return False
|
||||
return defaults.get(option, False)
|
||||
except ConfigParser.NoOptionError:
|
||||
return False
|
||||
return defaults.get(option, False)
|
||||
|
||||
def get_site_option(self, option, section='options'):
|
||||
if self.site_options is None:
|
||||
|
|
Loading…
Reference in New Issue