Changeset 638

Show
Ignore:
Timestamp:
11/17/06 13:30:42
Author:
crchemist
Message:

Fixed skin deletion.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneComments/trunk/Extensions/Install.py

    r637 r638  
    120120    # Remove skin 
    121121    for skinName in skinstool.getSkinSelections(): 
    122         path = skinstool.getSkinPath(skinName) 
    123         path = [i.strip() for i in  path.split(',')] 
    124         if SKIN_NAME in path: 
    125             path.remove(SKIN_NAME) 
    126             path = ','.join(path) 
    127             skinstool.addSkinSelection(skinName, path) 
     122        old_path = skinstool.getSkinPath(skinName) 
     123        old_path = [i.strip() for i in  old_path.split(',')] 
     124        path = [] 
     125        for p in old_path: 
     126            if not p.startswith(SKIN_NAME): 
     127                path.append(p) 
     128        path = ','.join(path) 
     129        skinstool.addSkinSelection(skinName, path) 
     130             
    128131    # Remove configlet 
    129132    controlpanel_tool = getToolByName(self, 'portal_controlpanel')