Test discovery in the Zope framework.
Zope框架中的测试发现。
Several content management systems, including Zope and CityDesk, now support it.
一些内容管理系统,包括Zope和 CityDesk现在也支持它了。
More complex classes can be called from Zope scripts (a new feature in Zope 2.3).
更复杂的类,可以从zope脚本中调用(这是Zope 2.3的一个新功能)。
This is a key reason why ZODB is the most popular back end for Zope applications.
这是ZODB成为 Zope 应用程序的最常用后端的关键原因。
Zope 2 often made many implicit assumptions.
Zope2经常会有很多隐含的设定。
Once your Python extension is complete, the next step is getting Zope to work with it.
一旦完成了您的Python扩展,下一步就是使Zope 能和它一起工作。
VFS is a major part of the technical infrastructure that gives Zope its renowned power.
VFS是使Zope声名远扬的技术基础结构的主要组成部分。
As usual, the developers working on the Zope project seem to have been early innovators.
通常,从事Zope项目的开发人员就像是早期的拓荒者。
The simplest way to call Python from Zope is to make your Python code an External Method.
从Zope调用Python 的最简单的方式是把您的 Python代码做成外部方法。
The well-known Zope application server provides a slightly more challenging example of a VFS.
众所周知的Zope应用程序服务器提供了一个颇有挑战性的 VFS示例。
There is a great deal of power and flexibility in the Zope model, and it's well worth exploring.
Zope模型有很强大的功能和很大的灵活性,它们都很值得探究。
A Zope database can store all sorts of Python objects. The following script stores several values.
Zope数据库可以存储所有类型的Python对象。
But what we've done so far is setup the Model objects and wired them into the basic Zope 3 application.
但到目前为止我所做的就是设置模型对象并将它们引入到基本的Zope 3应用程序中。
For a good real-life example, take a look at the ZCatalog implementation, part of the standard Zope distribution.
要看一个优秀的、现实存在的示例,可以去看Z Catalog实现,它是标准Zope分发的一部分。
Also note, finally, that the Zope test frameworks only support tests that are either UnitTest instances or doctests.
最后注意,Zope测试框架只支持UnitTest实例或doctest。
This is done via ZCML, an extensible configuration language that defines and describes components for use in Zope 3.
这可以通过ZCML来实现,ZCML是一个扩展配置语言,用于在Zope3中定义和描述组件。
External Methods are Python functions that have been placed into the "Extensions" directory in the Zope installation.
外部方法是被放到Zope安装目录下的“Extensions”目录中的python函数。
Note that Zope only reads Product files at startup, meaning that for testing you must be able to stop and restart the Zope process.
(请注意:Zope只在启动时读取Product文件,这意味着为了测试,您必须能够停止和重新启动 Zope进程)。
So far in developing this little project, I've only learned and done the basic add and edit forms, which are really easy in Zope 3.
到目前为止开发这个小项目,我只了解和使用了基本的添加和编辑表单,它们在Zope 3中真的很容易。
Unfortunately, whereas cleverness in the Python community was once largely confined to Zope and Twisted, it now is appearing everywhere.
不幸的是,Python社区的这种聪明以前只局限于Zope和Twisted,现在已变得无处不在。
For a lot more detail, see the Zope Developer's Guide in the online documentation and study the stock Products in your Zope installation.
欲了解更多详细信息,请参阅在线文档中的Zope开发者指南,也请研究您的Zope安装目录中现成的Product。
Now notice that this initialization script not only imports the class in order to make it accessible to other parts of Zope, it also registers it for "addability".
现在请注意这个初始化脚本不仅导入了那个类,使它可被Zope的其它部件访问,而且还将该类注册成具有“可添加性”。
Again, this is a good illustration of how Zope programmers tend to write building blocks out of which frameworks can be built rather than large monolithic solutions.
这一现象再次说明Zope程序员倾向于编写小型代码块,然后使用它们构建框架,而不是编写大型的全面解决方案。
Note that Zope uses an odd convention to determine which methods are accessible via the Web -- if a method has a doc string, it is Web accessible; otherwise, it's considered private.
请注意Zope采用一种奇怪的约定来确定哪些方法可以通过Web访问 ―如果一个方法包含有一个doc字符串,那么该方法可通过 Web 访问;否则,就被认为是私有的。
So even if you have some extension you've written in Python, you may still want to consider moving the most often called parts into C. Either way, extending Zope starts with extending Python.
因此,即使您已经用Python写了一些扩展,您仍然要考虑把其中最常被调用的部分改用 C 来写。
So even if you have some extension you've written in Python, you may still want to consider moving the most often called parts into C. Either way, extending Zope starts with extending Python.
因此,即使您已经用Python写了一些扩展,您仍然要考虑把其中最常被调用的部分改用 C 来写。
应用推荐