/usr/share/pyshared/lpltk/milestone.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 | #!/usr/bin/python
from utils import (
o2str,
typecheck_Entry
)
# Milestone
#
# A class that provides a convenient interface to a Launchpad milestone.
#
class Milestone(object):
# __init__
#
# Initialize the Bug instance from a Launchpad bug.
#
def __init__(self, service, lp_milestone, commit_changes=True):
self.__service = service
self.__lp_milestone = typecheck_Entry(lp_milestone)
self.__commit_changes = commit_changes
@property
def code_name(self):
return o2str(self.__lp_milestone.code_name)
@property
def date_targeted(self):
return self.__lp_milestone.date_targeted
@property
def is_active(self):
return self.__lp_milestone.is_active
@property
def name(self):
return o2str(self.__lp_milestone.name)
@property
def summary(self):
return o2str(self.__lp_milestone.summary)
@property
def title(self):
return o2str(self.__lp_milestone.title)
@property
def raw(self):
return self.__lp_milestone
# vi:set ts=4 sw=4 expandtab:
|