Gray sky, Blue sea.

programing, book, photo

2012-03-10から1日間の記事一覧

gae - 一番簡単なtask queueのサンプル

とりあえずログだけ出力してみる。 import logging from datetime import datetime from google.appengine.api import taskqueue class Test(webapp.RequestHandler): def post(self): logging.info("#### task execute : " + str(datetime.now())) class Ad…

amazon product advertising apiの10ページ制限がきつくて憤死しそうになる。

ItemSearchは2011年の10月中頃から10件×10ページ=100件までしか取得できなくなった。 変更前は400ページ(計4000件)まで取得できたことを考えるとあまりに無慈悲。代わりに検索の条件が複雑にできるからそれで対応してね!とかだったら納得できるけど、そん…

gae - ndb.StructurdPropertyでJava Beanチックなエンティティ作成

データストアの非同期処理用に追加された(?)ndb.Modelはメンバに構造体っぽいのを保存できる。 (main.py) from google.appengine.ext import ndb class Bean(ndb.Model): id = ndb.IntegerProperty() dt = ndb.DateProperty(auto_now=True) class Hoge(ndb.…