zc用于定义zope 3实例的构建方法
zc.recipe.zope3instance的Python项目详细描述
此配方创建一个zope实例,该实例已由 收集鸡蛋。
配方有以下选项:
- zope3
- 提供zope 3安装定义的节的名称。 默认为zope3。该部分必须有 提供安装位置的位置选项。这个 可能是用来安装部件的部分,比如Zope3签出, 或者简单地指向指向现有的位置选项的部分 安装。
- 数据库
- 定义具有zodb的zconfig选项的节的名称 章节。
- 用户
- Manager用户的用户名和密码
- 鸡蛋
- 一个或多个包含分发内容的要求。
zcml
If specified, provides the list of package ZCML files to include in the instance’s package includes and their order.
By default, the ZCML files normally included in package-includes are ommitted. To includes these, include ‘*’ in the list of includes.
Each entry is a package name with an optional include type and file name. An package name can be optionally followed by a ‘:’ and a file name within the package. The default file name is configure.zcml. The string ‘-meta’ can be included between the file name and the package name. If so, then the default file name is meta.zcml and the include will be treated as a meta include. Similarly for ‘-overrides’. For example, the include:
foo.barCauses the file named NNN-foo.bar-configure.zcml to be inserted into package-includes containing:
<include package=”foo.bar” file=”configure.zcml” />其中nnn是根据订单计算的3位数字,如果输入 在zcml选项中。
包括:
foo.bar-meta导致插入名为nnn-foo.bar-meta.zcml的文件 包装内包括:
<include package=”foo.bar” file=”meta.zcml” />包括:
foo.bar-overrides:x.zcml导致插入名为nnn-foo.bar-overrides.zcml的文件 包装内包括:
<include package=”foo.bar” file=”x.zcml” />
待办事项
- 需要测试
- 希望对于Zope3.4,我们能够创建实例 过程更加模块化,这将允许更干净的实现 这个食谱。
- 支持多存储
- 支持更多配置选项。