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

  <include package="ploneintranet.restapi" />
  <include package=".browser" />
  <include package=".notifications" />

  <utility
      provides="zope.schema.interfaces.IVocabularyFactory"
      name="ploneintranet.calendar.timezones"
      component=".vocabularies.timezone_vocabulary"
      />

  <interface interface=".interfaces.IMaintainerGroup" />
  <interface interface=".interfaces.IReaderGroup" />

  <adapter
      factory=".importexport.IQuaiveCalendarEventComponent"
      for="ploneintranet.workspace.behaviors.event.IPloneIntranetEvent"
      />

  <adapter
      factory=".content.calendar_from_central_calendar"
      provides="plone.event.interfaces.IICalendar"
      for=".content.ICentralCalendar"
      />

  <subscriber
      for=".content.ICentralCalendar
           zope.lifecycleevent.interfaces.IObjectRemovedEvent"
      handler=".subscribers.central_calendar_deleted"
      />

  <subscriber
      for=".content.ICentralCalendar
           zope.lifecycleevent.interfaces.IObjectModifiedEvent"
      handler=".subscribers.central_calendar_modified"
      />

  <genericsetup:registerProfile
      name="default"
      title="Plone Intranet: -- [Calendar]"
      description="Extension profile for ploneintranet.calendar."
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/default"
      post_handler=".setuphandlers.post_default"
      />

  <genericsetup:registerProfile
      name="uninstall"
      title="Plone Intranet: -- [Calendar uninstall]"
      description="Extension profile for ploneintranet.calendar."
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/uninstall"
      />

</configure>
