~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-22 05:56:29 UTC
  • mfrom: (13492.1.1 revert-r13485)
  • Revision ID: launchpad@pqm.canonical.com-20110722055629-0y8ss6zvhjcoo12r
[r=wgrant][rollback=13485] Revert r13485. It prevents form pickers
 from being attached to their text widgets.

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 soyuz module."""
5
 
 
6
 
__metaclass__ = type
7
 
__all__ = [
8
 
    'ViewProcessor',
9
 
    'ViewProcessorFamily',
10
 
    ]
11
 
 
12
 
from lp.app.security import AnonymousAuthorization
13
 
from lp.soyuz.interfaces.processor import (
14
 
    IProcessor,
15
 
    IProcessorFamily,
16
 
    )
17
 
 
18
 
 
19
 
class ViewProcessor(AnonymousAuthorization):
20
 
    """Anyone can view an `IProcessor`."""
21
 
    usedfor = IProcessor
22
 
 
23
 
 
24
 
class ViewProcessorFamily(AnonymousAuthorization):
25
 
    """Anyone can view an `IProcessorFamily`."""
26
 
    usedfor = IProcessorFamily