(self, group)
return getStateList(group)
Return a list of workflow states classified to a specific group.
Return a list of workflow states classified to a specific group.
Return a list of workflow states classified to a specific group .
def _getPortalGroupedStateList(self, group):
    """
    Return a list of workflow states classified to a specific group.
    """
    def getStateList(group):
      state_set = set()
      for wf in self.portal_workflow.objectValues():
        for state in wf.getStateValueList():
          if group in state.getStateTypeList():
            state_set.add(state.getReference())
      return tuple(state_set)

    getStateList = CachingMethod(getStateList,
                                 id=('_getPortalGroupedStateList', group),
                                 cache_factory='erp5_content_medium')
    return getStateList(group)
def _getPortalGroupedStateList ( self , group ) : def getStateList ( group ) : state_set = set ( ) for wf in self . portal_workflow . objectValues ( ) : for state in wf . getStateValueList ( ) : if group in state . getStateTypeList ( ) : state_set . add ( state . getReference ( ) ) return tuple ( state_set ) getStateList = CachingMethod ( getStateList , id = ( '_getPortalGroupedStateList' , group ) , cache_factory = 'erp5_content_medium' ) return getStateList ( group )