~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/interfaces/hasbug.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-15 10:35:32 UTC
  • mfrom: (14517.1.3 new-bzr)
  • Revision ID: launchpad@pqm.canonical.com-20111215103532-q2m4uyk0r8ugiayx
[r=sinzui, poolie][bug=509016] Always load foreign plugins,
 but restrict probers to avoid accidentally opening foreign branches.
 (re-land)

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
 
"""Interfaces related to bugs."""
5
 
 
6
 
__metaclass__ = type
7
 
 
8
 
__all__ = [
9
 
    'IHasBug',
10
 
    ]
11
 
 
12
 
 
13
 
from zope.interface import Interface
14
 
from zope.schema import Int
15
 
 
16
 
from canonical.launchpad import _
17
 
 
18
 
 
19
 
class IHasBug(Interface):
20
 
    """An object linked to a bug, e.g., a bugtask or a bug branch."""
21
 
 
22
 
    bug = Int(title=_("Bug #"))