~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bugtask.py

[rs=buildbot-poller] automatic merge from stable. Revisions: 14451,
        14452, 14453, 14454, 14455 included.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    'BugTaskListingItem',
25
25
    'BugTaskListingView',
26
26
    'BugTaskNavigation',
27
 
    'BugTaskPortletView',
28
27
    'BugTaskPrivacyAdapter',
29
28
    'BugTaskRemoveQuestionView',
30
29
    'BugTasksAndNominationsView',
1189
1188
            self.next_offset < (self.total_comments + self.total_activity))
1190
1189
 
1191
1190
 
1192
 
class BugTaskPortletView:
1193
 
    """A portlet for displaying a bug's bugtasks."""
1194
 
 
1195
 
    def alsoReportedIn(self):
1196
 
        """Return a list of IUpstreamBugTasks in which this bug is reported.
1197
 
 
1198
 
        If self.context is an IUpstreamBugTasks, it will be excluded
1199
 
        from this list.
1200
 
        """
1201
 
        return [
1202
 
            task for task in self.context.bug.bugtasks
1203
 
            if task.id is not self.context.id]
1204
 
 
1205
 
 
1206
1191
def get_prefix(bugtask):
1207
1192
    """Return a prefix that can be used for this form.
1208
1193