~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-12-18 15:13:07 UTC
  • mto: This revision was merged to the branch mainline in revision 14547.
  • Revision ID: curtis.hovey@canonical.com-20111218151307-sdm2gzobt5tplbe0
Moved badges to lp.app.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    'IBugTrackerComponent',
16
16
    'IBugTrackerComponentGroup',
17
17
    'IBugTrackerSet',
18
 
    'IHasExternalBugTracker',
19
18
    'IRemoteBug',
20
19
    'SINGLE_PRODUCT_BUGTRACKERTYPES',
21
20
    ]
61
60
    )
62
61
from zope.schema.interfaces import IObject
63
62
 
64
 
from lp import _
 
63
from canonical.launchpad import _
 
64
from canonical.launchpad.components.apihelpers import patch_reference_property
65
65
from lp.app.validators import LaunchpadValidationError
66
66
from lp.app.validators.name import name_validator
67
67
from lp.services.fields import (
69
69
    StrippedTextLine,
70
70
    URIField,
71
71
    )
72
 
from lp.services.webservice.apihelpers import patch_reference_property
73
72
 
74
73
 
75
74
LOCATION_SCHEMES_ALLOWED = 'http', 'https', 'mailto'
612
611
    IBugTrackerComponent, "component_group", IBugTrackerComponentGroup)
613
612
 
614
613
 
615
 
class IHasExternalBugTracker(Interface):
616
 
    """An object that can have an external bugtracker specified."""
617
 
 
618
 
    def getExternalBugTracker():
619
 
        """Return the external bug tracker used by this bug tracker.
620
 
 
621
 
        If the product uses Launchpad, return None.
622
 
 
623
 
        If the product doesn't have a bug tracker specified, return the
624
 
        project bug tracker instead. If the product doesn't belong to a
625
 
        superproject, or if the superproject doesn't have a bug tracker,
626
 
        return None.
627
 
        """
628
 
 
629
 
 
630
614
class IRemoteBug(Interface):
631
615
    """A remote bug for a given bug tracker."""
632
616