原型的声明性内容类型配置。
archetypes.configure的Python项目详细描述
简介
此包为注册 原型内容类。
使用量
使用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.registerTypeon 你的内容类。这是由框架自动完成的。
学分
马尔特波奇酒mborch@gmail.com>;
更改
0.2-2011年9月14日
- 与Zope 2.13兼容。
0.1-2010年12月1日
- 初始版本