code: def permission_to_04_acls(permissions):
      
      acls = []
      for perm in permissions:
          if perm.type == "user":
              acls.append((perm.user.id, perm.perm_name))
          elif perm.type == "group":
              acls.append(("group:%s" % perm.group.id, perm.perm_name))
      return acls
docs: Legacy acl format kept for bw. compatibility
      :param permissions:
      :return: