Changeset 2408 in products


Ignore:
Timestamp:
May 31, 2010 1:34:47 PM (14 years ago)
Author:
mylan
Message:

#131: Added uninstallation profile. Unregister from local site manager news-sitemap schema extender adapters.

Location:
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps
Files:
4 added
2 edited

Legend:

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

    r2384 r2408  
    55logger = logging.getLogger("quintagroup.plonegooglesitemaps") 
    66PROFILE = "profile-quintagroup.plonegooglesitemaps:default" 
     7UNINSTALL = "profile-quintagroup.plonegooglesitemaps:uninstall" 
    78 
    89def install(self, reinstall=False): 
     
    3839        ps.runAllImportSteps() 
    3940        ps.setImportContext(active_context_id) 
     41 
     42 
     43def uninstall(portal, reinstall=False): 
     44    """ Uninstall this product. 
     45 
     46        This external method is need, because portal_quickinstaller doens't know 
     47        what GenericProfile profile to apply when uninstalling a product. 
     48    """ 
     49    setup_tool = getToolByName(portal, 'portal_setup') 
     50    if reinstall: 
     51        return "Ran all reinstall steps." 
     52    else: 
     53        setup_tool.runAllImportStepsFromProfile(UNINSTALL) 
     54        return "Ran all uninstall steps." 
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/configure.zcml

    r2402 r2408  
    3333 
    3434    <genericsetup:registerProfile 
     35      name="uninstall" 
     36      title="Uninstall Plone Google Sitemaps" 
     37      directory="profiles/uninstall" 
     38      description="" 
     39      provides="Products.GenericSetup.interfaces.EXTENSION" 
     40      /> 
     41 
     42    <genericsetup:registerProfile 
    3543      name="upgrade_1_0_to_1_1" 
    36       title="Plone Google Sitemaps" 
     44      title="Upgrade Plone Google Sitemaps from 1.0 to 1.1" 
    3745      directory="profiles/upgrade_1_0_to_1_1" 
    3846      description="" 
     
    4250    <genericsetup:registerProfile 
    4351      name="upgrade_1_1_to_1_2" 
    44       title="Plone Google Sitemaps" 
     52      title="Upgrade Plone Google Sitemaps from 1.1 to 1.2" 
    4553      directory="profiles/upgrade_1_1_to_1_2" 
    4654      description="" 
Note: See TracChangeset for help on using the changeset viewer.