/usr/share/pyshared/schooltool/person/configure.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 | <?xml version="1.0"?>
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
i18n_domain="schooltool">
<include file="security.zcml" />
<interface
interface=".interfaces.IPersonContainer"
type="zope.app.content.interfaces.IContentType"
/>
<class class=".person.PersonContainer">
<allow
interface="zope.container.interfaces.ISimpleReadContainer" />
<require
permission="schooltool.view"
attributes="keys values items __iter__ __len__" />
<require
permission="schooltool.edit"
interface="zope.container.interfaces.IWriteContainer" />
</class>
<interface
interface=".interfaces.IPerson"
type="zope.app.content.interfaces.IContentType"
/>
<class class=".person.PersonPasswordWriter">
<require
interface=".interfaces.IPasswordWriter"
permission="schooltool.edit" />
</class>
<adapter trusted="True"
factory=".person.PersonPasswordWriter" />
<class class=".person.Person">
<implements interface="schooltool.app.interfaces.IHaveCalendar" />
<implements interface=".interfaces.IHavePreferences" />
<require
permission="schooltool.view"
interface=".interfaces.IReadPerson"
attributes="__cmp__" />
<require
permission="schooltool.edit"
interface=".interfaces.IWritePerson"
set_schema=".interfaces.IPerson" />
</class>
<utility
factory=".utility.PersonFactoryUtility"
provides="schooltool.person.interfaces.IPersonFactory"
/>
<class class=".preference.PersonPreferences">
<require
permission="schooltool.view"
interface=".interfaces.IPersonPreferences" />
<require
permission="schooltool.edit"
set_schema=".interfaces.IPersonPreferences" />
</class>
<adapter
for=".interfaces.IHavePreferences"
provides=".interfaces.IPersonPreferences"
factory=".preference.getPersonPreferences"
trusted="true"
/>
<subscriber
for="schooltool.person.interfaces.IPerson zope.lifecycleevent.interfaces.IObjectAddedEvent"
handler=".person.personAppCalendarOverlaySubscriber"
/>
<!-- Application hook -->
<adapter
for="schooltool.app.interfaces.ISchoolToolApplication"
factory=".person.PersonInit"
name="schooltool.persons"
/>
<adapter
factory=".person.getCalendarOwner"
provides=".interfaces.IPerson"
for="schooltool.app.interfaces.ISchoolToolCalendar" />
<adapter
factory=".preference.getPreferencesOwner"
provides=".interfaces.IPerson"
for="schooltool.person.interfaces.IPersonPreferences" />
<adapter factory=".person.PersonCatalog"
name="schooltool.person.person.PersonCatalog" />
<adapter
for="schooltool.person.interfaces.IPersonContainer"
factory=".person.getPersonCatalog"
provides="zope.catalog.interfaces.ICatalog" />
<adapter
factory=".person.getContainerOfPerson" />
<configure
xmlns:zcml="http://namespaces.zope.org/zcml"
zcml:condition="have devmode">
<utility
factory=".sampledata.SampleStudents"
provides="schooltool.sampledata.interfaces.ISampleDataPlugin"
name="students"
/>
<utility
factory=".sampledata.SampleTeachers"
provides="schooltool.sampledata.interfaces.ISampleDataPlugin"
name="teachers"
/>
<utility
factory=".sampledata.SamplePersonalEvents"
provides="schooltool.sampledata.interfaces.ISampleDataPlugin"
name="personal_events"
/>
</configure>
<include package=".browser" />
</configure>
|