- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想注册一个标记接口(interface),这样我就可以将它添加到 ZMI 中的对象中。我的产品的 configure.zcml
包含:
<interface interface=".interfaces.IMarkerInterface" />
并且,在重新安装之后,该接口(interface)显示在可用接口(interface)列表中。但是如果我尝试将它添加到 ZMI 中的对象,我会得到一个 ComponentLookupError
。缺少什么?
最佳答案
对我来说效果不错。
我在Plone 4.0.3中测试过
用贴纸创建了一个包:
paster create -t plone bogus.interface
使用这个 interfaces.py 文件:
from zope.interface import Interface
class IBogusInterface(Interface):
""" Marker bogus interface
"""
还有这个 configure.zcml 文件:
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:five="http://namespaces.zope.org/five"
xmlns:i18n="http://namespaces.zope.org/i18n"
i18n_domain="bogus.interface">
<five:registerPackage package="." initialize=".initialize" />
<!-- -*- extra stuff goes here -*- -->
<interface interface=".interfaces.IBogusInterface" />
</configure>
你确定你没有遗漏任何东西吗?
关于plone - 我如何注册一个标记接口(interface)以便它在 Plones 的 ZMI 中可见?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2868139/
我尝试在 ZMI 使用 Script (Python) 创建一个 collective.nitf.content 对象。 我用过的代码: from Products.CMFCore.utils imp
我希望我的对象显示在 ZMI 左侧导航框架上的 Plone 站点下。找不到明显的方法来做到这一点。我怎样才能做到这一点? 最佳答案 我认为您的对象需要有文件夹才能出现在左侧框架中。 尝试添加 isPr
我们有一个站点从 plone 3 迁移到 plone 4.0.5。从 acl_users 中删除用户后,我在 acl_users 和 portal_membership 之间出现差异无法正常工作(另一
我想注册一个标记接口(interface),这样我就可以将它添加到 ZMI 中的对象中。我的产品的 configure.zcml 包含: 并且,在重新安装之后,该接口(interface)显示在可用
有没有办法为内容重新启用 ZMI 选项卡——比如 Properties (manage_propertiesForm) 和 Security (manage_access)——它们在 Plone 4
在很长一段时间没有使用它之后,我又回到使用 Plone 了。我们已经使用 Plone 4.0.5 设置了一个 Intranet。我们已将大量文档(主要是文件)上传到内联网。 该站点是使用带有 ZEO
我们公司几乎没有 Zope&Plone 项目,直到今天我还是一名通过 ZMI 或 ZopeEdit 开发所有更改的开发人员。我们的公司正在发展,所以我需要开始与其他开发人员合作,这可以帮助我开发功能并
我是一名优秀的程序员,十分优秀!