def query(self): sort = NewMenu.operator(self.sort) if not sort: # rising names = get_rising(c.site) return names else: q = Link._query(sort = sort, read_cache = True, *c.site.query_rules() ) self.collect_stats = True return q
def menus(self): return [NewMenu(default=self.sort)]