~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-07 05:12:27 UTC
  • mfrom: (13166.1.1 db-stable-merge-again)
  • Revision ID: launchpad@pqm.canonical.com-20110607051227-oyj9lalj97f1rjb6
[r=wgrant][no-qa] Re-merge db-stable at r10651 (no DB changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
431
431
def expose_user_administered_teams_to_js(request, user, context,
432
432
        absoluteURL=absoluteURL):
433
433
    """Make the list of teams the user administers available to JavaScript."""
434
 
    # XXX: Robert Collins workaround multiple calls making this cause timeouts:
435
 
    # see bug 788510.
 
434
    # XXX: Robert Collins workaround multiple calls making this cause
 
435
    # timeouts: see bug 788510.
436
436
    objects = IJSONRequestCache(request).objects
437
437
    if 'administratedTeams' in objects:
438
438
        return
461
461
                    not team.inTeam(bug_supervisor)):
462
462
                    continue
463
463
                info.append({
 
464
                    'has_preferredemail': team.preferredemail is not None,
464
465
                    'link': absoluteURL(team, api_request),
465
466
                    'title': team.title,
466
467
                    'url': canonical_url(team),