notify of event creation

This commit is contained in:
Frédéric Péters 2011-11-29 16:43:23 +01:00
parent 492d069176
commit 09c04905bb
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,8 @@ import urllib2
import vobject
from zope import component
from zope.event import notify
from zope.lifecycleevent import ObjectAddedEvent, ObjectModifiedEvent
from Products.CMFCore.WorkflowCore import WorkflowException
from Products.CMFCore.utils import getToolByName
@ -59,6 +61,7 @@ class IcalImport(BrowserView):
event.location = vevent.location.value
except:
pass
notify(ObjectModifiedEvent(event))
try:
self.portal_workflow.doActionFor(getattr(self.context, event_id), 'publish')
except WorkflowException: