开发者

Plone content type works as folder but not as event

开发者 https://www.devze.com 2023-01-05 07:19 出处:网络
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 \"

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:

  1. Lines 6, 14 and 40 all contain instances of folder or ATFolder
  2. Looking on the plone site I found that the event type is event and ATEvent, I think.
  3. 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


You can't extend ATEvent in that way and will have to use SchemaExtender to do so

0

精彩评论

暂无评论...
验证码 换一张
取 消