l.b.b.b.BugView(LaunchpadView, BugViewMixin) : class documentation

Part of lp.bugs.browser.bug View In Hierarchy

Known subclasses: lp.bugs.browser.bug.BugActivity

View class for presenting information about an IBug.

Since all bug pages are registered on IBugTask, the context will be adapted to IBug in order to make the security declarations work properly. This has the effect that the context in the pagetemplate changes as well, so the bugtask (which is often used in the pages) is available as current_bugtask. This may not be all that pretty, but it was the best solution we came up with when deciding to hang all the pages off IBugTask instead of IBug.

Method page_description Undocumented
Method subscription Return whether the current user is subscribed.
Method duplicates Return a list of dicts of duplicates.
Method proxiedUrlForLibraryFile Return the proxied download URL for a Librarian file.

Inherited from BugViewMixin:

Method is_duplicate_active Undocumented
Method subscription_info Undocumented
Method direct_subscribers Return the list of direct subscribers.
Method duplicate_subscribers Return the list of subscribers from duplicates.
Method getSubscriptionClassForUser Return a set of CSS class names based on subscription status.
Method regular_attachments The list of bug attachments that are not patches.
Method patches The list of bug attachments that are patches.
Method current_bugtask Return the current IBugTask.
Method specifications Undocumented
Method _bug_attachments Get a dict of attachment type -> attachments list.
@cachedproperty
def page_description(self):
Undocumented
@property
def subscription(self):
Return whether the current user is subscribed.
def duplicates(self):
Return a list of dicts of duplicates.

Each dict contains the title that should be shown and the bug object itself. This allows us to protect private bugs using a title like 'Private Bug'.

def proxiedUrlForLibraryFile(self, attachment):
Return the proxied download URL for a Librarian file.
API Documentation for Launchpad, generated by pydoctor at 2018-06-23 00:00:09.