~launchpad-pqm/launchpad/devel

11138.2.1 by James Westby
Work towards having a blueprint model that is safe to export.
1
# Copyright 2010 Canonical Ltd.  This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
4
"""Specification views."""
5
6
__metaclass__ = type
7
8
__all__ = [
9
    'TargetAlreadyHasSpecification',
10
    ]
11
12
13
class TargetAlreadyHasSpecification(Exception):
14
    """The ISpecificationTarget already has a specification of that name."""
15
16
    def __init__(self, target, name):
17
        msg = "The target %s already has a specification named %s" % (
18
                target, name)
19
        super(TargetAlreadyHasSpecification, self).__init__(msg)