<?xml version="1.0"?>
<configure xmlns="http://namespaces.zope.org/zope">

  <class class=".course.CourseSkills">
    <require
        permission="schooltool.edit"
        set_schema=".interfaces.ICourseSkills" />
    <require
        permission="schooltool.view"
        interface=".interfaces.ICourseSkills" />
  </class>

  <class class=".course.CourseSkillSet">
    <allow interface="zope.interface.common.mapping.IReadMapping" />
    <require
        permission="schooltool.view"
        attributes="keys __iter__ values items __len__ deployed title skillset"
        />
    <require
        permission="schooltool.edit"
        set_schema=".interfaces.ICourseSkillSet"
        />
  </class>

  <adapter factory=".course.getCourseSkills"
           trusted="True" />

  <class class=".course.SectionSkills">
    <require
        permission="schooltool.edit"
        set_schema=".interfaces.ISectionSkills" />
    <require
        permission="schooltool.view"
        interface=".interfaces.ISectionSkills" />
  </class>

  <adapter factory=".course.getSectionSkills"
           trusted="True" />


  <class class=".course.CourseSkill">
    <require
        permission="schooltool.edit"
        set_schema=".interfaces.ICourseSkill" />
    <require
        permission="schooltool.view"
        interface=".interfaces.ICourseSkill" />
    <!-- XXX: hack to bypass GradebookOverview checks -->
    <require
        permission="schooltool.view"
        attributes="scoresystem" />
  </class>

</configure>
