def getShowTracksAsJson(from_show): if from_show in [IntType,LongType]: from_show = ShowBusiness.getShow(from_show) tracks = map(lambda x: {'artist':x['artist'], 'title':x['title'], 'start_mspos':x['start_mspos'] }, ShowBusiness.getShowTracks(from_show)) return json.dumps(tracks)
def get_tracks_for_show(show): return ",".join(ShowBusiness.getShowTracks(show))