Ticket #1130 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

portal_types document types exports crashes CPSInstaller.verifyFlexibleTypes

Reported by: bruno@… Owned by: fguillaume
Priority: P3 Milestone: CPS 3.4.0
Component: CPSDocument Version: 3.3.6
Severity: normal Keywords:
Cc:

Description

The portal_types tool's document type definitions (Python dict) uses tuples for the 'cps_workspace_wf' and 'cps_section_wf' (workflow chains) keys, when CPSWorkflow.configuration.manage_addChain() takes strings.

As a result, when trying to install these document type definitions with CPSInstaller.verifyFlexibleTypes, one gets the following traceback:

    *  Module Products.CPSInstaller.CPSInstaller, line 308, in
verifyFlexibleTypes
    * Module Products.CPSInstaller.CPSInstaller, line 332, in
verifyWorkflowAssociations
    * Module Products.CPSInstaller.CPSInstaller, line 219, in
verifyLocalWorkflowChains
    * Module Products.CPSWorkflow.configuration, line 234, in
manage_addChain

AttributeError: 'tuple' object has no attribute 'strip'

Replacing the tuples with string in the document type definition solves the problem, of course.

Change History

comment:1 Changed 14 years ago by fguillaume

  • Status changed from new to assigned
  • Milestone changed from unspecified to CPS 3.4.0

comment:2 Changed 14 years ago by fguillaume

Fixed in [30178].

comment:3 Changed 14 years ago by fguillaume

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.