Beispiel #1
0
  def article_list(self, unused_request):
    query = Article.query()
    articles = []
    for article_model in query.fetch():
      article = Aticle(title=article_model.title,author=article_model.author)
      articles.append(article)

    return ArticleCollection(items=articles)
Beispiel #2
0
    def article_list(self, unused_request):
        query = Article.query()
        articles = []
        for article_model in query.fetch():
            article = Aticle(title=article_model.title,
                             author=article_model.author)
            articles.append(article)

        return ArticleCollection(items=articles)