This file is indexed.

/usr/lib/python2.7/dist-packages/schooltool/intervention/generations/tests/__init__.py is in python-schooltool.intervention 2.7.1-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
"""
Tests for generation scripts.
"""

from zope.annotation.interfaces import IAnnotatable
from zope.app.dependable.interfaces import IDependable
from zope.app.dependable import Dependable
from zope.app.testing.setup import setUpAnnotations
from zope.component import provideAdapter

from schooltool.basicperson.interfaces import IBasicPerson
from schooltool.contact.basicperson import getBoundContact
from schooltool.contact.basicperson import getPersonOfBoundContact
from schooltool.contact.contact import Contactable
from schooltool.relationship.annotatable import getRelationshipLinks
from schooltool.relationship.interfaces import IRelationshipLinks


def provideAdapters():
    setUpAnnotations()
    provideAdapter(getRelationshipLinks, adapts=(IAnnotatable,),
                   provides=IRelationshipLinks)
    provideAdapter(getBoundContact, adapts=(IBasicPerson,))
    provideAdapter(Contactable, adapts=(IBasicPerson,))
    provideAdapter(getPersonOfBoundContact)
    provideAdapter(Dependable, adapts=(IAnnotatable,),
                   provides=IDependable)