Skip to content
Snippets Groups Projects
Commit e6c486fe authored by imcovangent's avatar imcovangent
Browse files

Added fix for using glyphicons in VISTOMS except for tree viewer.

Former-commit-id: b3615e941a8e8b0f9ff0bbca52a8748ff30b26e7
parent 1ea7e30f
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,6 @@ LOCAL_FILE_REFS = dict(REP__Acknowledgements__REP=os.path.join(LOCAL_PATH_PICTUR ...@@ -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('\\', '/')) REP__glyphicons_woff2__REP=os.path.join(LOCAL_PATH_PICTURES, "glyphicons-halflings-regular.woff2").replace('\\', '/'))
class VistomsMixin(object): class VistomsMixin(object):
def vistoms_start(self, file_dir=None, mpg=None): 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 ...@@ -1153,7 +1152,7 @@ def get_vistoms_tree_viewer(xml_file, vistoms_dir, use_png_figs=False, file_refs
else: else:
rep = file_refs rep = file_refs
for key, item in LOCAL_FILE_REFS.iteritems(): 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 rep['REP__GRAPH_DATA__REP'] = data_str
# Perform the text replacement # Perform the text replacement
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment