From ec3b8680df54d0cafdd8bd11a47ad9cc514d0021 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Fri, 11 Apr 2025 17:31:03 -0500 Subject: [PATCH] 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