$def with(author, size="M") $ author_thumbnail_url = author.get_photo_url(size) $ author_photo_url = author.get_photo_url("L") $if author_thumbnail_url:
$_('Photo of %(author)s', author=author.name)
$else:
$_('We need a photo of %(author)s', author=author.name)