~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-09-14 01:25:40 UTC
  • Revision ID: marc.tardif@canonical.com-20110914012540-1gs255vhv6kb0mg4
Added updating of submissions periodically.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    ISearchSet,
31
31
    SearchParams,
32
32
    )
33
 
from lpresults.services.validators import name_validator
 
33
from lpresults.registry.validators import name_validator
34
34
 
35
35
 
36
36
class ISeries(IDjangoLocation):
47
47
 
48
48
class ISeriesSet(ISearchSet):
49
49
 
50
 
    def new(name):
51
 
        """Create a new series.
52
 
 
53
 
        :param name: The unique name of the series.
54
 
        """
55
 
 
56
50
    def get(id):
57
51
        """Get a series by its id.
58
52
 
82
76
class ISeriesTarget(IHasSeries):
83
77
    """An entity on which a series can be created."""
84
78
 
85
 
    def newSeries(name):
86
 
        """Return a new series.
87
 
 
88
 
        :param name: The unique name of this series.
89
 
        """
90
 
 
91
79
    @operation_parameters(
92
80
        name=TextLine(
93
81
            title=u"Name",