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

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

Known subclasses: lp.bugs.browser.buglisting.BugNominationsView, lp.bugs.browser.buglisting.BugsBugTaskSearchListingView, lp.bugs.browser.buglisting.BugTaskExpirableListingView, lp.bugs.browser.buglisting.TextualBugTaskSearchListingView, lp.bugs.browser.person.FilteredSearchListingViewMixin

View that renders a list of bugs for a given set of search criteria.
Method bug_tracking_usage Whether the context tracks bugs in Launchpad.
Method external_bugtracker External bug tracking system designated for the context.
Method has_bugtracker Does the IBugTarget have a bug tracker or use Launchpad?
Method can_have_external_bugtracker Undocumented
Method bugtracker Description of the context's bugtracker.
Method upstream_project The linked upstream IProduct for the package.
Method upstream_launchpad_project The linked upstream IProduct for the package.
Method label Undocumented
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 show_config_portlet Undocumented
Method columns_to_show Returns a sequence of column names to be shown in the listing.
Method template Undocumented
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 getInformationTypeWidgetValues Return data used to render the Information Type checkboxes.
Method getMilestoneWidgetValues Return data used to render the milestone checkboxes.
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 shouldShowStructuralSubscriberWidget Should the structural subscriber widget be shown on the 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 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 shouldShowTeamPortlet Should the User's Teams portlet me shown in the results?
Method structural_subscriber_label Undocumented
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 should_show_bug_information Undocumented
Method form_has_errors Return True if 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 _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 LaunchpadFormView:

Method __init__ Undocumented
Method render Return the body of the response.
Method extendFields Allow subclasses to extend the form fields.
Method setUpFields Undocumented
Method help_links Dictionary mapping field names to help links.
Method adapters Provide custom adapters for use when setting up the widgets.
Method action_url Set the default action URL for the form.
Method has_available_actions Does the view have any available actions that will render?
Method initial_values Override this in your subclass if you want any widgets to have
Method addError Add a form wide error.
Method getFieldError Get the error associated with a particular field.
Method setFieldError Set the error associated with a particular field.
Static Method validate_none Do not do any validation.
Method validate_widgets Validate the named form widgets.
Method error_count Undocumented
Method ajax_failure_handler Called by the form if validate() finds any errors.
Method validate_cancel Noop validation in case we cancel.
Method focusedElementScript Helper function to construct the script element content.
Method isSingleLineLayout Undocumented
Method isMultiLineLayout Undocumented
Method isCheckBoxLayout Undocumented
Method showOptionalMarker Should the (Optional) marker be shown?
Method _processNotifications Add any notification messages to the response headers.
Method _abort Abort the form edit.
Method _validate Check all widgets and perform any custom validation.

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.
Method my_affecting_bugs_url A URL to a list of bugs affecting the current user, or None if
Method my_reported_bugs_url A URL to a list of bugs reported by the user, or None.
@cachedproperty
def bug_tracking_usage(self):
Whether the context tracks bugs in Launchpad.
ReturnsServiceUsage enum value
@cachedproperty
def external_bugtracker(self):
External bug tracking system designated for the context.
ReturnsIBugTracker or None
@property
def has_bugtracker(self):
Does the IBugTarget have a bug tracker or use Launchpad?
@property
def can_have_external_bugtracker(self):
Undocumented
@property
def bugtracker(self):
Description of the context's bugtracker.
Returnsstr which may contain HTML.
@cachedproperty
def upstream_project(self):
The linked upstream IProduct for the package.

If this IBugTarget is a IDistributionSourcePackage or an ISourcePackage and it is linked to an upstream project, return the IProduct. Otherwise, return None

ReturnsIProduct or None
@cachedproperty
def upstream_launchpad_project(self):
The linked upstream IProduct for the package.

If this IBugTarget is a IDistributionSourcePackage or an ISourcePackage and it is linked to an upstream project that uses Launchpad to track bugs, return the IProduct. Otherwise, return None

ReturnsIProduct or None
@property
def label(self):
Undocumented
@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 show_config_portlet(self):
Undocumented
@property
def columns_to_show(self):
Returns a sequence of column names to be shown in the listing.
@property
def template(self):
Undocumented
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 getInformationTypeWidgetValues(self):
Return data used to render the Information Type checkboxes.
def getMilestoneWidgetValues(self):
Return data used to render the milestone checkboxes.
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 shouldShowStructuralSubscriberWidget(self):
Should the structural subscriber widget be shown on the page?

Show the widget when there are subordinate structures.

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 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 shouldShowTeamPortlet(self):
Should the User's Teams portlet me shown in the results?
@property
def structural_subscriber_label(self):
Undocumented
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 should_show_bug_information(self):
Undocumented
@property
def form_has_errors(self):
Return True if 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 2019-11-19 00:00:37.