<?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">

  <!-- The application hook -->
  <adapter
      factory=".adapters.InterventionInit"
      name="schooltool.interventions" />
  <adapter
      factory=".adapters.InterventionStartup"
      name="schooltool.interventions" />

  <!-- Various adapters -->
  <adapter
      factory=".adapters.getInterventionRoot" />
  <adapter
      factory=".adapters.getSchoolYearInterventionSchoolYear" />
  <adapter
      factory=".adapters.getSchoolToolApplicationInterventionSchoolYear" />
  <adapter
      factory=".adapters.getInterventionSchoolYearSchoolYear" />
  <adapter
      factory=".adapters.getMarkerInterventionStudent" />
  <adapter
      factory=".adapters.getStudentYearInterventionStudent" />
  <adapter
      factory=".adapters.getStudentInterventionStudent" />
  <adapter
      factory=".adapters.getSchoolYearProxyInterventionStudent" />
  <adapter
      factory=".adapters.getInterventionStudentStudent" />
  <adapter
      factory=".adapters.getInterventionMessagesStudent" />
  <adapter
      factory=".adapters.getInterventionMessageStudent" />
  <adapter
      factory=".adapters.getInterventionGoalsStudent" />
  <adapter
      factory=".adapters.getInterventionGoalStudent" />
  <adapter
      factory=".adapters.getSectionMessagesProxyStudent" />
  <adapter
      factory=".adapters.getSectionMessagesGoalsProxyStudent" />
  <adapter
      for=".interfaces.IInterventionStudent"
      provides=".interfaces.IInterventionSchoolYear"
      factory=".adapters.getInterventionSchoolYearFromObj" />
  <adapter
      for=".interfaces.IInterventionMessages"
      provides=".interfaces.IInterventionSchoolYear"
      factory=".adapters.getInterventionSchoolYearFromObj" />
  <adapter
      for=".interfaces.IInterventionMessage"
      provides=".interfaces.IInterventionSchoolYear"
      factory=".adapters.getInterventionSchoolYearFromObj" />
  <adapter
      for=".interfaces.IInterventionGoals"
      provides=".interfaces.IInterventionSchoolYear"
      factory=".adapters.getInterventionSchoolYearFromObj" />
  <adapter
      for=".interfaces.IInterventionGoal"
      provides=".interfaces.IInterventionSchoolYear"
      factory=".adapters.getInterventionSchoolYearFromObj" />

  <!-- The name choosers -->
  <adapter
      for=".interfaces.IInterventionMessages"
      factory=".adapters.SequenceNumberNameChooser"
      provides="zope.container.interfaces.INameChooser" />
  <adapter
      for=".interfaces.IInterventionGoals"
      factory=".adapters.SequenceNumberNameChooser"
      provides="zope.container.interfaces.INameChooser" />

  <!-- object event subscribers -->
   <adapter
      factory=".adapters.PersonRemovedSubsciber"
      name="handle_person_removed" />
   <adapter
      factory=".adapters.SchoolYearRemovedSubsciber"
      name="handle_schoolyear_removed" />

</configure>

