notify of event creation
This commit is contained in:
parent
492d069176
commit
09c04905bb
|
@ -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:
|
||||
|
|
Reference in New Issue