def short_action_string ( self ) : output = "{0} " . format ( self . actor ) if self . override_string : output += self . override_string else : output += self . verb return output
using python language how to format action outside of string
Returns string with actor and verb allowing target / object to be filled in manually .
def short_action_string(self):
        """
        Returns string with actor and verb, allowing target/object
        to be filled in manually.

        Example:
        [actor] [verb] or
        "Joe cool posted a comment"
        """
        output = "{0} ".format(self.actor)
        if self.override_string:
            output += self.override_string
        else:
            output += self.verb
        return output