l.a.b.q.QuestionCollectionByLanguageView(SearchQuestionsView) : class documentation

Part of lp.answers.browser.questiontarget View In Hierarchy

Search for questions in a specific language.

This view displays questions that are asked in the specified language for the QuestionTarget context.

Method __init__ Initialize the view, and check that a language was submitted.
Method page_title See SearchQuestionsView.
Method empty_listing_message See SearchQuestionsView.
Method show_language_control See SearchQuestionsView.
Method getDefaultFilter See SearchQuestionsView.

Inherited from SearchQuestionsView:

Method template The template to render the presentation.
Method render See LaunchpadView.
Method display_target_column Return True when the context has question targets to display.
Method setUpFields See LaunchpadFormView.
Method setUpWidgets See LaunchpadFormView.
Method createLanguageField Create a field to choose a set of languages.
Method validate Validate hook.
Method status_title_map Return a dictionary mapping set of statuses to their title.
Method context_is_project Return True when the context is a project.
Method unspoken_languages Return a formatted string of unspoken question languages.
Method search_text Search text used by the filter.
Method status_filter Set of statuses to filter the search with.
Method context_question_languages Return the set of ILanguages used by this context's questions.
Method matching_faqs_count Return the FAQs matching the same keywords.
Method matching_faqs_url Return the URL to use to display the list of matching FAQs.
Method search_action Action executed when the user clicked the search button.
Method searchResults Return the questions corresponding to the search.
Method display_sourcepackage_column We display the source package column only on distribution.
Method formatSourcePackageName Format the source package name related to question.
Method can_configure_answers Can the user configure answers for the IQuestionTarget.

Inherited from UserSupportLanguagesMixin (via SearchQuestionsView):

Method user_support_languages The set of user support languages.

Inherited from LaunchpadFormView (via SearchQuestionsView):

Method initialize Undocumented
Method extendFields Allow subclasses to extend the form fields.
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.
def __init__(self, context, request):
Initialize the view, and check that a language was submitted.

When the language is missing, the View redirects to the project's Answer facet.

@property
def page_title(self):
See SearchQuestionsView.
@property
def empty_listing_message(self):
See SearchQuestionsView.
@property
def show_language_control(self):
See SearchQuestionsView.

This view does not permit the user to select a language.

def getDefaultFilter(self):
See SearchQuestionsView.
API Documentation for Launchpad, generated by pydoctor at 2019-11-13 00:00:10.