0002-hobo_deploy-add-support-for-themes.json-switch-to-di.patch
wcs/ctl/check_hobos.py | ||
---|---|---|
170 | 170 |
os.path.join(self.THEMES_DIRECTORY, theme_module, 'themes.json'))) |
171 | 171 |
except IOError: |
172 | 172 |
continue |
173 |
for theme_data in themes_json: |
|
173 |
if not isinstance(themes_json, dict): # compat |
|
174 |
themes_json = {'themes': themes_json} |
|
175 |
for theme_data in themes_json.get('themes'): |
|
174 | 176 |
if theme_data.get('id') == theme_id: |
175 | 177 |
if not 'module' in theme_data: |
176 | 178 |
theme_data['module'] = theme_module |
177 |
- |