/usr/share/pyshared/schooltool/course/course.zcml is in python-schooltool 1:2.1.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | <?xml version="1.0"?>
<configure xmlns="http://namespaces.zope.org/zope">
<!-- Course Content Components -->
<interface
interface=".interfaces.ICourseContainerContainer"
type="zope.app.content.interfaces.IContentType"
/>
<class class=".course.CourseContainerContainer">
<allow interface="zope.container.interfaces.ISimpleReadContainer" />
<require permission="schooltool.view"
attributes="keys values items __iter__ __len__ has_key" />
<require permission="schooltool.edit"
interface="zope.container.interfaces.IWriteContainer" />
</class>
<interface
interface=".interfaces.ICourseContainer"
type="zope.app.content.interfaces.IContentType"
/>
<class class=".course.CourseContainer">
<allow interface="zope.container.interfaces.ISimpleReadContainer" />
<require permission="schooltool.view"
attributes="keys values items __iter__ __len__ has_key" />
<require permission="schooltool.edit"
interface="zope.container.interfaces.IWriteContainer" />
</class>
<interface
interface=".interfaces.ICourse"
type="zope.app.content.interfaces.IContentType"
/>
<class class=".course.Course">
<require permission="zope.Public"
attributes="__name__" />
<require permission="schooltool.view"
attributes="title description sections leaders
course_id government_id credits __cmp__" />
<require permission="schooltool.edit"
set_schema=".interfaces.ICourse" />
</class>
<adapter
for="schooltool.app.interfaces.ISchoolToolApplication"
factory=".course.CourseInit"
name="schooltool.course" />
<adapter
for=".interfaces.ICourseContainer"
factory="schooltool.app.app.SimpleNameChooser"
provides="zope.container.interfaces.INameChooser" />
<!-- Section Content Components -->
<interface
interface=".interfaces.ISectionContainerContainer"
type="zope.app.content.interfaces.IContentType"
/>
<class class=".section.SectionContainerContainer">
<allow interface="zope.container.interfaces.ISimpleReadContainer" />
<require permission="schooltool.view"
attributes="keys values items __iter__ __len__ has_key" />
<require permission="schooltool.edit"
interface="zope.container.interfaces.IWriteContainer" />
</class>
<interface
interface=".interfaces.ISectionContainer"
type="zope.app.content.interfaces.IContentType"
/>
<class class=".section.SectionContainer">
<allow interface="zope.container.interfaces.ISimpleReadContainer" />
<require permission="schooltool.view"
attributes="keys values items __iter__ __len__ has_key" />
<require permission="schooltool.edit"
interface="zope.container.interfaces.IWriteContainer" />
</class>
<interface
interface=".interfaces.ISection"
type="zope.app.content.interfaces.IContentType"
/>
<class class=".section.Section">
<implements interface="schooltool.resource.interfaces.IBookResources" />
<implements interface="schooltool.app.interfaces.IHaveCalendar" />
<require permission="schooltool.view"
interface=".interfaces.ISectionBase" />
<require permission="schooltool.view"
interface="schooltool.resource.interfaces.IBookResources" />
<require permission="schooltool.view"
attributes="__cmp__" />
<require permission="zope.Public"
attributes="__name__" />
<require permission="schooltool.edit"
set_schema=".interfaces.ISection" />
</class>
<adapter
for="schooltool.app.interfaces.ISchoolToolApplication"
factory=".section.SectionInit"
name="schooltool.section" />
<adapter
for=".interfaces.ISectionContainer"
factory="schooltool.course.browser.section.SectionNameChooser"
provides="zope.container.interfaces.INameChooser" />
<!-- Content adapters -->
<adapter
factory=".course.getCourseContainer" />
<adapter
factory=".course.getCourseContainerForApp" />
<adapter
factory=".course.getCourseContainerForTerm" />
<adapter
factory=".course.getCourseContainerForCourse" />
<adapter
factory=".course.getSchoolYearForCourse" />
<adapter
factory=".course.getSchoolYearForCourseContainer" />
<adapter
factory=".section.getSectionContainer" />
<adapter
factory=".section.getSchoolYearForSection" />
<adapter
factory=".section.getSchoolYearForSectionContainer" />
<adapter
factory=".section.getTermForSection" />
<adapter
factory=".section.getTermForSectionContainer" />
<adapter
factory=".section.getCourseContainerForSection" />
<adapter
factory=".section.getCourseContainerForSectionContainer" />
<!-- Data consistency -->
<adapter
name="remove_sections_when_term_is_deleted"
factory=".section.RemoveSectionsWhenTermIsDeleted" />
<adapter
name="remove_courses_when_year_is_deleted"
factory=".course.RemoveCoursesWhenSchoolYearIsDeleted" />
<adapter
name="unlink_section_when_deleted"
factory=".section.UnlinkSectionWhenDeleted" />
<adapter factory=".section.SectionLinkContinuinityValidationSubscriber"
name="validate_term_continuinity"/>
<!-- Propagation of roster changes -->
<subscriber
for="schooltool.relationship.interfaces.IRelationshipAddedEvent"
handler=".section.propagateSectionInstructorAdded"
/>
<subscriber
for="schooltool.relationship.interfaces.IRelationshipRemovedEvent"
handler=".section.propagateSectionInstructorRemoved"
/>
<subscriber
for="schooltool.relationship.interfaces.IRelationshipAddedEvent"
handler=".section.propagateSectionStudentAdded"
/>
<subscriber
for="schooltool.relationship.interfaces.IRelationshipRemovedEvent"
handler=".section.propagateSectionStudentRemoved"
/>
</configure>
|