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