tags:

views:

26

answers:

1

Hi All

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

+1  A: 

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

Thank you very much, I will have a go tonight with this :)
Luke