13387.1.12
by Francis J. Lacoste
Export getBuildersForQueue. |
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 |