~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/interfaces/distribution.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-23 18:43:31 UTC
  • mfrom: (13084.2.6 page-match-rewrite-url)
  • Revision ID: launchpad@pqm.canonical.com-20110523184331-dhd2c7cgfuu49epw
[r=sinzui][bug=784273] Adds facility to the PageMatch to handle bad
        URIs

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    )
54
54
 
55
55
from canonical.launchpad import _
 
56
from canonical.launchpad.interfaces.launchpad import (
 
57
    IHasAppointedDriver,
 
58
    IHasDrivers,
 
59
    )
56
60
from lp.answers.interfaces.questiontarget import IQuestionTarget
57
61
from lp.app.errors import NameLookupFailed
58
62
from lp.app.interfaces.headings import IRootContext
81
85
    IHasMilestones,
82
86
    )
83
87
from lp.registry.interfaces.pillar import IPillar
84
 
from lp.registry.interfaces.role import (
85
 
    IHasAppointedDriver,
86
 
    IHasDrivers,
87
 
    IHasOwner,
88
 
    )
 
88
from lp.registry.interfaces.role import IHasOwner
89
89
from lp.services.fields import (
90
90
    Description,
91
91
    IconImageUpload,
157
157
        Summary(
158
158
            title=_("Summary"),
159
159
            description=_(
160
 
                "A short paragraph to introduce the goals and highlights "
 
160
                "A short paragraph to introduce the the goals and highlights "
161
161
                "of the distribution."),
162
162
            required=True))
163
163
    homepage_content = exported(
340
340
                      "on disk."),
341
341
        readonly=True, required=False)
342
342
 
343
 
    has_published_sources = Bool(
344
 
        title=_("Has Published Sources"),
345
 
        description=_("True if this distribution has sources published."),
346
 
        readonly=True, required=False)
347
 
 
348
343
    def getArchiveIDList(archive=None):
349
344
        """Return a list of archive IDs suitable for sqlvalues() or quote().
350
345