Changeset 655

Show
Ignore:
Timestamp:
11/23/06 12:44:02
Author:
crchemist
Message:

Modified deletion of skins on uninstalation.

Files:

Legend:

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

    r654 r655  
    8686        path = skinstool.getSkinPath(skinName) 
    8787        path = [i.strip() for i in  path.split(',')] 
    88         for skin in ALL_LAYERS: 
    89             for l in path: 
    90                 if (l == skin) or (l.startswith(skin+'/')): 
    91                     path.remove(l) 
    92  
    93         skinstool.addSkinSelection(skinName, ','.join(path)) 
     88        pth  = [x for x in path 
     89                    if not ((x in ALL_LAYERS) or filter(lambda y:x.startswith(y), ALL_LAYERS)) 
     90               ] 
     91        skinstool.addSkinSelection(skinName, ','.join(pth)) 
    9492 
    9593def generateKey(length): 
  • qPloneCaptchas/trunk/config.py

    r654 r655  
    1919    havePIL = False 
    2020 
    21 static_captchas = Tru
     21static_captchas = Fals