Source code for plone.app.event.browser.event_view

# -*- coding: utf-8 -*-
from plone.event.interfaces import IEventAccessor
from plone.event.interfaces import IOccurrence
from Products.Five.browser import BrowserView


[docs]class EventView(BrowserView): def __init__(self, context, request): self.context = context self.request = request self.data = IEventAccessor(context) def __call__(self): if IOccurrence.providedBy(self.context): # The transient Occurrence objects cannot be edited. disable the # edit border for them. self.request.set('disable_border', True) return self.index() # render me.