setChainForPortalTypes doesn't allow to set 'Default' as workflow chain

Bug #161705 reported by Encolpe Degoute
2
Affects Status Importance Assigned to Milestone
Zope CMF buildout
Fix Released
Medium
Unassigned

Bug Description

Here comes the patch for CMF 1.6:

Index: WorkflowTool.py
===================================================================
--- WorkflowTool.py (révision 74102)
+++ WorkflowTool.py (copie de travail)
@@ -464,7 +464,10 @@
             self._chains_by_type = cbt = PersistentMapping()

         if isinstance(chain, basestring):
- chain = [ wf.strip() for wf in chain.split(',') if wf.strip() ]
+ if chain == '(Default)':
+ chain = None
+ else:
+ chain = [ wf.strip() for wf in chain.split(',') if wf.strip() ]

         ti_ids = [ t.getId() for t in self._listTypeInfo() ]

Revision history for this message
Tres Seaver (tseaver) wrote :

Status: Pending => Resolved

Thanks for the patch. This issue duplicates #475:

 http://www.zope.org/Collectors/CMF/475

which is assigned to Sidnei already, so I am resolving here,
with a note there to look at your patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.