[Product-Developers] hidden description in event object
deesto
john.destefano at gmail.com
Wed Mar 18 18:56:29 UTC 2009
Hi Maurits,
On Mar 13, 2009, at 5:26 AM, Maurits van Rees-3 (via Nabble) wrote:
> >> An Archetypes field also has a raw version. In this case it
> should be
> >> self.getRawDescription(). See if that gives you what you want.
> >
> > Currently I pull this field into the object thusly:
> > ...
> > copied_fields['description'],
> > ...
> >
> > How/where would I use getRawDescription() to pull in the raw version
> > into the object? or is this not possible with copied fields?
>
> In a template you would use context/Description to get the normal
> description. If you use context/getRawDescription you get the raw
> description.
>
> It may or may not make a difference with the description field. But
> at least when you have a rich text field called 'body' and you have
> restructured text as the input, and html as output, then getRawBody
> will get you the literal raw restructured text that is stored in the
> field and getBody will get you the html version.
>
> It may be worth a shot; if you don't get progress in 15 minutes, then
> forget this email. :-)
Well, it's been > 15 minutes now.
I'm using the default 'base_view' for this type. Shouldn't that
display the description field, if it exists? I don't understand why
it disappears after object creation.
Thanks,
~John
--
View this message in context: http://n2.nabble.com/hidden-description-in-event-object-tp2467560p2499018.html
Sent from the Product Developers mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20090318/933a086f/attachment-0001.html>
More information about the Product-Developers
mailing list