~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-17 14:05:32 UTC
  • mfrom: (13023.5.5 bug-777783)
  • Revision ID: launchpad@pqm.canonical.com-20110517140532-ir14h0t3r5v8sjmr
[r=adeuring][bug=777783] Subscriptions to Project Groups will now
        show up on the +subscriptions page for each group's sub-projects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
        self.target_parent = target.project
273
273
        self.target_arguments = {"product": target}
274
274
        self.pillar = target
275
 
        self.join = (StructuralSubscription.product == target)
 
275
        if target.project is not None:
 
276
            self.join = Or(
 
277
                StructuralSubscription.product == target,
 
278
                StructuralSubscription.project == target.project)
 
279
        else:
 
280
            self.join = (
 
281
                StructuralSubscription.product == target)
276
282
 
277
283
 
278
284
class ProductSeriesTargetHelper: