~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/answers/browser/tests/views.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-04-26 21:01:38 UTC
  • mfrom: (12915.5.6 question-enums-0)
  • Revision ID: launchpad@pqm.canonical.com-20110426210138-j3jm6vik0x9cn0ef
[rs=sinzui][bug=771321] Rename answers/interfaces/questionenums to
 answers/enums.

Show diffs side-by-side

added added

removed removed

Lines of Context:
818
818
Specific views can provide a default filter by returning the default
819
819
search parameters to use in the getDefaultFilter() method:
820
820
 
821
 
    >>> from lp.answers.interfaces.questionenums import QuestionStatus
 
821
    >>> from lp.answers.enums import QuestionStatus
822
822
    >>> MyCustomSearchQuestionsView.default_filter = {
823
823
    ...     'status': [QuestionStatus.SOLVED, QuestionStatus.INVALID],
824
824
    ...     'language' : search_view.user_support_languages}