(self)
return ", ".join(top).replace(", and ", " and ")
Returns a nicely formatted string listing the people who acted in this notifcation set
        Likes are not included in this list (so that like only notifcations can generate a different email subject)
        Returns None if all actions are likes.
Returns a nicely formatted string listing the people who acted in this notifcation set
        Likes are not included in this list (so that like only notifcations can generate a different email subject)
        Returns None if all actions are likes.
Returns a nicely formatted string listing the people who acted in this notifcation set Likes are not included in this list ( so that like only notifcations can generate a different email subject ) Returns None if all actions are likes .
def actors_string(self):
        """
        Returns a nicely formatted string listing the people who acted in this notifcation set
        Likes are not included in this list (so that like only notifcations can generate a different email subject)
        Returns None if all actions are likes.
        """
        actors = [user_profile.user_name(id) for id in self.actors_list()]
        top, more = actors[:3], actors[3:]
        if len(more) == 1:
            top[2] = "2 others"
        elif len(more) > 1:
            top.append("%d others" % len(more))
        if len(top) > 1:
            top[-1] = "and " + top[-1]
        return ", ".join(top).replace(", and ", " and ")
def actors_string ( self ) : actors = [ user_profile . user_name ( id ) for id in self . actors_list ( ) ] top , more = actors [ : 3 ] , actors [ 3 : ] if len ( more ) == 1 : top [ 2 ] = "2 others" elif len ( more ) > 1 : top . append ( "%d others" % len ( more ) ) if len ( top ) > 1 : top [ - 1 ] = "and " + top [ - 1 ] return ", " . join ( top ) . replace ( ", and " , " and " )