l.b.b.b.BugTaskSearchListingView(LaunchpadFormView, FeedsMixin, BugsInfoMixin) : class documentation

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

Known subclasses: lp.bugs.browser.bugtarget.BugTargetBugsView, lp.bugs.browser.bugtask.BugNominationsView, lp.bugs.browser.bugtask.BugsBugTaskSearchListingView, lp.bugs.browser.bugtask.TextualBugTaskSearchListingView, lp.registry.browser.person.BugSubscriberPackageBugsSearchListingView, lp.registry.browser.person.PersonAssignedBugTaskSearchListingView, lp.registry.browser.person.PersonCommentedBugTaskSearchListingView, lp.registry.browser.person.PersonRelatedBugTaskSearchListingView, lp.registry.browser.person.PersonReportedBugTaskSearchListingView, lp.registry.browser.person.PersonSubscribedBugTaskSearchListingView

Implements interfaces: lp.bugs.browser.bugtask.IBugTaskSearchListingMenu

View that renders a list of bugs for a given set of search criteria.
Method schema Return the schema that defines the form.
Method feed_links Prevent conflicts between the page and the atom feed.
Method initialize Initialize the view with the request.
Method columns_to_show Returns a sequence of column names to be shown in the listing.
Method validate_search_params Validate the params passed for the search.
Method setUpWidgets Customize the onKeyPress event of the assignee chooser.
Method validate Validates the form.
Method buildSearchParams Build the BugTaskSearchParams object for the given arguments and
Method buildBugTaskSearchParams Build the parameters to submit to the searchTasks method.
Method search Return an ITableBatchNavigator for the GET search criteria.
Method searchUnbatched Return a SelectResults object for the GET search criteria.
Method getWidgetValues Return data used to render a field's widget.
Method getStatusWidgetValues Return data used to render the status checkboxes.
Method getImportanceWidgetValues Return data used to render the Importance checkboxes.
Method getMilestoneWidgetValues Return data used to render the milestone checkboxes.
Method getAdvancedSearchPageHeading The header for the advanced search page.
Method getSimpleSearchURL Return a URL that can be used as an href to the simple search.
Method shouldShowAssigneeWidget Should the assignee widget be shown on the advanced search page?
Method shouldShowCommenterWidget Show the commenter widget on the advanced search page?
Method shouldShowComponentWidget Show the component widget on the advanced search page?
Method shouldShowSupervisorWidget Should the bug supervisor widget be shown on the advanced search page?
Method shouldShowNoPackageWidget Should the widget to filter on bugs with no package be shown?
Method shouldShowReporterWidget Should the reporter widget be shown on the advanced search page?
Method shouldShowTagsCombinatorWidget Should the tags combinator widget show on the search page?
Method shouldShowReleaseCriticalPortlet Should the page include a portlet showing release-critical bugs
Method shouldShowSubscriberWidget Show the subscriber widget on the advanced search page?
Method shouldShowUpstreamStatusBox Should the upstream status filtering widgets be shown?
Method getSortLink Return a link that can be used to sort results by colname.
Method getSortedColumnCSSClass Return a class appropriate for sorted columns
Method shouldShowTargetName Should the bug target name be displayed in the list of results?
Method shouldShowAdvancedForm Return True if the advanced form should be shown, or False.
Method form_has_errors Return True of the form has errors, otherwise False.
Method validateVocabulariesAdvancedForm Provides a meaningful message for vocabulary validation errors.
Method isUpstreamProduct Is the context a Product that does not use Malone?
Method addquestion_url Return the URL for the +addquestion view for the context.
Method _migrateOldUpstreamStatus Converts old upstream status value parameters to new ones.
Method _buildUpstreamStatusParams Convert the status_upstream value to parameters we can
Method _getBatchNavigator Return the batch navigator to be used to batch the bugtasks.
Method _getSortStatus Finds out if the list is sorted by the column specified.
Method _upstreamContext Is this page being viewed in an upstream context?
Method _productSeriesContext Is this page being viewed in a product series context?
Method _projectContext Is this page being viewed in a project context?
Method _personContext Is this page being viewed in a person context?
Method _distributionContext Is this page being viewed in a distribution context?
Method _distroSeriesContext Is this page being viewed in a distroseries context?
Method _sourcePackageContext Is this view in a [distroseries] sourcepackage context?
Method _distroSourcePackageContext Is this page being viewed in a distribution sourcepackage context?

Inherited from BugsInfoMixin:

Method bugs_fixed_elsewhere_url A URL to a list of bugs fixed elsewhere.
Method open_cve_bugs_url A URL to a list of open bugs linked to CVEs.
Method open_cve_bugs_has_report Whether or not the context has a CVE report page.
Method pending_bugwatches_url A URL to a list of bugs that need a bugwatch.
Method expirable_bugs_url A URL to a list of bugs that can expire, or None.
Method new_bugs_url A URL to a page of new bugs.
Method inprogress_bugs_url A URL to a page of inprogress bugs.
Method open_bugs_url A URL to a list of open bugs.
Method critical_bugs_url A URL to a list of critical bugs.
Method high_bugs_url A URL to a list of high priority bugs.
Method my_bugs_url A URL to a list of bugs assigned to the user, or None.
@property
def schema(self):
Return the schema that defines the form.
@property
def feed_links(self):
Prevent conflicts between the page and the atom feed.

The latest-bugs atom feed matches the default output of this view, but it does not match this view's bug listing when any search parameters are passed in.

def initialize(self):
Initialize the view with the request.

Look for old status names and redirect to a new location if found.

