TracってJQuery使ってたのね。。。
Ajaxにそもそも詳しくないので。。。いろいろライブラリもあるし、どれか一個くらいやりたい事ができるように使えるようになっていたい。
- 作者: 沖林正紀
- 出版社/メーカー: 技術評論社
- 発売日: 2008/06/19
- メディア: 大型本
- 購入: 14人 クリック: 247回
- この商品を含むブログ (42件) を見る
お小遣いたりるかなぁー(ToT)
GenshiのTutorial日本語訳0(はじめに)
WEB関係にはかなり、うといですが、身近で使っているTracのテンプレートエンジンを使っていこうと決めたので、英語力が低いですが、気合いで訳していきます。突っ込み歓迎です。(というかください)m(_ _)m(日本語と英語、両方並べていますが、日本語だけの方がいいのかな?)
http://genshi.edgewall.org/wiki/GenshiTutorial#GenshiTutorial
■はじめに
This tutorial is intended to give an introduction on how to use Genshi in your web application, and present common patterns and best practices.
このチュートリアルはあなたのWEBアプリケーションでGenshiを使い方を紹介するに加え、共通のパターンやベストプラクティスを提示することを目的としています。
It is aimed at developers new to Genshi as well as those who've already used Genshi, but are looking for advice or inspiration on how to improve that usage.
既にGenshiを使ったが、使用を改善する方法についてのアドバイスかインスピレーションを探している人と同様に、初めてGenshiを使用する開発者を対象にします。
GenshiのTutorial日本語訳1(Introduction)
http://genshi.edgewall.org/wiki/GenshiTutorial#Introduction
Introduction
In this tutorial we'll create a simple Python web application based on CherryPy 3.
このチュートリアルでは、我々はCherryPy 3に基づく単純なパイソンウェブアプリケーションを作成します。
CherryPy was chosen because it provides a convenient level of abstraction over raw CGI or WSGI development, but is less ambitious than full-stack web frameworks such as Pylons or Django, which tend to come with a preferred templating language, and often show significant bias towards that language.
CherryPyはCGIまたはWSGI開発に便利なレベルの抽象化を提供するため選ばれました。(Pylons とか Django なんかもよろしいけれど、)それらには、推奨されるテンプレートエンジンがあり、また、そのエンジンを前提に考えられている部分があったりする(のでGenshiの説明には向かないかも)。しかしPylonsまたはDjango等のFull-stackフレームワークより意欲的ではありません。どちらも優先的に搭載しているテンプレート言語です。しばしば重要な言語姿勢を示します。
(アヤシイーーー)
The application we'll build here is a stripped-down version of sites such as reddit or digg: it lets users submit links to online articles they find interesting, and then lets other users comment on those stories. Just for kicks, we'll call that application Geddit?.
私たちがここで構築するアプリケーションはredditかdiggなどのサイトにユーザーが投稿するオンラインの記事に、他のユーザーがコメントをすることを解体して考えます。私たちはそのアプリケーションをGeddit?と呼ぶつもりです。
We'll keep the project as simple as possible, while still showing many of Genshi's features and how to best use them:
我々はプロジェクトをできるだけ単純にしておきます、その一方で、Genshiの特徴と方法の多くが最も彼らを利用することをさらに示します:
- For persistence, we'll use native Python object serialization (via the pickle module), instead of an SQL database and an ORM.
私たちは、オブジェクトの直列化を利用するのにネイティブPython(pickleモジュール経由)にこだわります。
- There's no authentication of any kind. Anyone can submit links, anyone can comment.
どんな種類の認証も全くありません。誰でも、リンクにコメントを投稿することができます。
- We'll start with the basics (rendering templates, handling forms, etc), and then continue by adding features such as Atom feeds and an AJAX interface.
私たちは基礎から始め(テンプレートレンダリング、フォームハンドリング等)それから、特徴づける(例えばAtom feedとAJAXインターフェース)を加えることによって、続けてください。
いろいろなPython
Pythonは主にCPythonしか使っていませんが、いろいろ種類があるんだなぁーっと。
どこで、使い分けるか、今後そもそも使うのかはわからないけど、メモメモ。
PythonインタプリタをCスタックを使わずに独自のスタック(Pythonスタック)で実装したもの。
■Stackless Python
http://www.stackless.com/
PythonによるPythonインタプリタの実装
■PyPy
http://codespeak.net/pypy/dist/pypy/doc/home.html
プログラミング言語PythonのJavaで書かれた実装
■Jython
http://www.jython.org/Project/index.html
.NET FrameworkおよびMono上で動作するPythonの実装
■IronPython
http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython
組み込み向けの実装
■tinypy
http://www.tinypy.org/