<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>Tatsuya Blog &#187; Python</title>
	<atom:link href="http://fukata.org/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://fukata.org</link>
	<description>ニートになりたいプログラマ</description>
	<lastBuildDate>Thu, 02 Sep 2010 04:47:15 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fukata.org/tag/python/feed/" />
		<item>
		<title>[GAE/P]国際化に対応してみました　〜その３〜</title>
		<link>http://fukata.org/2009/11/05/gae-p-internationalization-3/</link>
		<comments>http://fukata.org/2009/11/05/gae-p-internationalization-3/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 15:34:51 +0000</pubDate>
		<dc:creator>深田 達也(Tatsuya Fukata)</dc:creator>
				<category><![CDATA[PG]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[GAE/P]]></category>

		<guid isPermaLink="false">http://fukata.org/?p=1834</guid>
		<description><![CDATA[<img src="http://fukata.org/share_img/cat_icon/python-32.png" width="32" height="32" alt="" title="Python" /><br/>前回に引き続き国際化についてです。
前の記事で書いていた「Environment variable DJANGO_SETTINGS_MODULE is undefined.」のエラーについてですが、あの記事を書いた後も何 [...]]]></description>
		<wfw:commentRss>http://fukata.org/2009/11/05/gae-p-internationalization-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fukata.org/2009/11/05/gae-p-internationalization-3/" />
	</item>
		<item>
		<title>[GAE/P]国際化に対応してみました　〜その２〜</title>
		<link>http://fukata.org/2009/11/02/gae-p-internationalization-2/</link>
		<comments>http://fukata.org/2009/11/02/gae-p-internationalization-2/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 16:24:06 +0000</pubDate>
		<dc:creator>深田 達也(Tatsuya Fukata)</dc:creator>
				<category><![CDATA[PG]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[GAE/P]]></category>

		<guid isPermaLink="false">http://fukata.org/?p=1830</guid>
		<description><![CDATA[<img src="http://fukata.org/share_img/cat_icon/python-32.png" width="32" height="32" alt="" title="Python" /><br/>前の記事でGAE/Pの標準環境にて国際化に対応した際の記事を書いたのですが、実際にGAE上にデプロイして動かしてみると何点かエラーが出たので、追加したいと思います。
■UnicodeDecodeErrorの発生
実際にア [...]]]></description>
		<wfw:commentRss>http://fukata.org/2009/11/02/gae-p-internationalization-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fukata.org/2009/11/02/gae-p-internationalization-2/" />
	</item>
		<item>
		<title>[GAE/P]国際化に対応してみました　〜その１〜</title>
		<link>http://fukata.org/2009/11/01/gae-p-internationalization-1/</link>
		<comments>http://fukata.org/2009/11/01/gae-p-internationalization-1/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 13:44:20 +0000</pubDate>
		<dc:creator>深田 達也(Tatsuya Fukata)</dc:creator>
				<category><![CDATA[PG]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[GAE/P]]></category>

		<guid isPermaLink="false">http://fukata.org/?p=1823</guid>
		<description><![CDATA[<img src="http://fukata.org/share_img/cat_icon/python-32.png" width="32" height="32" alt="" title="Python" /><br/>現在、GAE/P環境にて作成しているアプリの国際化を対応してみました。Django-1.0やKayといったFWを使って国際化も対応できるようですが、今更変更するのもだるかったので、標準の環境で対応しました。
多分、次に作成するなら、標準の環境ではなく、他のFWを試すかもしれません。
とまぁ、自分のことは置いといて早速、国際化の手順を書いていきたいと思います。まずは、最終的な構成を書きます。

.
`-- src
    &#124;-- app.yaml
    &#124;-- conf
    &#124;   &#124;-- locale
    &#124;   &#124;   &#124;-- en
    &#124;   &#124;   &#124;   `-- LC_MESSAGES
    &#124;   &#124;   &#124; [...]]]></description>
		<wfw:commentRss>http://fukata.org/2009/11/01/gae-p-internationalization-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fukata.org/2009/11/01/gae-p-internationalization-1/" />
	</item>
		<item>
		<title>[GAE/P]必須カラムの登録について</title>
		<link>http://fukata.org/2009/10/29/gae-p-required-column/</link>
		<comments>http://fukata.org/2009/10/29/gae-p-required-column/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 19:36:11 +0000</pubDate>
		<dc:creator>深田 達也(Tatsuya Fukata)</dc:creator>
				<category><![CDATA[PG]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[GAE]]></category>
		<category><![CDATA[GAE/P]]></category>

		<guid isPermaLink="false">http://fukata.org/?p=1817</guid>
		<description><![CDATA[<img src="http://fukata.org/share_img/cat_icon/python-32.png" width="32" height="32" alt="" title="Python" /><br/>最近、GAE for Pythonでアプリを作っているのですが、必須カラムの値がうまく登録できなかった問題が解決したので、メモとして残しておきたいと思います。
■A.py

1
2
class A&#40;db.Mode [...]]]></description>
		<wfw:commentRss>http://fukata.org/2009/10/29/gae-p-required-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fukata.org/2009/10/29/gae-p-required-column/" />
	</item>
		<item>
		<title>[Python]ディレクトリをまとめてzip圧縮</title>
		<link>http://fukata.org/2009/10/21/python-recursive-zip-directory/</link>
		<comments>http://fukata.org/2009/10/21/python-recursive-zip-directory/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 16:39:28 +0000</pubDate>
		<dc:creator>深田 達也(Tatsuya Fukata)</dc:creator>
				<category><![CDATA[PG]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[zip]]></category>
		<category><![CDATA[ユーティリティ]]></category>

		<guid isPermaLink="false">http://fukata.org/?p=1810</guid>
		<description><![CDATA[<img src="http://fukata.org/share_img/cat_icon/python-32.png" width="32" height="32" alt="" title="Python" /><br/>pythonのライブラリリファレンスを見ているとディレクトリをzip圧縮するメソッドがなかったので作成してみました。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- coding: utf-8 -*-
import os,zipfile
&#160;
def zip_write_dir&#40;base_dir, src_dir, zip_name&#41;:
    &#34;&#34;&#34;ディレクトリをzip圧縮する
        base_dir: src_dirが属するディレクトリを表す
        src_dir: 圧縮対象のディレクトリを表す
        zip_name: 出力先のzipファイルのフルパスを表す
    &#34;&#34;&#34;
    zf = zipfile.ZipFile&#40;zip_name, 'w', zipfile.ZIP_DEFLATED&#41;
&#160;
    [...]]]></description>
		<wfw:commentRss>http://fukata.org/2009/10/21/python-recursive-zip-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fukata.org/2009/10/21/python-recursive-zip-directory/" />
	</item>
		<item>
		<title>[Python]mod_python使用時のダウンロード処理</title>
		<link>http://fukata.org/2009/10/21/python-mod_python-download/</link>
		<comments>http://fukata.org/2009/10/21/python-mod_python-download/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 16:36:50 +0000</pubDate>
		<dc:creator>深田 達也(Tatsuya Fukata)</dc:creator>
				<category><![CDATA[PG]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[mod_python]]></category>
		<category><![CDATA[ユーティリティ]]></category>

		<guid isPermaLink="false">http://fukata.org/?p=1806</guid>
		<description><![CDATA[<img src="http://fukata.org/share_img/cat_icon/python-32.png" width="32" height="32" alt="" title="Python" /><br/>現在、pythonを勉強中でちょっとしたWEBアプリを作っていたのですが、ダウンロード処理を書かないといけなくなったので、モジュールを作成してみました。よかったらどうぞ。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-
&#160;
import sys
import os
&#160;
def download&#40;req,filepath&#41;:
&#160;
    req.content_type = 'application/octet-stream'
    req.headers_out&#91;'Content-Type'&#93; = 'application/octet-stream'
    req.headers_out&#91;'Content-Disposition'&#93; = &#34;attachment; filename=\&#34;&#34; + os.path.basename&#40;filepath&#41;
    req.headers_out&#91;'Content-Length'&#93; = str&#40;os.path.getsize&#40;filepath&#41;&#41;
    req.headers_out&#91;'Expires'&#93; = '0'
    req.headers_out&#91;'Cache-Control'&#93; = 'must-revalidate, post-check=0,pre-check=0'
    req.headers_out&#91;'Pragma'&#93; = 'private'
&#160;
  [...]]]></description>
		<wfw:commentRss>http://fukata.org/2009/10/21/python-mod_python-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://fukata.org/2009/10/21/python-mod_python-download/" />
	</item>
	</channel>
</rss>
