Month of December , 2007
Tagged:  •    •  

今回は "9. Finding and fixing your mistakes" を読みます。

9.1 Erasing local history
9.1.1 The accidental commit

読者に対する社交辞令かもしれませんが、 考えるより先に手が動くせいで、 Bryan O'Sullivan 氏もちょくちょく構成管理を間違えるそうです。

Inside ASCADE は Drupla 5.1 で構築されておりますが、Drupal 4.X 向けにリリースされている timeline moduleを Drupal 5.1 に適応した際のメモ(というか差分)です。

ちなみに、timeline は MIT の SIMILE(Semantic Interoperability of Metadata and Information in unLike Environments) Project の 1プロダクトで、timeline module は それを drupal のコンテンツ表示に利用したモジュールです。

timeline  at SIMILE

timeline module  at drupal.org

Tagged:

Python のメソッドの戻り値は return で指定することができます。

> def method():
.     return True
.
> method()
True
>
明示的な戻り値
Tagged:

Python では、 ファイル冒頭に "encoding: shift_jis" 等の記述を行うことで、 ソースファイルの文字コードを指定することが出来ます。

#!/bin/env python
# encoding: shift_jis

label = '日本語'
Python ソースの文字コード指定