/usr/share/pyshared/schooltool/requirement/configure.zcml is in python-schooltool.gradebook 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 | <?xml version="1.0"?>
<configure xmlns="http://namespaces.zope.org/zope">
<include file="security.zcml" />
<include file="scoresystem.zcml" />
<adapter
for=".interfaces.IHaveRequirement"
provides=".interfaces.IRequirement"
factory=".requirement.getRequirement"
trusted="true"
/>
<adapter
for=".interfaces.IHaveEvaluations"
provides=".interfaces.IEvaluations"
factory=".evaluation.getEvaluations"
trusted="true"
/>
<view
name="requirement" type="*"
provides="zope.traversing.interfaces.ITraversable"
for=".interfaces.IHaveRequirement"
factory=".requirement.requirementNamespace"
/>
<adapter
name="requirement"
provides="zope.traversing.interfaces.ITraversable"
for=".interfaces.IHaveRequirement"
factory=".requirement.requirementNamespace"
/>
<adapter
for="schooltool.app.interfaces.ISchoolToolApplication"
provides=".interfaces.IScoreSystemContainer"
factory=".scoresystem.getScoreSystemContainer" />
<!-- Requirement Content -->
<class class=".requirement.Requirement">
<allow interface="zope.container.interfaces.ISimpleReadContainer" />
<require
permission="schooltool.view"
attributes="keys __iter__ values items __len__ addBase removeBase title"
/>
<require
permission="schooltool.edit"
set_schema=".interfaces.IRequirement"
/>
<require
permission="schooltool.edit"
interface="zope.container.interfaces.IWriteContainer"
/>
</class>
<!-- Evaluations Content -->
<class class=".evaluation.Evaluations">
<require
permission="schooltool.edit"
interface=".interfaces.IEvaluations"
/>
</class>
<class class=".evaluation.Score">
<require
permission="schooltool.view"
interface=".interfaces.IScore"
/>
<require
permission="schooltool.edit"
set_schema=".interfaces.IScore"
/>
</class>
<class class=".evaluation.Evaluation">
<require
permission="schooltool.view"
interface=".interfaces.IEvaluation"
/>
<require
permission="schooltool.edit"
set_schema=".interfaces.IEvaluation"
/>
</class>
<!-- These declarations should go somewhere else eventually -->
<class class="schooltool.app.app.SchoolToolApplication">
<implements
interface=".interfaces.IHaveRequirement" />
</class>
<class class="schooltool.course.course.Course">
<implements interface=".interfaces.IHaveRequirement" />
</class>
<class class="schooltool.course.section.Section">
<implements interface=".interfaces.IHaveRequirement" />
</class>
<class class="schooltool.person.person.Person">
<implements interface=".interfaces.IHaveEvaluations" />
</class>
<!-- generations -->
<utility
name="schooltool.requirement"
provides="zope.app.generations.interfaces.ISchemaManager"
component=".generations.schemaManager"
/>
<include package=".browser" />
</configure>
|