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インターフェース)を加えることによって、続けてください。