dispatch/modules/content/mixins.py
def get_author_string(self, links=False):
        saved_args = locals()
        saved_args = saved_args['links']
        """Returns list of authors as a comma-separated
        string (with 'and' before last author)."""

        def format_author(author):
            if links and author.person.slug:
                return '<a href="/authors/%s/">%s</a>' % (author.person.slug, author.person.full_name)
            return author.person.full_name

        if links == True or links == False:
            authors = map(format_author, self.authors.all())
        else:
            authors = map(format_author, saved_args)

        if not authors:
            return ""
        elif len(authors) == 1:
            # If this is the only author, just return author name
            return authors[0]

        return ", ".join(authors[0:-1]) + " and " + authors[-1]
def get_author_string(self, links=False):
        saved_args = locals()
        saved_args = saved_args['links']
        """Returns list of authors as a comma-separated
        string (with 'and' before last author)."""

        def format_author(author):
            if links and author.person.slug:
                return '<a href="/authors/%s/">%s</a>' % (author.person.slug, author.person.full_name)
            return author.person.full_name

        if links == True or links == False:
            authors = map(format_author, self.authors.all())
        else:
            authors = map(format_author, saved_args)

        if not authors:
            return ""
        elif len(authors) == 1:
            # If this is the only author, just return author name
            return authors[0]

        return ", ".join(authors[0:-1]) + " and " + authors[-1]
Returns list of authors as a comma-separated
        string (with 'and' before last author).