Ticket #1578 (new enhancement)

Opened 3 years ago

Last modified 3 years ago

Can't create a CPS instance with CPSSharedCalendar and without CPSSubscription

Reported by: div Assigned to: lregebro
Priority: P3 Milestone: CPS 3.5.0
Component: CPSSharedCalendar Version: 3.4.0
Severity: minor Keywords:
Cc:

Description

Using CPSSharedCalendar 2.4.0 and CPS 3.4.0, one can't create a CPS portal with the CPSSharedCalendar profile selected and without CPSSubscription also selected.

Traceback (most recent call last):
  File "/usr/lib/Zope-2.9.1/lib/python/ZPublisher/Publish.py", line 114, in publish
    request, bind=1)
  File "/usr/lib/Zope-2.9.1/lib/python/ZPublisher/mapply.py", line 88, in mapply
    if debug is not None: return debug(object,args,context)
  File "/usr/lib/Zope-2.9.1/lib/python/ZPublisher/Publish.py", line 40, in call_object
    result=apply(object,args) # Type s<cr> to step into published object.
  File "/home/div/zopes/ebat/Products/CPSDefault/factory.py", line 228, in addConfiguredCPSSite
    REQUEST=REQUEST, **kw)
  File "/home/div/zopes/ebat/Products/CPSDefault/factory.py", line 100, in addConfiguredSite
    self.importProfiles(profile_id, extension_ids)
  File "/home/div/zopes/ebat/Products/CPSDefault/factory.py", line 146, in importProfiles
    setup_tool.runAllImportSteps()
  File "/home/div/zopes/ebat/Products/GenericSetup/tool.py", line 248, in runAllImportSteps
    message = self._doRunImportStep(step, context)
  File "/home/div/zopes/ebat/Products/GenericSetup/tool.py", line 716, in _doRunImportStep
    return handler(context)
  File "/home/div/zopes/ebat/Products/CPSSharedCalendar/exportimport.py", line 215, in importDefaultCalendarSubscriptions
    stool = getToolByName(site, 'portal_subscriptions')
  File "/home/div/zopes/ebat/Products/CMFCore/utils.py", line 82, in getToolByName
    raise AttributeError, name
AttributeError: portal_subscriptions

Change History

03/28/06 02:25:07 changed by janguenot

  • version changed from TRUNK to 3.4.0.
  • severity changed from blocker to enhancement.

This is a GenericSetup? missing feature IMHO. (i.e : can't manage extension profile deps).

I change the priority as "enhancement" as this should be documented within the CPSSharedCalendar install documentation.

05/16/06 12:52:38 changed by sfermigier

  • priority changed from P1 to P3.
  • severity changed from normal to minor.
  • milestone changed from CPS 3.4.1 to CPS 3.5.0.

When is this an issue ? We shoud either document the dependency, and make sure that CPSSharedCalendar can't be installed without CPSSubscription, or remove the dependency if there is a use-case for that.