This file is indexed.

/usr/share/pyshared/lpltk/specification.py is in python-launchpadlib-toolkit 2.3.

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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
#!/usr/bin/python

from person                   import Person
from bugs                     import Bugs
from utils                    import (
    o2str,
    typecheck_Entry
    )

class Specification(object):
    # __init__
    #
    def __init__(self, service, specification):
        self.__service               = service
        self.__lp_specification      = typecheck_Entry(specification)

        self.__owner                 = None
        self.__approver              = None
        self.__drafter               = None
        self.__assignee              = None
        self.__starter               = None
        self.__completer             = None

        self.__date_created          = None
        self.__date_started          = None
        self.__date_completed        = None

        self.__priority              = None
        self.__definition_status     = None
        self.__implementation_status = None
        self.__lifecycle_status      = None
        self.__milestone             = None

        self.__approved              = None
        self.__complete              = None
        self.__started               = None

        self.__name                  = None
        self.__summary               = None
        self.__title                 = None
        self.__whiteboard            = None
        self.__url                   = None

        self.__bugs                  = None
        self.__dependencies          = None

    # People
    @property
    def owner(self):
        if self.__owner == None:
            self.__owner = Person(self.__bug, self.__lp_specification.owner)
        return self.__owner

    @property
    def approver(self):
        if self.__approver == None:
            self.__approver = Person(self.__bug, self.__lp_specification.approver)
        return self.__approver

    @property
    def drafter(self):
        if self.__drafter == None:
            self.__drafter = Person(self.__bug, self.__lp_specification.drafter)
        return self.__drafter

    @property
    def assignee(self):
        if self.__assignee == None:
            self.__assignee = Person(self.__bug, self.__lp_specification.assignee)
        return self.__assignee

    @property
    def starter(self):
        if self.__starter == None:
            self.__starter = Person(self.__bug, self.__lp_specification.starter)
        return self.__starter

    @property
    def completer(self):
        if self.__completer == None:
            self.__completer = Person(self.__bug, self.__lp_specification.completer)
        return self.__completer

    # Dates
    @property
    def date_created(self):
        if self.__date_created == None:
            self.__date_created = self.__lp_specification.date_created
        return self.__date_created

    @property
    def date_started(self):
        if self.__date_started == None:
            self.__date_started = self.__lp_specification.date_started
        return self.__date_started

    @property
    def date_completed(self):
        if self.__date_completed == None:
            self.__date_completed = self.__lp_specification.date_completed
        return self.__date_completed

    # State tracking
    @property
    def importance(self):
        if self.__importance == None:
            self.__importance = self.__lp_specification.importance
        return self.__importance

    @property
    def definition_status(self):
        if self.__definition_status == None:
            self.__definition_status = self.__lp_specification.definition_status
        return self.__definition_status

    @property
    def implementation_status(self):
        if self.__implementation_status == None:
            self.__implementation_status = self.__lp_specification.implementation_status
        return self.__implementation_status

    @property
    def lifecycle_status(self):
        if self.__lifecycle_status == None:
            self.__lifecycle_status = self.__lp_specification.lifecycle_status
        return self.__lifecycle_status

    @property
    def milestone(self):
        if self.__milestone == None:
            self.__milestone = self.__lp_specification.milestone
        return self.__milestone

    # State tests
    @property
    def approved(self):
        if self.__approved == None:
            self.__approved = self.__lp_specification.direction_approved
        return self.__approved

    @property
    def complete(self):
        if self.__complete == None:
            self.__complete = self.__lp_specification.complete
        return self.__complete

    @property
    def started(self):
        if self.__started == None:
            self.__started = self.__lp_specification.started
        return self.__started

    # Text
    @property
    def name(self):
        if self.__name == None:
            self.__name = o2str(self.__lp_specification.name)
        return self.__name

    @property
    def summary(self):
        if self.__summary == None:
            self.__summary = o2str(self.__lp_specification.summary)
        return self.__summary

    @property
    def title(self):
        if self.__title == None:
            self.__title = o2str(self.__lp_specification.title)
        return self.__title

    @property
    def whiteboard(self):
        if self.__whiteboard == None:
            self.__whiteboard = o2str(self.__lp_specification.whiteboard)
        return self.__whiteboard

    @property
    def url(self):
        if self.__url == None:
            self.__url = self.__lp_specification.specification_url
        return self.__url

    # Collections
    @property
    def bugs(self):
        if self.__bugs == None:
            self.__bugs = Bugs(self.__service,
                self.__lp_specification.bugs)
        return self.__bugs

    @property
    def dependencies(self):
        if self.__dependencies == None:
            # Work around circular dependencies
            from specifications import Specifications

            self.__dependencies = Specifications(self.__service,
                self.__lp_specification.dependencies_collection)
        return self.__dependencies

# vi:set ts=4 sw=4 expandtab: