def prev(self, entrylist, i): if i == len(entrylist) - 1: return None refs.append(entrylist[i], entrylist[i + 1]) return link(entrylist[i+1].title, entrylist[i+1].permalink)
def next(self, entrylist, i): if i == 0: return None refs.append(entrylist[i], entrylist[i - 1]) return link(entrylist[i-1].title, entrylist[i-1].permalink)
def prev(self, entrylist, i): if i == len(entrylist) - 1: return None refs.append(entrylist[i], entrylist[i + 1]) return link(entrylist[i + 1].title, entrylist[i + 1].permalink)
def next(self, entrylist, i): if i == 0: return None refs.append(entrylist[i], entrylist[i - 1]) return link(u"« " + entrylist[i-1].title, entrylist[i-1].permalink.rstrip('/'))
def next(self, entrylist, i): if i == 0: return None refs.append(entrylist[i], entrylist[i - 1]) return link(entrylist[i - 1].title, entrylist[i - 1].permalink)