l.r.i.w.IMilestone(IAbstractMilestone) : interface documentation

Part of lp.registry.interfaces.webservice View In Hierarchy

Actual interface for milestones.
Method setTags Set the milestone tags.
Method getTagsData Return MilestoneTag instances associated with milestone.
Method getTags Return the milestone tags in alphabetical order.
Method userCanView True if the given user has access to this product.

Inherited from IAbstractMilestone:

Choice product The project to which this milestone is associated
Choice distribution The distribution to which this milestone belongs.
Choice productseries The product series for which this is a milestone.
Choice distroseries The distribution series for which this is a milestone.
Method createProductRelease Create a new ProductRelease.
Method closeBugsAndBlueprints Close completed bugs and blueprints.
Method destroySelf Delete this milestone.

Inherited from IMilestoneData (via IAbstractMilestone):

Int id Undocumented
Attribute displayname A displayname constructed from the name.
Method bugtasks Get a list of non-conjoined bugtasks visible to this user.
Method getSpecifications Return the specifications visible to this user.

Inherited from IHasBugs (via IAbstractMilestone, IMilestoneData):

Method searchTasks Search the IBugTasks reported on this entity.
Method getBugTaskWeightFunction Return a function that is used to weight the bug tasks.

Inherited from IStructuralSubscriptionTargetRead (via IAbstractMilestone, IMilestoneData, IStructuralSubscriptionTarget):

Method getSubscriptions Return all the subscriptions with the specified levels.
Attribute parent_subscription_target The target's parent, or None if one doesn't exist.
Attribute bug_subscriptions All subscriptions to bugs at the METADATA level or higher.
Method userCanAlterSubscription Check if a user can change a subscription for a person.
Method userCanAlterBugSubscription Check if a user can change a bug subscription for a person.
Method getSubscription Return the subscription for person, if it exists.
Attribute target_type_display The type of the target, for display.
Method userHasBugSubscriptions Is user subscribed, directly or via a team, to bug mail?

Inherited from IStructuralSubscriptionTargetWrite (via IAbstractMilestone, IMilestoneData, IStructuralSubscriptionTarget):

Method addSubscription Add a subscription for this structure.
Method addBugSubscription Add a bug subscription for this structure.
Method addBugSubscriptionFilter Add a bug subscription filter for this structure.
Method removeBugSubscription Remove a subscription to bugs from this structure.

Inherited from IHasOfficialBugTags (via IAbstractMilestone, IMilestoneData):

Method getUsedBugTagsWithOpenCounts Return name and bug count of tags having open bugs.
Method _getOfficialTagClause Get the storm clause for finding this targets tags.
@operation_parameters(List(_('Tags for this milestone'), _('Space-separated keywords for classifying this milestone.'), TextLine()))
@call_with(REQUEST_USER)
@export_write_operation()
@operation_for_version('devel')
def setTags(tags, user):
Set the milestone tags.

Note that this is not a property because, while the current user is needed to store tags metadata, it is desirable to avoid using thread locals to get the current request in models.

Parameterstags The list of tags to be associated with milestone.
user The user who is updating tags for this milestone.
def getTagsData():
Return MilestoneTag instances associated with milestone.

See above the IMilestone.setTags docstring for an explanation of why this is not a property.

@export_read_operation()
@operation_for_version('devel')
def getTags():
Return the milestone tags in alphabetical order.

See above the IMilestone.setTags docstring for an explanation of why this is not a property.

def userCanView(user):
True if the given user has access to this product.
API Documentation for Launchpad, generated by pydoctor at 2019-11-21 00:00:04.