From 4d44df954dcbffa3e3a2f38162f8a6ea0442305f Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 10 Dec 2024 15:27:12 -0600 Subject: [PATCH] bug fix: icon location rendering --- cms/engine/basic.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cms/engine/basic.py b/cms/engine/basic.py index ff09dcd..c219814 100644 --- a/cms/engine/basic.py +++ b/cms/engine/basic.py @@ -22,6 +22,7 @@ class Initializer : self._config = {'system':{},'layout':{},'plugins':{}} # self._shared = False if not 'shared' in _args else _args['shared'] self._location= _args['location'] if 'location' in _args else None + self._menu = {} # _source = self._config ['system']['source'] if 'source' in self._config['system'] else {} # self._ISCLOUD = 'source' in self._config['system'] and self._config['system']['source']['id'] == 'cloud' @@ -262,6 +263,7 @@ class Initializer : if not self._location : return ; _path = os.sep.join(self._location.split(os.sep)[:-1]) + _layout = self._config['layout'] _oroot = _layout['root'] _orw = _layout['overwrite'] @@ -301,15 +303,14 @@ class Initializer : else: _icon = f'{_context}/api/disk/read?uri={_logo}' - - if disk.exists(uri=_logo,config=self._config): - _icon = _logo + # if disk.exists(uri=_logo,config=self._config): + # _icon = _logo + _logo = _icon if self._location : self._config['layout']['location'] = _path self._config['system']['icon'] = _icon self._config['system']['logo'] = _logo - # self.set('layout.root',os.sep.join([_path,_oroot])) pass class Module (Initializer):