Changeset 2733 in products


Ignore:
Timestamp:
Aug 10, 2010 2:43:03 PM (10 years ago)
Author:
mylan
Message:

#222: Fix uninstallation 'old' packages when second run quintagroup.pfg.captcha installation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.pfg.captcha/branches/migration/quintagroup/pfg/captcha/setuphandlers.py

    r2730 r2733  
    2828    (after types tool setup). 
    2929    """ 
     30    global captcha_fields 
     31 
    3032    if context.readDataFile('quintagroup.pfg.captcha_default.txt') is None: 
    3133        return 
    3234 
    33     for cf_id, form in captcha_fields: 
     35    while captcha_fields: 
     36        cf_id, form = captcha_fields.pop() 
    3437        form.manage_delObjects(cf_id) 
    3538        form.invokeFactory("CaptchaField", cf_id) 
Note: See TracChangeset for help on using the changeset viewer.