andmylife / メモ
* DONE <2008-12-31 水> API / UI ベースの app. 設計。
** /api/ => core.app. => API w/ core.views + core/templates/ (json)
** / => standard app. => ajax UI w/ import core.views + standatd/templates/ (html)
** /basic/ => basic.app. => simple UI w/ import core.views + basic/templates/ (html)
* DONE <2008-12-31 水> サブタイプ(books, tastes, ...)と、application との関連付けの可能性を検討する。
** => make no sense. サブタイプのバリエーションは model(project) レベルの話。
* DONE <2008-12-31 水> flatpages の運用を決める。
** templates はどこに配置する? <app.>/templates/ で良いか?
** => それで良い。
* DONE <2008-12-31 水> ディメンジョンがモデルとして独立していることのメリットを検討する。
** action, tag はモデル。where, since, ... はフィールド。という状況を説明できるか?
** => action, tag はその意味のゆらぎを内部構造として持つ。したがってモデルが必要。
** TODO <2009-01-01 木> where もモデル化すべき。
* DONE <2008-12-31 水> サブドメイン -> サブタイプ の関連付けを設計。
** sites は、サブドメイン(books, tastes, ...) の運用を助けるか?
** => 助ける!
* DONE <2008-12-31 水> django.contrib.admin.models.LogEntry でユーザーリクエストの履歴を記録できないか?
** http://djangosearch.com/results/?cx=006238239194895611142%3A8jngx6a3fz8&q=logentry&cof=FORID%3A10#956
** signal? http://djangoproject.jp/doc/ja/1.0/topics/signals.html
** [没] http://www.djangosnippets.org/snippets/1052/
** [ ] http://www.djangosnippets.org/snippets/1234/
*** ただし、xxHistory インスタンス同士を束ねるためのフィールドが必要。
** => できる!
* DONE <2009-01-01 木> SavedSearch.cached_savedsearch は不要。似ているという対称な関係なので、いつでも取得できる。
* DONE <2009-01-01 木> tag はユーザーの全コンテンツを対象にする。
* DONE <2009-01-01 木> sites をユーザーの全コンテンツに追加する。
** http://djangoproject.jp/doc/ja/1.0/ref/contrib/sites.html
** domain = models.ForeignKey(Site)
** objects = models.Manager(); objects_in_domain = CurrentSiteManager('domain')