Exemplo n.º 1
0
    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
Exemplo n.º 2
0
 def menus(self):
     return [NewMenu(default=self.sort)]