Projet

Général

Profil

0002-hobo_deploy-add-support-for-themes.json-switch-to-di.patch

Frédéric Péters, 18 juin 2019 09:08

Télécharger (1,12 ko)

Voir les différences:

Subject: [PATCH 2/2] hobo_deploy: add support for themes.json switch to
 dictionary (#34095)

 wcs/ctl/check_hobos.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
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
-