This file is indexed.

/usr/share/pyshared/weboob/capabilities/cinema.py is in python-weboob-core 0.g-1.

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
165
166
167
168
169
170
171
172
173
# -*- coding: utf-8 -*-

# Copyright(C) 2013 Julien Veyssier
#
# This file is part of weboob.
#
# weboob is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# weboob is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.


from .base import IBaseCap, CapBaseObject, DateField, StringField, IntField, Field


__all__ = ['Movie', 'Person', 'ICapCinema']


class Movie(CapBaseObject):
    """
    Movie object.
    """
    original_title   = StringField('Original title of the movie')
    other_titles     = Field('Titles in other countries', list)
    release_date     = DateField('Release date of the movie')
    all_release_dates= StringField('Release dates list of the movie')
    duration         = IntField('Duration of the movie in minutes')
    short_description= StringField('Short description of the movie')
    genres           = Field('Genres of the movie', list)
    pitch            = StringField('Short story description of the movie')
    country          = StringField('Origin country of the movie')
    note             = StringField('Notation of the movie')
    roles            = Field('Lists of Persons related to the movie indexed by roles', dict)
    thumbnail_url    = StringField('Url of movie thumbnail')

    def __init__(self, id, original_title):
        CapBaseObject.__init__(self, id)
        self.original_title = original_title


class Person(CapBaseObject):
    """
    Person object.
    """
    name             = StringField('Star name of a person')
    real_name        = StringField('Real name of a person')
    birth_date       = DateField('Birth date of a person')
    death_date       = DateField('Death date of a person')
    birth_place      = StringField('City and country of birth of a person')
    gender           = StringField('Gender of a person')
    nationality      = StringField('Nationality of a person')
    short_biography  = StringField('Short biography of a person')
    biography        = StringField('Full biography of a person')
    short_description= StringField('Short description of a person')
    roles            = Field('Lists of movies related to the person indexed by roles',dict)
    thumbnail_url    = StringField('Url of person thumbnail')

    def __init__(self, id, name):
        CapBaseObject.__init__(self, id)
        self.name = name


class ICapCinema(IBaseCap):
    """
    Cinema databases.
    """
    def iter_movies(self, pattern):
        """
        Search movies and iterate on results.

        :param pattern: pattern to search
        :type pattern: str
        :rtype: iter[:class:`Movies`]
        """
        raise NotImplementedError()

    def get_movie(self, _id):
        """
        Get a movie object from an ID.

        :param _id: ID of movie
        :type _id: str
        :rtype: :class:`Movie`
        """
        raise NotImplementedError()

    def get_movie_releases(self, _id, country=None):
        """
        Get a list of a movie releases from an ID.

        :param _id: ID of movie
        :type _id: str
        :rtype: :class:`String`
        """
        raise NotImplementedError()

    def iter_movie_persons(self, _id, role=None):
        """
        Get the list of persons who are related to a movie.

        :param _id: ID of movie
        :type _id: str
        :rtype: iter[:class:`Person`]
        """
        raise NotImplementedError()

    def iter_persons(self, pattern):
        """
        Search persons and iterate on results.

        :param pattern: pattern to search
        :type pattern: str
        :rtype: iter[:class:`persons`]
        """
        raise NotImplementedError()

    def get_person(self, _id):
        """
        Get a person object from an ID.

        :param _id: ID of person
        :type _id: str
        :rtype: :class:`Person`
        """
        raise NotImplementedError()

    def iter_person_movies(self, _id, role=None):
        """
        Get the list of movies related to a person.

        :param _id: ID of person
        :type _id: str
        :rtype: iter[:class:`Movie`]
        """
        raise NotImplementedError()

    def iter_person_movies_ids(self, _id):
        """
        Get the list of movie ids related to a person.

        :param _id: ID of person
        :type _id: str
        :rtype: iter[str]
        """
        raise NotImplementedError()

    def iter_movie_persons_ids(self, _id):
        """
        Get the list of person ids related to a movie.

        :param _id: ID of movie
        :type _id: str
        :rtype: iter[str]
        """
        raise NotImplementedError()

    def get_person_biography(self, id):
        """
        Get the person full biography.

        :param _id: ID of person
        :type _id: str
        :rtype: str
        """
        raise NotImplementedError()