Browsing Chinese (Simplified) translation

Don't show this notice anymore
Before translating, be sure to go through Exoweb FOSS guidelines.
285294 of 2684 results
285.
>>> from twisted.persisted import dirdbm
>>> d = dirdbm.Shelf("/tmp/dir2")
>>> d["key"] = [1, 2]
>>> d["key"]
[1, 2]
>>> l = d["key"]
>>> l.append(3)
>>> d["key"]
[1, 2]
>>> d["key"] = l
>>> d["key"]
[1, 2, 3]
type: Content of: <html><body><pre>
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.
&gt;&gt;&gt; from twisted.persisted import dirdbm
&gt;&gt;&gt; d = dirdbm.Shelf("/tmp/dir2")
&gt;&gt;&gt; d["key"] = [1, 2]
&gt;&gt;&gt; d["key"]
[1, 2]
&gt;&gt;&gt; l = d["key"]
&gt;&gt;&gt; l.append(3)
&gt;&gt;&gt; d["key"]
[1, 2]
&gt;&gt;&gt; d["key"] = l
&gt;&gt;&gt; d["key"]
[1, 2, 3]
Translated and reviewed by Liu, Kun
Located in howto/dirdbm.xhtml:54
286.
Twisted Enterprise Row Objects
type: Content of: <html><body><h1>
Twisted 企业级 Row 对象
Translated by Kevin
Reviewed by Fantix King
Located in howto/row.xhtml:7 howto/row.xhtml:25
287.
Due to lack of maintenance, <code>twisted.enterprise.row</code> and <code>twisted.enterprise.reflector</code> have been deprecated since Twisted 8.0.
type: Content of: <html><body><div><p>
由于缺乏维护,Twisted 8.0 及其之后的版本不推荐使用 <code>twisted.enterprise.row</code> 和 <code>twisted.enterprise.reflector</code>。
Translated and reviewed by Fantix King
Located in howto/row.xhtml:13
288.
This documentation is maintained only for users with an existing codebase.
type: Content of: <html><body><div><p>
此文档的保留和维护仅仅只是为了方便那些现在还在使用旧版本代码的用户。
Translated and reviewed by Fantix King
Located in howto/row.xhtml:19
289.
The <code>twisted.enterprise.row</code> module is a method of interfacing simple python objects with rows in relational database tables. It has two components: the <code>RowObject</code> class which developers sub-class for each relational table that their code interacts with, and the <code>Reflector</code> which is responsible for updates, inserts, queries and deletes against the database.
type: Content of: <html><body><p>
我们可以用 <code>twisted.enterprise.row</code> 模块,来衔接(interface)简单 Python 对象与关系数据库中的行。这个模块含有两个组件:一是<code>RowObject</code> 类,通常作为关系表对应的 Python 类的父类出现;二是 <code>Reflector</code> 类,负责在数据库执行查询、添加、更新及删除等操作。
Translated by Fantix King
Reviewed by Fantix King
Located in howto/row.xhtml:27
290.
The row module is intended for applications such as on-line games, and websites that require a back-end database interface. It is not a full functioned object-relational mapper for python - it deals best with simple data types structured in ways that can be easily represented in a relational database. It is well suited to building a python interface to an existing relational database, and slightly less suited to added database persistance to an existing python application.
type: Content of: <html><body><p>
这个模块是为那些需要后台数据库接口的网站和应用程序——比如在线游戏——设计的,它虽算不上是一个功能完备的 Python ORM 工具,但对于那些可以很容易在关系数据库中表现的简单数据结构,“得心应手”用在这里是很合适的。另外,行模块用于数据的增、删、改、查是很方便的,但用来创建表可能就不会那么顺手了。
Translated by Fantix King
Reviewed by Fantix King
Located in howto/row.xhtml:34
291.
<em>If row does not fit your model, you will be best off using the <a href="rdbms.xhtml">low-level database API</a> directly, or writing your own object/relational layer on top of it.</em>
type: Content of: <html><body><p>
<em>如果说行模块不适合您建立的系统模型,那您最好直接去用<a href="rdbms.xhtml">底层数据库 API</a>,或者在其上创建您自己的 ORM 层。</em>
Translated by Fantix King
Reviewed by Fantix King
Located in howto/row.xhtml:43
292.
Class Definitions
type: Content of: <html><body><h2>
类定义
Translated by Kevin
Reviewed by Fantix King
Located in howto/row.xhtml:47
293.
To interface to relational database tables, the developer must create a class derived from the <code>twisted.enterprise.row.RowObject</code> class for each table. These derived classes must define a number of class attributes which contains information about the database table that class corresponds to. The required class attributes are:
type: Content of: <html><body><p>
为了与关系数据库中的表进行衔接,开发人员必须为每一张表创建一个派生自 <code>twisted.enterprise.row.RowObject</code> 的子类,并且定义一系列类属性,其中包含了对应表的信息。应至少提供下列类属性:
Translated by Fantix King
Reviewed by Fantix King
Located in howto/row.xhtml:49
294.
rowColumns - list of the column names and types in the table with the correct case
type: Content of: <html><body><ul><li>
rowColumns ——表中列名和各列属性的列表(大小写必须与数据库中的一致)
Translated by Fantix King
Reviewed by Fantix King
Located in howto/row.xhtml:57
285294 of 2684 results

This translation is managed by Exoweb FOSS, assigned by Twisted.

You are not logged in. Please log in to work on translations.

Contributors to this translation: Allen Zhong, BomB, Bug King, Fantix King, Hu Yuxin, Kevin, Liu, Kun, Xiong Xiao Feng, suntree_dongcai.