@property
def columns_to_show(self):
Returns a sequence of column names to be shown in the listing.
def validate_search_params(self):
Validate the params passed for the search.

An UnexpectedFormData exception is raised if the user submitted a URL that could not have been created from the UI itself.

def setUpWidgets(self):
Customize the onKeyPress event of the assignee chooser.
def validate(self, data):
Validates the form.
def _migrateOldUpstreamStatus(self):
Converts old upstream status value parameters to new ones.

Before Launchpad version 1.1.6 (build 4412), the upstream parameter in the request was a single string value, coming from a set of radio buttons. From that version on, the user can select multiple values in the web UI. In order to keep old bookmarks working, convert the old string parameter into a list.

def buildSearchParams(self, searchtext=None, extra_params=None):
Build the BugTaskSearchParams object for the given arguments and values specified by the user on this form's widgets.
def _buildUpstreamStatusParams(self, data):
Convert the status_upstream value to parameters we can send to BugTaskSet.search().
def _getBatchNavigator(self, tasks):
Return the batch navigator to be used to batch the bugtasks.
def buildBugTaskSearchParams(self, searchtext=None, extra_params=None):
Build the parameters to submit to the `searchTasks` method.

Use the data submitted in the form to populate a dictionary
which, when expanded (using **params notation) can serve as the
input for searchTasks().
def search(self, searchtext=None, context=None, extra_params=None):
Return an ITableBatchNavigator for the GET search criteria.
ParameterssearchtextText that must occur in the bug report. If searchtext is None, the search text will be gotten from the request.
extra_paramsA dict that provides search params added to the search criteria taken from the request. Params in extra_params take precedence over request params.
def searchUnbatched(self, searchtext=None, context=None, extra_params=None):
Return a SelectResults object for the GET search criteria.
ParameterssearchtextText that must occur in the bug report. If searchtext is None, the search text will be gotten from the request.
extra_paramsA dict that provides search params added to the search criteria taken from the request. Params in extra_params take precedence over request params.
def getWidgetValues(self, vocabulary_name=None, vocabulary=None, default_values=()):
Return data used to render a field's widget.

Either vocabulary_name or vocabulary must be supplied.

def getStatusWidgetValues(self):
Return data used to render the status checkboxes.
def getImportanceWidgetValues(self):
Return data used to render the Importance checkboxes.
def getMilestoneWidgetValues(self):
Return data used to render the milestone checkboxes.
def getAdvancedSearchPageHeading(self):
The header for the advanced search page.
def getSimpleSearchURL(self):
Return a URL that can be used as an href to the simple search.
def shouldShowAssigneeWidget(self):
Should the assignee widget be shown on the advanced search page?
def shouldShowCommenterWidget(self):
Show the commenter widget on the advanced search page?
def shouldShowComponentWidget(self):
Show the component widget on the advanced search page?
def shouldShowSupervisorWidget(self):
Should the bug supervisor widget be shown on the advanced search page?
def shouldShowNoPackageWidget(self):
Should the widget to filter on bugs with no package be shown?

The widget will be shown only on a distribution or distroseries's advanced search page.

def shouldShowReporterWidget(self):
Should the reporter widget be shown on the advanced search page?
def shouldShowTagsCombinatorWidget(self):
Should the tags combinator widget show on the search page?
def shouldShowReleaseCriticalPortlet(self):
Should the page include a portlet showing release-critical bugs for different series.
def shouldShowSubscriberWidget(self):
Show the subscriber widget on the advanced search page?
def shouldShowUpstreamStatusBox(self):
Should the upstream status filtering widgets be shown?
def getSortLink(self, colname):
Return a link that can be used to sort results by colname.
def getSortedColumnCSSClass(self, colname):
Return a class appropriate for sorted columns
def _getSortStatus(self, colname):
Finds out if the list is sorted by the column specified.

Returns a tuple (sorted, ascending), where sorted is true if the list is currently sorted by the column specified, and ascending is true if sorted in ascending order.

def shouldShowTargetName(self):
Should the bug target name be displayed in the list of results?

This is mainly useful for the listview.

def shouldShowAdvancedForm(self):
Return True if the advanced form should be shown, or False.
@property
def form_has_errors(self):
Return True of the form has errors, otherwise False.
def validateVocabulariesAdvancedForm(self):
Provides a meaningful message for vocabulary validation errors.
@property
def isUpstreamProduct(self):
Is the context a Product that does not use Malone?
def _upstreamContext(self):
Is this page being viewed in an upstream context?

Return the IProduct if yes, otherwise return None.

def _productSeriesContext(self):
Is this page being viewed in a product series context?

Return the IProductSeries if yes, otherwise return None.

def _projectContext(self):
Is this page being viewed in a project context?

Return the IProjectGroup if yes, otherwise return None.

def _personContext(self):
Is this page being viewed in a person context?

Return the IPerson if yes, otherwise return None.

def _distributionContext(self):
Is this page being viewed in a distribution context?

Return the IDistribution if yes, otherwise return None.

def _distroSeriesContext(self):
Is this page being viewed in a distroseries context?

Return the IDistroSeries if yes, otherwise return None.

def _sourcePackageContext(self):
Is this view in a [distroseries] sourcepackage context?

Return the ISourcePackage if yes, otherwise return None.

def _distroSourcePackageContext(self):
Is this page being viewed in a distribution sourcepackage context?

Return the IDistributionSourcePackage if yes, otherwise return None.

@property
def addquestion_url(self):
Return the URL for the +addquestion view for the context.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.