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