/usr/share/pyshared/schooltool/schoolyear/schoolyear.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 | <?xml version="1.0"?>
<configure
xmlns="http://namespaces.zope.org/zope"
i18n_domain="schooltool">
<class class=".schoolyear.SchoolYearContainer">
<allow interface="zope.container.interfaces.ISimpleReadContainer" />
<require permission="schooltool.view"
attributes="keys values __iter__ __len__ getActiveSchoolYear validateForOverlap active_id" />
<require permission="schooltool.edit"
interface="zope.container.interfaces.IWriteContainer" />
<require permission="schooltool.edit"
attributes="activateNextSchoolYear" />
</class>
<interface
interface=".interfaces.ISchoolYear"
type="zope.app.content.interfaces.IContentType"
/>
<class class=".schoolyear.SchoolYear">
<allow interface="schooltool.schoolyear.interfaces.IReadSchoolYear" />
<require permission="schooltool.edit"
interface="schooltool.schoolyear.interfaces.IWriteSchoolYear"
set_schema="schooltool.schoolyear.interfaces.IReadSchoolYear" />
</class>
<adapter
factory=".schoolyear.getSchoolYearContainer" />
<adapter
factory=".schoolyear.SchoolYearInit"
name="schooltool.schoolyear" />
<adapter
factory=".schoolyear.SchoolYearDateRangeAdapter" />
<subscriber handler=".subscriber.subscriberAdapterDispatcher" />
<adapter factory=".schoolyear.SchoolYearOverlapValidationSubscriber"
name="validate_overlap"/>
<adapter factory=".schoolyear.SchoolYearTermOverflowValidationSubscriber"
name="validate_overflow"/>
<adapter factory=".subscriber.ObjectEventAdapterSubscriberDispatcher" />
<adapter factory=".schoolyear.getTermContainerForDate" />
</configure>
|