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

  <!-- catalog -->
  <adapter
      factory=".catalog.InterventionCatalog"
      name="schooltool.intervention.InterventionCatalog" />
  <adapter
      for=".interfaces.IInterventionRoot"
      provides="zope.catalog.interfaces.ICatalog"
      factory=".catalog.getInterventionCatalog" />
  <adapter
      for=".interfaces.IInterventionMessage"
      provides=".interfaces.IInterventionPersonsResponsible"
      factory=".catalog.getMessagePersonsResponsible" />
  <adapter
      for=".interfaces.IInterventionGoal"
      provides=".interfaces.IInterventionPersonsResponsible"
      factory=".catalog.getGoalPersonsResponsible" />
  <adapter
      for=".interfaces.IInterventionMessage"
      provides=".interfaces.IInterventionType"
      factory=".catalog.getMessageType" />
  <adapter
      for=".interfaces.IInterventionGoal"
      provides=".interfaces.IInterventionType"
      factory=".catalog.getGoalType" />
  <adapter
      for=".interfaces.IInterventionMessage"
      provides=".interfaces.IInterventionGetter"
      factory=".catalog.messageGetter" />
  <adapter
      for=".interfaces.IInterventionGoal"
      provides=".interfaces.IInterventionGetter"
      factory=".catalog.goalGetter" />
  <subscriber
      for="schooltool.relationship.interfaces.IRelationshipAddedEvent"
      handler=".catalog.updatePersonsResponsibleIndex"
      />
  <subscriber
      for="schooltool.relationship.interfaces.IRelationshipRemovedEvent"
      handler=".catalog.updatePersonsResponsibleIndex"
      />

</configure>
