code: def getAllowedTransitions(instance):
      
      wftool = getToolByName(instance, "portal_workflow")
      transitions = wftool.getTransitionsFor(instance)
      return [trans['id'] for trans in transitions]
docs: Returns a list with the transition ids that can be performed against
      the instance passed in.
      :param instance: A content object
      :type instance: ATContentType
      :returns: A list of transition/action ids
      :rtype: list