This file is indexed.

/usr/share/pyshared/schooltool/resource/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
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
<?xml version="1.0"?>
<configure xmlns="http://namespaces.zope.org/zope"
           i18n_domain="schooltool">

  <include file="security.zcml" />

  <interface
      interface=".interfaces.IResourceContainer"
      type="zope.app.content.interfaces.IContentType"
      />

  <class class=".resource.ResourceContainer">
    <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.IBaseResource"
      type="zope.app.content.interfaces.IContentType"
      />

  <class class=".resource.Resource">
    <implements interface="schooltool.app.interfaces.IHaveCalendar" />

    <allow attributes="__cmp__" />
    <require permission="schooltool.view"
             attributes="title type description notes groups leaders" />
    <require permission="schooltool.edit"
             set_schema=".interfaces.IResource" />
  </class>

  <class class=".resource.Location">
    <implements interface="schooltool.app.interfaces.IHaveCalendar" />

    <require like_class=".resource.Resource" />
    <require permission="schooltool.view"
             attributes="capacity" />
    <require permission="schooltool.edit"
             set_schema=".interfaces.ILocation" />
  </class>

  <class class=".resource.Equipment">
    <implements interface="schooltool.app.interfaces.IHaveCalendar" />

    <require like_class=".resource.Resource" />
    <require permission="schooltool.view"
             attributes="type manufacturer model serialNumber purchaseDate" />
    <require permission="schooltool.edit"
             set_schema=".interfaces.IEquipment" />
  </class>

  <adapter
      for=".interfaces.IResourceContainer"
      factory="schooltool.app.app.SimpleNameChooser"
      provides="zope.container.interfaces.INameChooser" />

  <!-- Application Init -->
  <adapter
      for="schooltool.app.interfaces.ISchoolToolApplication"
      factory=".resource.ResourceInit"
      name="schooltool.resources"
      />

  <!-- Application StartUp -->
  <adapter
      factory=".resource.ResourceStartUp"
      name="schooltool.resources.startup"
      />

  <!-- sample data -->
  <configure
      xmlns:zcml="http://namespaces.zope.org/zcml"
      zcml:condition="have devmode">

    <utility
        factory=".sampledata.SampleResources"
        provides="schooltool.sampledata.interfaces.ISampleDataPlugin"
        name="resources"
        />

  </configure>

  <!-- resource types -->

  <utility
      factory=".types.ResourceFactoryUtility"
      name="resource"
      provides=".interfaces.IResourceFactoryUtility"
      />

  <utility
      factory=".types.LocationFactoryUtility"
      name="location"
      provides=".interfaces.IResourceFactoryUtility"
      />

  <utility
      factory=".types.EquipmentFactoryUtility"
      name="equipment"
      provides=".interfaces.IResourceFactoryUtility"
      />

  <adapter
      factory=".types.ResourceTypeAdapter" />

  <adapter
      factory=".types.LocationTypeAdapter" />

  <adapter
      factory=".types.EquipmentTypeAdapter" />

  <adapter
      for="schooltool.resource.interfaces.IResourceContainer"
      factory=".booking.ResourceBookingCalendar"
      provides=".booking.IBookingCalendar" />

  <traverserPlugin
      for=".interfaces.IResourceContainer"
      layer="zope.publisher.interfaces.browser.IBrowserRequest"
      name="booking"
      plugin=".booking.ResourceBookingTraverserPlugin"
      />

  <adapter factory=".resource.getResourceDemographics" />
  <adapter factory=".resource.DemographicsFormAdapter" />
  <adapter factory=".resource.getResourceDemographicsFields" />

  <class class=".booking.ResourceBookingCalendar">
    <require permission="schooltool.view"
             interface=".interfaces.IBookingCalendar"
             attributes="__cmp__" />
  </class>

  <class class=".booking.BookingCalendarEvent">
    <require permission="schooltool.view"
             interface=".interfaces.IBookingCalendarEvent"
             />
  </class>

  <!-- resource demos -->

  <class class=".resource.ResourceDemographicsFields">
    <implements interface="schooltool.resource.interfaces.IResourceDemographicsFields" />
    <require
       permission="schooltool.edit"
       interface="schooltool.resource.interfaces.IResourceDemographicsFields"
       set_schema="schooltool.resource.interfaces.IResourceDemographicsFields" />
  </class>

  <adapter factory=".resource.getLimitKeyVocabularyForResourceFields" />

  <subscriber
      for="schooltool.resource.interfaces.IBookingCalendar
           zope.publisher.interfaces.http.IHTTPRequest"
      provides="schooltool.app.browser.interfaces.ICalendarProvider"
      factory=".booking.ResourceBookingCalendarProvider"
      />

  <include package=".browser" />

</configure>