Ticket #1782 (new defect)

Opened 13 years ago

Last modified 10 years ago

Add a way to remove a GenericSetup profile from the portal_setup tool in the ZMI

Reported by: madarche Owned by: fguillaume
Priority: P2 Milestone: CPS 3.5.7
Component: CPS (global) Version: TRUNK
Severity: normal Keywords: genericsetup
Cc:

Description (last modified by madarche) (diff)

Add a way to remove a GenericSetup? profile from the portal_setup tool in the ZMI.

This is needed for example to remove a product one doesn't want or use anymore.

Change History

comment:1 Changed 11 years ago by madarche

  • Description modified (diff)

comment:2 Changed 10 years ago by madarche

Removing a GenericSetup profile is important because it makes it possible to then cleanly remove the product.

For example if one wants to remove the CPSSharedCalendar product after having installing it through GenericSetup, one gets into trouble.

Here is how to reproduce:

  1. In portal_setup import the "CPS Shared Calendar" profile
  2. Then stop the CPS instance and remove the CPSSharedCalendar product.
  3. Then restart the CPS instance
  4. Finally try to import any one available profile, for example "CPS Default Site" and you get this error

Site Error

An error was encountered while publishing this resource.

AttributeError? Sorry, a site error occurred.

Traceback (innermost last):

  • Module ZPublisher.Publish, line 196, in publish_module_standard
  • Module Products.Localizer, line 58, in new_publish
  • Module ZPublisher.Publish, line 146, in publish
  • Module Zope2.App.startup, line 222, in zpublisher_exception_hook
  • Module ZPublisher.Publish, line 115, in publish
  • Module ZPublisher.mapply, line 88, in mapply
  • Module ZPublisher.Publish, line 41, in call_object
  • Module Products.CPSCore.setuptool, line 327, in manage_importProfile
  • Module Products.CPSCore.setuptool, line 260, in importProfile
  • Module Products.GenericSetup?.tool, line 253, in runAllImportSteps traceback_info: profile-CPSDefault:default
  • Module Products.GenericSetup?.tool, line 780, in _runImportStepsFromContext
  • Module Products.GenericSetup?.tool, line 741, in _doRunImportStep traceback_info: calendar-subscriptions
  • Module Products.GenericSetup?.registry, line 146, in getStep
  • Module Products.GenericSetup?.utils, line 103, in _resolveDottedName traceback_info: Products.CPSSharedCalendar.exportimport.importDefaultCalendarSubscriptions

AttributeError?: 'module' object has no attribute 'CPSSharedCalendar' (Also, the following error occurred while attempting to render the standard error message, please see the event log for full details: getHomeCalendarObject)

Note: See TracTickets for help on using tickets.