跳转到主要内容

Archetypes的内容类型声明性配置。

项目描述

简介

此软件包添加了用于注册Archetypes内容类的声明性接口。

用法

使用at:register指令注册您的每个内容类。

示例配置

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:five="http://namespaces.zope.org/five"
    xmlns:at="http://namespaces.plone.org/archetypes">

  <five:registerPackage package="." />

  <permission id="example.Add" title="collective.example: Add example" />

  <at:register
      class=".content.Example"
      permission="example.Add"
      />

</configure>

您不需要(也不应该)在内容类上调用atapi.registerType。这由框架自动完成。

致谢

Malthe Borch <mborch@gmail.com>

更改

0.2 - 2011-09-14

  • 与Zope 2.13的兼容性。

0.1 - 2010-12-01

  • 首次发布

支持者