diff --git a/tabellio/icalimport/icalimport.py b/tabellio/icalimport/icalimport.py index 32e3075..75dd184 100644 --- a/tabellio/icalimport/icalimport.py +++ b/tabellio/icalimport/icalimport.py @@ -10,6 +10,7 @@ from Products.CMFCore.WorkflowCore import WorkflowException from Products.CMFCore.utils import getToolByName from Products.Five.browser import BrowserView from plone.registry.interfaces import IRegistry +from plone.app.textfield.value import RichTextValue from tabellio.config.interfaces import ITabellioSettings @@ -57,10 +58,23 @@ class IcalImport(BrowserView): event.title = title event.start = date_start event.end = date_end + description = None try: - event.description = vevent.description.value + description = vevent.description.value except: pass + if description: + event.text = RichTextValue(raw=description, + mimeType='text/plain', outputMimeType='text/x-html-safe') + description = None + try: + description = vevent.x_alt_desc.value + except: + pass + if description: + event.text = RichTextValue(raw=description, + mimeType='text/html', outputMimeType='text/x-html-safe') + try: event.location = vevent.location.value except: