~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/doc/bugtask-search.txt

  • Committer: Curtis Hovey
  • Date: 2011-12-23 17:05:14 UTC
  • mto: This revision was merged to the branch mainline in revision 14599.
  • Revision ID: curtis.hovey@canonical.com-20111223170514-7ky922u9pfz0wrvy
Moved searchbuilder to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
591
591
Searching for bugs with any of the tags returns both of them.
592
592
 
593
593
    >>> from operator import attrgetter
594
 
    >>> from canonical.launchpad.searchbuilder import all, any
 
594
    >>> from lp.services.searchbuilder import all, any
595
595
 
596
596
    >>> def search_tasks_and_print_bugs(user=None, **args):
597
597
    ...     params = BugTaskSearchParams(user=user, **args)
705
705
 
706
706
    >>> import pytz
707
707
    >>> from datetime import datetime, timedelta
708
 
    >>> from canonical.launchpad.searchbuilder import greater_than
 
708
    >>> from lp.services.searchbuilder import greater_than
709
709
    >>> product = factory.makeProduct()
710
710
    >>> utc_now = datetime(2008, 9, 4, 12, 0, 0, tzinfo=pytz.timezone('UTC'))
711
711
    >>> not_closed_bug = factory.makeBug(product=product, title="Not closed")