~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Bryce Harrington
  • Date: 2011-06-30 20:01:25 UTC
  • mto: This revision was merged to the branch mainline in revision 13353.
  • Revision ID: bryce@canonical.com-20110630200125-rpkxch89ti91kamy
Fix typo in message referring to /etc/apt/sources.list

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2010-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
"""Distribution series difference messages."""
20
20
    Datetime,
21
21
    Int,
22
22
    Text,
23
 
    TextLine,
24
23
    )
25
24
 
26
25
from canonical.launchpad import _
57
56
    comment_date = exported(Datetime(
58
57
        title=_('Comment date.'), readonly=True))
59
58
 
60
 
    source_package_name = exported(TextLine(
61
 
        title=_("Source package name"), required=True, readonly=True,
62
 
        description=_(
63
 
            "Name of the source package that this comment is for.")))
64
 
 
65
59
 
66
60
class IDistroSeriesDifferenceCommentSource(Interface):
67
61
    """A utility of this interface can be used to create comments."""
78
72
 
79
73
    def getForDifference(distro_series_difference, id):
80
74
        """Return the `IDistroSeriesDifferenceComment` with the given id."""
81
 
 
82
 
    def getForDistroSeries(distroseries, since=None):
83
 
        """Get comments for `distroseries` (since `since` if given).
84
 
 
85
 
        :param distroseries: The `DistroSeries` to find comments for.
86
 
        :param since: A timestamp.  No comments older than this will be
87
 
            returned.
88
 
        :return: A result set of `DistroSeriesDifferenceComment`s, ordered
89
 
            from oldest to newest.
90
 
        """