<%page args="artist, image, shortbio, fullbio, stylesheet, datasource, album, art_links, alb_links, link_images, similar" /> <%! import re import cgi remove_links = re.compile (']*> ',re.VERBOSE) def cleanup(text): if text is None: return _("No information available") text = remove_links.sub ('', text) text = text.replace('\n', '

') return text %> %if error is None:

${artist | h}

<% shortbio = cleanup(shortbio) %>

${shortbio}

${ _("Similar Artists") }

%for i, entry in enumerate(similar) : <% artist = entry['name'] %> %endfor
${entry['image_url'] | h} ${entry['name']} ${entry['similarity']}% ${ _("similar") }

${datasource}

%else:

${ _("Unable to retrieve artist information:") }

${error | h}

%endif