示例#1
0
文件: www.py 项目: cerha/pytis
 def last(self):
     return Href(URL(self._uri, pageno=str(self.lastpageno())),
                 self._labellast())
示例#2
0
文件: www.py 项目: cerha/pytis
 def previous(self):
     previousno = max(self._pageno - 1, 1)
     return Href(URL(self._uri, pageno=str(previousno)),
                 self._labelprevious())
示例#3
0
文件: www.py 项目: cerha/pytis
 def next(self):
     nextno = min(self._pageno + 1, self.lastpageno())
     return Href(URL(self._uri, pageno=str(nextno)), self._labelnext())
示例#4
0
文件: www.py 项目: cerha/pytis
 def first(self):
     return Href(URL(self._uri), self._labelfirst())