def songs(self, song=''): """lijst met Kramp songs """ self.subsection = 'KrampSongs' if song: return self.build(make_xspf_opn_page(song)) return self.get_flatpage()
def songs(self, song=''): """Lijst met songs """ self.subsection = 'EyePactSongs' if song: return self.build(make_xspf_opn_page(song)) return self.get_flatpage()
def default(self, album, track=''): """default view voor deze sectie (band pagina's) """ albumdata = { '1': 'B 9A', '2': 'B 9B', '12': 'B11', '3': 'B12', '4': 'B13', '5': 'B14' } self.subsection = album x = ol.MemberList(albumdata[album], "opnameseries") if track: return self.build(make_xspf_opn_page(track)) data = [ '<p align="left">{0}<br />Recorded: {1}</p>'.format( x.titel, x.tekst), '<table align="center" cellspacing="0" border="0" cellpadding=' '"4" width="90%">' ] h = int(len(x.lijst) / 2) if h * 2 < len(x.lijst): h = h + 1 linktekst = '<td width="50%"><a href="/ow/{}/{}/">{}</a></td>' for y in range(h): data.append('<tr>') data.append(linktekst.format(album, x.lijst[y], x.titels[y])) if y + h < len(x.lijst): data.append( linktekst.format(album, x.lijst[y + h], x.titels[y + h])) data.append('</tr>') data.append('</table>') return self.build(data)
def song(self, song): """Pagina met details van een "Best Of" song """ self.subsection = 'BestOf' return self.build(make_xspf_opn_page(song))