def get(self): oname = self.get_username() template_values = {} #page info page = self.get_argument('page', 1) page = page if page >= 1 else 1 #get the document count param count = self.get_argument('count', 10) count = count if count >= 1 else 10 exchanges = Exchange.get_exchanges(oname) paginator = Paginator(exchanges, page, count, len(exchanges)) template_values['paginator'] = paginator template_values['status'] = '' self.render_template('/site/exchange.html', **template_values)
# -*- coding: utf-8 -*-