def build_entry(etype, entity, permissions=None, use_nfsv4_acls=False):
 if use_nfsv4_acls:
  return ':'.join([etype, entity, permissions, 'allow'])
 if permissions:
  return ((((etype + ':') + entity) + ':') + permissions)
 else:
  return ((etype + ':') + entity)

def build_entry ( etype , entity , permissions = None , use_nfsv4_acls = False ) : if use_nfsv4_acls : return ':' . join ( [ etype , entity , permissions , 'allow' ] ) if permissions : return ( ( ( ( etype + ':' ) + entity ) + ':' ) + permissions ) else : return ( ( etype + ':' ) + entity )
builds and returns an entry string .