Commit 0433edd3 authored by Ivan Tyagov's avatar Ivan Tyagov

More generic implementation.

parent fdb0e110
......@@ -60,8 +60,10 @@ if portal_type==\'Discussion Thread\':\n
discussion_post_list = context.objectValues()\n
if len(discussion_post_list):\n
return discussion_post_list[0].getTextContent()\n
if portal_type==\'Discussion Post\':\n
\n
if getattr(context, \'getTextContent\', None) is not None:\n
return context.getTextContent()\n
\n
# by default use getDescription\n
if getattr(context, \'getDescription\', None) is not None:\n
return context.getDescription()\n
......
1092
\ No newline at end of file
1093
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment