|
@ -41,8 +41,10 @@ def Editor(): |
|
|
|
|
|
|
|
|
def ValidateEditCssForm(editorform, current_distribusi): |
|
|
def ValidateEditCssForm(editorform, current_distribusi): |
|
|
newcssfolder = os.path.join("themes/userthemes", current_distribusi) |
|
|
newcssfolder = os.path.join("themes/userthemes", current_distribusi) |
|
|
|
|
|
if os.path.exists(newcssfolder): |
|
|
shutil.rmtree(newcssfolder) |
|
|
shutil.rmtree(newcssfolder) |
|
|
publicfolder = os.path.join("themes/publicthemes", current_distribusi) |
|
|
publicfolder = os.path.join("themes/publicthemes", current_distribusi) |
|
|
|
|
|
if os.path.exists(publicfolder): |
|
|
shutil.rmtree(publicfolder) |
|
|
shutil.rmtree(publicfolder) |
|
|
if editorform.public.data: |
|
|
if editorform.public.data: |
|
|
MakePublicTheme(editorform, current_distribusi) |
|
|
MakePublicTheme(editorform, current_distribusi) |
|
|