3
3
xmlns="http://namespaces.zope.org/zope"
4
4
xmlns:i18n="http://namespaces.zope.org/i18n"
5
xmlns:zcml="http://namespaces.zope.org/zcml"
5
6
i18n_domain="schooltool.intervention">
8
<include file="intervention.zcml" />
9
<include file="adapters.zcml" />
10
<include file="catalog.zcml" />
7
11
<include file="security.zcml" />
10
<class class=".intervention.InterventionRoot">
11
<implements interface=".interfaces.IInterventionRoot" />
12
<implements interface=".interfaces.IInterventionRootMarker" />
14
permission="schooltool.view"
15
interface=".interfaces.IInterventionRoot" />
17
<class class=".intervention.InterventionSchoolYear">
18
<implements interface=".interfaces.IInterventionSchoolYear" />
19
<implements interface=".interfaces.IInterventionRootMarker" />
21
permission="schooltool.view"
22
interface=".interfaces.IInterventionSchoolYear" />
24
<class class=".intervention.InterventionStudent">
25
<implements interface=".interfaces.IInterventionStudent" />
26
<implements interface=".interfaces.IInterventionStudentMarker" />
28
permission="schooltool.edit"
29
set_schema=".interfaces.IInterventionStudent" />
31
permission="schooltool.view"
32
interface=".interfaces.IInterventionStudent" />
34
<class class=".intervention.InterventionMessages">
35
<implements interface=".interfaces.IInterventionMessages" />
36
<implements interface=".interfaces.IInterventionStudentMarker" />
38
permission="schooltool.edit"
39
set_schema=".interfaces.IInterventionMessages" />
41
permission="schooltool.view"
42
interface=".interfaces.IInterventionMessages" />
44
<class class=".intervention.InterventionMessage">
45
<implements interface=".interfaces.IInterventionMessage" />
46
<implements interface=".interfaces.IInterventionMarker" />
48
permission="schooltool.edit"
49
set_schema=".interfaces.IInterventionMessage" />
51
permission="schooltool.view"
52
interface=".interfaces.IInterventionMessage" />
54
<class class=".intervention.InterventionGoals">
55
<implements interface=".interfaces.IInterventionGoals" />
56
<implements interface=".interfaces.IInterventionStudentMarker" />
58
permission="schooltool.edit"
59
set_schema=".interfaces.IInterventionGoals" />
61
permission="schooltool.view"
62
interface=".interfaces.IInterventionGoals" />
64
<class class=".intervention.InterventionGoal">
65
<implements interface=".interfaces.IInterventionGoal" />
66
<implements interface=".interfaces.IInterventionMarker" />
68
permission="schooltool.edit"
69
set_schema=".interfaces.IInterventionGoal" />
71
permission="schooltool.view"
72
interface=".interfaces.IInterventionGoal" />
75
<!-- The application hook -->
77
factory=".intervention.InterventionInit"
78
name="schooltool.interventions" />
80
factory=".intervention.InterventionStartup"
81
name="schooltool.interventions" />
83
<!-- Various adapters -->
85
factory=".intervention.getInterventionRoot" />
87
factory=".intervention.getSchoolYearInterventionSchoolYear" />
89
factory=".intervention.getSchoolToolApplicationInterventionSchoolYear" />
91
factory=".intervention.getInterventionSchoolYearSchoolYear" />
93
factory=".intervention.getMarkerInterventionStudent" />
95
for=".interfaces.IInterventionStudent"
96
provides=".interfaces.IInterventionSchoolYear"
97
factory=".intervention.getInterventionSchoolYearFromObj" />
99
for=".interfaces.IInterventionMessages"
100
provides=".interfaces.IInterventionSchoolYear"
101
factory=".intervention.getInterventionSchoolYearFromObj" />
103
for=".interfaces.IInterventionMessage"
104
provides=".interfaces.IInterventionSchoolYear"
105
factory=".intervention.getInterventionSchoolYearFromObj" />
107
for=".interfaces.IInterventionGoals"
108
provides=".interfaces.IInterventionSchoolYear"
109
factory=".intervention.getInterventionSchoolYearFromObj" />
111
for=".interfaces.IInterventionGoal"
112
provides=".interfaces.IInterventionSchoolYear"
113
factory=".intervention.getInterventionSchoolYearFromObj" />
115
<!-- The name choosers -->
117
for=".interfaces.IInterventionMessages"
118
factory=".intervention.SequenceNumberNameChooser"
119
provides="zope.container.interfaces.INameChooser" />
121
for=".interfaces.IInterventionGoals"
122
factory=".intervention.SequenceNumberNameChooser"
123
provides="zope.container.interfaces.INameChooser" />
125
<!-- Vocabularies -->
127
factory=".vocabularies.advisorVocabularyFactory"
128
provides="zope.schema.interfaces.IVocabularyFactory"
129
name="schooltool.intervention.advisor_vocabulary" />
12
<include file="traversal.zcml" />
13
<include package=".browser" />
15
<include zcml:condition="have schooltool.gradebook"
16
file="gradebook.zcml" />
131
18
<!-- Sending email -->
145
32
component=".generations.schemaManager"
148
<!-- object event subscribers -->
150
factory=".intervention.PersonRemovedSubsciber"
151
name="handle_person_removed" />
153
factory=".intervention.SchoolYearRemovedSubsciber"
154
name="handle_schoolyear_removed" />
158
for="schooltool.app.interfaces.ICatalogSetUpEvent"
159
handler=".catalog.catalogSetUpSubscriber"
162
for=".interfaces.IInterventionRoot"
163
provides="zope.catalog.interfaces.ICatalog"
164
factory=".catalog.getInterventionCatalog" />
166
for=".interfaces.IInterventionMessage"
167
provides=".interfaces.IInterventionPersonsResponsible"
168
factory=".catalog.getMessagePersonsResponsible" />
170
for=".interfaces.IInterventionGoal"
171
provides=".interfaces.IInterventionPersonsResponsible"
172
factory=".catalog.getGoalPersonsResponsible" />
174
for=".interfaces.IInterventionMessage"
175
provides=".interfaces.IInterventionType"
176
factory=".catalog.getMessageType" />
178
for=".interfaces.IInterventionGoal"
179
provides=".interfaces.IInterventionType"
180
factory=".catalog.getGoalType" />
182
for=".interfaces.IInterventionMessage"
183
provides=".interfaces.IInterventionGetter"
184
factory=".catalog.messageGetter" />
186
for=".interfaces.IInterventionGoal"
187
provides=".interfaces.IInterventionGetter"
188
factory=".catalog.goalGetter" />
190
<include file="traversal.zcml" />
191
<include package=".browser" />
193
35
<!-- Translations -->
194
36
<i18n:registerTranslations directory="locales" />