From e6c486fe2a5ca02e5e5290b2ac697b68714edb58 Mon Sep 17 00:00:00 2001 From: imcovangent <I.vanGent@tudelft.nl> Date: Wed, 9 May 2018 10:54:10 +0200 Subject: [PATCH] Added fix for using glyphicons in VISTOMS except for tree viewer. Former-commit-id: b3615e941a8e8b0f9ff0bbca52a8748ff30b26e7 --- kadmos/graph/mixin_vistoms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kadmos/graph/mixin_vistoms.py b/kadmos/graph/mixin_vistoms.py index eed85d42b..276bd53f6 100644 --- a/kadmos/graph/mixin_vistoms.py +++ b/kadmos/graph/mixin_vistoms.py @@ -45,7 +45,6 @@ LOCAL_FILE_REFS = dict(REP__Acknowledgements__REP=os.path.join(LOCAL_PATH_PICTUR REP__glyphicons_woff2__REP=os.path.join(LOCAL_PATH_PICTURES, "glyphicons-halflings-regular.woff2").replace('\\', '/')) - class VistomsMixin(object): def vistoms_start(self, file_dir=None, mpg=None): @@ -1153,7 +1152,7 @@ def get_vistoms_tree_viewer(xml_file, vistoms_dir, use_png_figs=False, file_refs else: rep = file_refs for key, item in LOCAL_FILE_REFS.iteritems(): - assert key in rep, 'Replacement key %s is missing in the file_refs.' % key + assert key in rep or 'glyphicons' in key, 'Replacement key %s is missing in the file_refs.' % key rep['REP__GRAPH_DATA__REP'] = data_str # Perform the text replacement -- GitLab