This file is indexed.

/usr/share/pyshared/lpltk/bug_watch.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
#!/usr/bin/python

class BugWatch(object):
    def __init__(self, service, lp_bug_watch):
        self.__service = service
        self.lp_bug_watch = typecheck_Entry(lp_bug_watch)

        self.__bug = None
        self.__bug_tasks = None
        self.__date_created = None
        self.__date_last_changed = None
        self.__date_last_checked = None
        self.__date_next_checked = None
        self.__last_error_type = None
        self.__owner = None
        self.__remote_bug = None
        self.__remote_importance = None
        self.__remote_status = None
        self.__title = None
        self.__url = None

    def __str__(self):
        return "%s %s" %(self.__remote_bug, self.__title)

    @property
    def bug(self):
        if self.__bug is None:
            lp_bug = self.lp_bug_watch.bug
            if lp_bug is not None:
                self.__bug = Bug(self.__service, lp_bug.id)
        return self.__bug

    @property
    def bug_tasks(self):
        if self.__bug_tasks is None:
            lp_bug_tasks = self.lp_bug_watch.bug_tasks
            self.__bug_tasks = BugTasks(self.__services, lp_bug_tasks)
        return self.__bug_tasks

    @property
    def date_created(self):
        if self.__date_created is None:
            self.__date_created = self.lp_bug_watch.date_created
        return self.__date_created

    @property
    def date_last_changed(self):
        if self.__date_last_changed is None:
            self.__date_last_changed = self.lp_bug_watch.date_last_changed
        return self.__date_last_changed

    @property
    def date_last_checked(self):
        if self.__date_last_checked is None:
            self.__date_last_checked = self.lp_bug_watch.date_last_checked
        return self.__date_last_checked

    @property
    def date_next_checked(self):
        if self.__date_next_checked is None:
            self.__date_next_checked = self.lp_bug_watch.date_next_checked
        return self.__date_next_checked

    @property
    def last_error_type(self):
        if self.__last_error_type is None:
            self.__last_error_type = self.lp_bug_watch.last_error_type
        return self.__last_error_type

    @property
    def owner(self):
        if self.__owner is None:
            lp_owner = self.lp_bug_watch.owner
            if lp_owner is not None:
                self.__owner = Person(None, lp_owner)
        return self.__owner

    @property
    def remote_bug(self):
        if self.__remote_bug is None:
            self.__remote_bug = self.lp_bug_watch.remote_bug
        return self.__remote_bug

    @property
    def remote_importance(self):
        if self.__remote_importance is None:
            self.__remote_importance = self.lp_bug_watch.remote_importance
        return self.__remote_importance

    @property
    def remote_status(self):
        if self.__remote_status is None:
            self.__remote_status = self.lp_bug_watch.remote_status
        return self.__remote_status

    @property
    def title(self):
        if self.__title is None:
            self.__title = self.lp_bug_watch.title
        return self.__title

    @property
    def url(self):
        if self.__url is None:
            self.__url = self.lp_bug_watch.url
        return self.__url