Ignore:
Timestamp:
Apr 20, 2011 2:11:46 PM (13 years ago)
Author:
vmaksymiv
Message:

pep8 fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/Extensions/Install.py

    r2041 r3162  
    22from Products.CMFCore.utils import getToolByName 
    33REQUIRED = 'quintagroup.captcha.core' 
     4 
    45 
    56def install(self): 
     
    1314    # install plonecaptchas 
    1415    gs = getToolByName(self, 'portal_setup') 
    15     gs.runAllImportStepsFromProfile('profile-quintagroup.plonecaptchas:default') 
     16    profile = 'profile-quintagroup.plonecaptchas:default' 
     17    gs.runAllImportStepsFromProfile(profile) 
    1618    transaction.savepoint() 
     19 
    1720 
    1821def uninstall(self): 
    1922    portal_setup = getToolByName(self, 'portal_setup') 
    20     portal_setup.runAllImportStepsFromProfile('profile-quintagroup.plonecaptchas:uninstall', purge_old=False) 
     23    profile = 'profile-quintagroup.plonecaptchas:uninstall' 
     24    portal_setup.runAllImportStepsFromProfile(profile, purge_old=False) 
    2125    transaction.savepoint() 
Note: See TracChangeset for help on using the changeset viewer.