checkout
$ git clone git@github.com:guitarwolf/psychopper.git
$ cd psychopper
local commit
$ git commit -m 'comment'
repository commit
$ git push
$ unzip python-openid-2.2.5.zip$ cd python-openid-2.2.5$ sudo python setup.py install
from google.appengine.ext import db
を宣言する。
Python Datastore APIを参照にしながらモデルを作成する。
tagを管理するためのapiを先ず作ろうと考えているので、こんな感じのものを作成。Class Tag(db.Model):name = db.StringProperty(required=True)category = db.CategoryProperty()ctime = DateTimeProperty(auto_now=True)
引数にtag名(name)を渡すと登録(post)、登録した一覧表示(get)の簡易的なapiを作成。
タグ名の一意性やエラー処理等は未実装。