<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:plone="http://namespaces.plone.org/plone"
    i18n_domain="untranslated"
    >

  <include
      package="plone.tiles"
      file="meta.zcml"
      />

  <browser:page
      name="context-menu"
      for="plone.event.interfaces.IEvent"
      class="ploneintranet.workspace.basecontent.baseviews.ContentView"
      template="templates/context-menu.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:pages
      for="plone.event.interfaces.IEvent"
      class=".helpers.CanAddInSharedCalendar"
      permission="zope2.View"
      >

    <browser:page
        name="can-add-in-shared-calendar"
        attribute="can_add"
        />

    <browser:page
        name="shared-calendar-auto-accepts"
        attribute="auto_accepts"
        />

  </browser:pages>

  <browser:page
      name="app-calendar"
      for="ploneintranet.layout.app.IApp"
      class=".app.View"
      template="templates/app.pt"
      permission="zope2.View"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="redirect-to-app-calendar"
      for="plone.app.contenttypes.interfaces.IFolder"
      class=".views.RedirectToCalendarAppView"
      permission="zope.Public"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="view"
      for="ploneintranet.calendar.content.ICentralCalendar"
      class=".views.CentralCalendarView"
      permission="zope2.View"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="panel-about-calendar"
      for="ploneintranet.calendar.content.ICentralCalendar"
      template="templates/panel-about-calendar.pt"
      permission="zope2.View"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="calendar-app-more-menu"
      for="ploneintranet.layout.app.IApp"
      class=".views.CalendarAppMoreMenu"
      template="templates/calendar_more_menu.pt"
      permission="zope2.View"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="central-calendar-more-menu"
      for="ploneintranet.calendar.content.ICentralCalendar"
      class=".views.CalendarMoreMenu"
      template="templates/central-calendar_more_menu.pt"
      permission="zope2.View"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="workspace-calendar-more-menu"
      for="ploneintranet.workspace.interfaces.IWorkspaceFolder"
      class=".views.CalendarMoreMenu"
      template="templates/workspace-calendar_more_menu.pt"
      permission="zope2.View"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="panel-shared-event"
      for="ploneintranet.calendar.content.ICentralCalendar"
      class=".views.PanelSharedEvent"
      template="templates/panel-shared-event.pt"
      permission="cmf.ModifyPortalContent"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="panel-shared-event"
      for="ploneintranet.layout.app.IApp"
      class=".views.PanelSharedEvent"
      template="templates/panel-shared-event.pt"
      permission="zope2.View"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <!-- token based authentication -->
  <browser:page
      name="ics_export"
      for="*"
      class=".views.IcsExport"
      permission="zope.Public"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="set-timezone-cookie"
      for="*"
      class=".views.SetTimezoneView"
      permission="zope2.View"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <plone:tile
      name="fullcalendar.tile"
      title="Full Calendar tile"
      description="The fullcalendar used in app and workspace"
      for="*"
      class=".tiles.FullCalendarTile"
      template="templates/fullcalendar.tile.pt"
      permission="zope2.View"
      add_permission="cmf.ManagePortal"
      layer="ploneintranet.calendar.browser.interfaces.IPloneintranetCalendarLayer"
      />

  <browser:page
      name="calendar_picker.json"
      for="*"
      class=".helpers.CalendarPickerJSONView"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="reindex_related_events_security"
      for="ploneintranet.calendar.content.ICentralCalendar"
      class=".views.ReindexObjectedSecurityForShared"
      permission="cmf.ModifyPortalContent"
      />

</configure>
