code: def get_workflows_for(brain_or_object):
      
      workflow = ploneapi.portal.get_tool("portal_workflow")
      if isinstance(brain_or_object, basestring):
          return workflow.getChainFor(brain_or_object)
      obj = get_object(brain_or_object)
      return workflow.getChainFor(obj)
docs: Get the assigned workflows for the given brain or context.
  
      Note: This function supports also the portal_type as parameter.
  
      :param brain_or_object: A single catalog brain or content object
      :type brain_or_object: ATContentType/DexterityContentType/CatalogBrain
      :returns: Assigned Workflows
      :rtype: tuple