~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to lib/lpresults/registry/interfaces/series.py

  • Committer: Marc Tardif
  • Date: 2011-08-09 15:46:45 UTC
  • Revision ID: marc.tardif@canonical.com-20110809154645-i151emhk6onjggx5
Added hardware for systems and system units.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
__metaclass__ = type
5
5
 
6
6
__all__ = [
 
7
    "IHasSeries",
7
8
    "ISeries",
8
9
    "ISeriesSet",
9
10
    "ISeriesTarget",
10
 
    "IHasSeries",
11
11
    ]
12
12
 
13
13
from zope.interface import Interface
48
48
class ISeriesSet(ISearchSet):
49
49
 
50
50
    def new(name):
51
 
        """Create a new series."""
 
51
        """Create a new series.
 
52
 
 
53
        :param name: The unique name of the series.
 
54
        """
52
55
 
53
56
    def get(id):
54
 
        """Get a series by its id."""
 
57
        """Get a series by its id.
 
58
 
 
59
        :param id: The identifier of the series.
 
60
        """
55
61
 
56
62
    def getByName(name):
57
 
        """Get a series by name."""
 
63
        """Get a series by name.
 
64
 
 
65
        :param name: The name of the series.
 
66
        """
58
67
 
59
68
 
60
69
class IHasSeries(Interface):
71
80
 
72
81
 
73
82
class ISeriesTarget(IHasSeries):
74
 
    """An entity on which a test run can be created."""
 
83
    """An entity on which a series can be created."""
75
84
 
76
85
    def newSeries(name):
77
86
        """Return a new series.