Ignore:
Timestamp:
Jan 20, 2010 4:43:44 PM (14 years ago)
Author:
liebster
Message:

Added reinstall profile and removed using content_types_seoprops_enabled propery in seo_properties

File:
1 edited

Legend:

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

    r1545 r1570  
    22from quintagroup.seoptimizer.config import PROJECT_NAME 
    33 
     4def install(portal, reinstall=False): 
     5    setup_tool = getToolByName(portal, 'portal_setup') 
     6    setup_tool.setBaselineContext('profile-%s:uninstall'%PROJECT_NAME) 
     7    if reinstall: 
     8        setup_tool.setBaselineContext('profile-%s:reinstall'%PROJECT_NAME) 
     9        setup_tool.runAllImportStepsFromProfile('profile-%s:reinstall'%PROJECT_NAME) 
     10        return "Ran reinstall steps." 
     11    else: 
     12        setup_tool.setBaselineContext('profile-%s:uninstall'%PROJECT_NAME) 
     13        setup_tool.runAllImportStepsFromProfile('profile-%s:default'%PROJECT_NAME) 
     14        return "Ran all install steps." 
    415 
    516def uninstall(portal, reinstall=False): 
Note: See TracChangeset for help on using the changeset viewer.