~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/buildmaster/security.py

  • Committer: Steve Kowalik
  • Date: 2011-07-26 23:37:30 UTC
  • mfrom: (13528 devel)
  • mto: This revision was merged to the branch mainline in revision 13536.
  • Revision ID: stevenk@ubuntu.com-20110726233730-mh04vxxvth98z9ps
Merge devel, fixing conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2011 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
 
 
4
"""Security adapters for the buildmaster package."""
 
5
 
 
6
__metaclass__ = type
 
7
__all__ = [
 
8
    'ViewBuilder',
 
9
    ]
 
10
 
 
11
from lp.app.security import AnonymousAuthorization
 
12
from lp.buildmaster.interfaces.builder import (
 
13
    IBuilder,
 
14
    )
 
15
 
 
16
 
 
17
class ViewBuilder(AnonymousAuthorization):
 
18
    """Anyone can view a `IBuilder`."""
 
19
    usedfor = IBuilder