[Zope-CMF] Discussion item reply using plain text rather than structured text

Richard Ettema richard.ettema@yoursolutions.co.uk
Tue, 23 Oct 2001 16:54:23 +0100


Hi,

I am trying to get my head around the discussion item, how it is created and
displayed when viewed.
I would like to give the user the ability to submit a discussion as plain
text or structured text rather than being stuck with using stx.
I am lost at what the CookedBody does which is called when the item is
viewed. I assume it is calling the CookedBody found in document.py as I cant
find any others.
I thought maybe I could modify things so the text_format variable could be
used to pass 'structured-text' or 'plain' to createReply (in
DiscussionItem.py) but this hasn't worked probably because it isnt possible
and I don't know how the CookedBody works!
Or am I suppose to be modifying addDiscussionItem (in DiscussionItem.py)?

All in all I have confused myself rather well and any help would be
appreciated!!

Thanks

Richard