From 19d51e776936d3f6c23b3751d054734b6cb64c98 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Thu, 10 Apr 2025 13:48:29 -0500 Subject: [PATCH 1/2] bug fix: aliasing routes --- cms/engine/basic.py | 2 ++ meta/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/engine/basic.py b/cms/engine/basic.py index 1338a41..d7201e8 100644 --- a/cms/engine/basic.py +++ b/cms/engine/basic.py @@ -235,6 +235,8 @@ class Initializer : uri = f'{_context}/{_text}' # _items.append ({"text":_text,'uri':uri,'type':'open'}) _label = _item['menu'] + if _text in _overwrite : + _text = _overwrite[_text]['text'] if _label not in _menu : _menu [_label] = [] _menu[_label].append ({"text":_text,'uri':uri,'type':'open'}) diff --git a/meta/__init__.py b/meta/__init__.py index ac22186..6bd8a4d 100644 --- a/meta/__init__.py +++ b/meta/__init__.py @@ -1,5 +1,5 @@ __author__ = "Steve L. Nyemba" -__version__= "2.2.16" +__version__= "2.2.18" __email__ = "steve@the-phi.com" __license__=""" Copyright 2010 - 2024, Steve L. Nyemba, Vanderbilt University Medical Center From ec3b8680df54d0cafdd8bd11a47ad9cc514d0021 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Fri, 11 Apr 2025 17:31:03 -0500 Subject: [PATCH 2/2] bug fix: creating project ... download themes --- cms/engine/project/__init__.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/cms/engine/project/__init__.py b/cms/engine/project/__init__.py index efb49a3..47c9a21 100644 --- a/cms/engine/project/__init__.py +++ b/cms/engine/project/__init__.py @@ -147,16 +147,18 @@ def _index (_path,root): f.write(_html) f.close() def _itheme(_path,_root,_name='default'): - _data = themes.Get(_name)[_name] - _themefolder = os.sep.join([_path,_root,'_assets','themes',_name]) - if not os.path.exists(_themefolder) : - os.makedirs(_themefolder) + _path = os.sep.join([_path,_root]) + themes.Get(_name, _path) + # _data = themes.Get(_name, _path)[_name] + # _themefolder = os.sep.join([_path,_root,'_assets','themes',_name]) + # if not os.path.exists(_themefolder) : + # os.makedirs(_themefolder) - for _name in _data : - f = open(os.sep.join([_themefolder,_name+'.css']),'w') - f.write(_data[_name]) - f.close() - pass + # for _name in _data : + # f = open(os.sep.join([_themefolder,_name+'.css']),'w') + # f.write(_data[_name]) + # f.close() + # pass def make (**_args) : """ This function create a project folder and within the folder are all the elements needed