<?xml version="1.0" encoding="utf-8"?>
<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    xmlns:zcml="http://namespaces.zope.org/zcml"
    i18n_domain="schooltool.intervention">

  <include file="intervention.zcml" />
  <include file="adapters.zcml" />
  <include file="catalog.zcml" />
  <include file="security.zcml" />
  <include file="traversal.zcml" />
  <include package=".browser" />

  <include zcml:condition="have schooltool.gradebook"
           file="gradebook.zcml" />

  <!-- Sending email -->
  <subscriber
      for="schooltool.intervention.interfaces.IInterventionMessage zope.lifecycleevent.interfaces.IObjectAddedEvent"
      handler=".sendmail.sendInterventionMessageEmail"
      />
  <subscriber
      for="schooltool.intervention.interfaces.IInterventionGoal zope.lifecycleevent.interfaces.IObjectAddedEvent"
      handler=".sendmail.sendInterventionGoalAddEmail"
      />

  <!-- generations -->
  <utility
      name="schooltool.intervention"
      provides="zope.app.generations.interfaces.ISchemaManager"
      component=".generations.schemaManager"
      />

  <!-- Translations -->
  <i18n:registerTranslations directory="locales" />

</configure>
