Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/b/u/Buckley-HEAD/buckley/models.py   Buckley(Download)
  def get_pages(self, num=100, cached=True):
    return self.fetch_cached("select * from Post where post_type='page'", num, cached)
 
  @classmethod
  def get_posts(self, num=10, cached=True):
    return self.fetch_cached("select * from Post where post_type='post' order by pubdate DESC", num, cached)
 
  @classmethod
  def get_statuses(self, num=25, cached=True):
    return self.fetch_cached("select * from Post where post_type='status' order by pubdate DESC", num, cached)
  def get_pages_published(self, num=100, cached=True):
    return self.fetch_cached("select * from Post where post_type='page' and status='published'", num, cached)
 
  @classmethod
  def get_pages_menu(self, num=100, cached=True):
    return self.fetch_cached("selct * from Post where post_type='page' and status='published' and menu=True")