~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/model/structuralsubscription.py

  • Committer: Gavin Panella
  • Date: 2012-01-04 14:50:17 UTC
  • mto: This revision was merged to the branch mainline in revision 14638.
  • Revision ID: gavin.panella@canonical.com-20120104145017-ubrpmowtoa535591
Move circular import up to top of function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
601
601
        level will be excluded.
602
602
    :param exclude: `Person`s to exclude (e.g. direct subscribers).
603
603
    """
 
604
    from lp.registry.model.person import Person  # Circular.
604
605
    filter_id_query = (
605
606
        _get_structural_subscription_filter_id_query(
606
607
            bug, bugtasks, level, exclude))
607
608
    if not filter_id_query:
608
609
        return EmptyResultSet()
609
 
    from lp.registry.model.person import Person  # Circular.
610
610
    source = IStore(StructuralSubscription).using(
611
611
        StructuralSubscription,
612
612
        Join(BugSubscriptionFilter,