2009-10-01から1ヶ月間の記事一覧

shaモジュールの変わりにhashlibモジュールを使う

Play!を起動する時、 /home/foo/play/play:564: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha と表示されるので564行目を、 import shaを、 from hashlib import sha1 as shaと書き換えてみた。[追記:11/3…

Play! frameworkでProduction時のjpa.ddlは"none"にした方がいいと思う

Play! frameworkのTutorialにある、Preparing for productionにおいて、jpa.ddlは"create"に設定しておくと、「データベースにテーブルが存在しない場合は、作成される」と書いてあります。 We will now tweak the way Hibernate manages the database schem…

Play! FrameworkのTutorialで、Validate失敗時、入力した値を戻す

今週のはじめより、Java(+Python)で作られたPlay frameworkの勉強をはじめました。2004年にRuby on Rails 1.0を知った時と同じ衝撃を感じています。こいつ、できるぞと。また、Java 1.4.2以降はRubyを始めてしまったので、今更かもしれませんがアノテーショ…