Plon 内容类型可用作文件夹,但不能用作事件
我一直在尝试根据事件类型为 Plone 创建新的内容类型。我遵循了这个 教程< /a> 用于制作内容类型,并为我自己的名为“多媒体”的内容类型成功创建了此代码。我的代码有效,但类型基于文件夹类型。
我尝试根据事件类型更改此设置:
- 第 6、14 和 40 行都包含文件夹或 ATFolder 的实例
- 查看 plone 站点,我发现事件类型为 事件和 ATEvent,我认为。
- 我用事件替换了所有出现的文件夹(我之前用文件夹替换了所有出现的基础并且它起作用了)
不幸的是,这只会引发一个巨大的堆栈错误,我无法找到与我的脚本的相关性,我还在错误日志中查看了但 Multimedia.py 中没有引用任何行,所以我陷入困境。
如果有人知道如何将我当前的代码更改为正确的代码,使多媒体基于事件类型,我将非常感谢您的帮助。
问候
卢克
I have been trying to create a new content type for Plone based on the event type. I followed this tutorial for making content types and successfully created this code for my own content type called "Multimedia". My code works, however the type is based on the folder type.
My attempts to change this to be based on the event type:
- Lines 6, 14 and 40 all contain instances of folder or ATFolder
- Looking on the plone site I found that the event type is event and ATEvent, I think.
- I replaced all the occurrences of folder with event(I had previously replaced all occurrences of base with folder and it worked)
Unfortunately this just throws a huge stack error that I cant find the relevance to my script in, I looked also in the error log but there is no reference to any lines in Multimedia.py so I am stuck.
If anyone knows how to change my current code to correct code that would make Multimedia be based on the event type I would be very greatful for you help.
Regards
Luke
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不能以这种方式扩展 ATEvent,并且必须使用 SchemaExtender 来执行此操作
You can't extend ATEvent in that way and will have to use SchemaExtender to do so