~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/interfaces/packagecopyjob.py

  • Committer: Curtis Hovey
  • Date: 2011-08-21 14:21:06 UTC
  • mto: This revision was merged to the branch mainline in revision 13745.
  • Revision ID: curtis.hovey@canonical.com-20110821142106-x93hajd6iguma8gx
Update test that was enforcing bad grammar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
from canonical.launchpad import _
32
32
from lp.registry.interfaces.distroseries import IDistroSeries
33
 
from lp.registry.interfaces.person import IPerson
34
33
from lp.services.job.interfaces.job import (
35
34
    IJob,
36
35
    IJobSource,
127
126
    def create(package_name, source_archive,
128
127
               target_archive, target_distroseries, target_pocket,
129
128
               include_binaries=False, package_version=None,
130
 
               copy_policy=PackageCopyPolicy.INSECURE, requester=None,
131
 
               sponsored=None):
 
129
               copy_policy=PackageCopyPolicy.INSECURE, requester=None):
132
130
        """Create a new `IPlainPackageCopyJob`.
133
131
 
134
132
        :param package_name: The name of the source package to copy.
144
142
            that is to be copied.
145
143
        :param copy_policy: Applicable `PackageCopyPolicy`.
146
144
        :param requester: The user requesting the copy.
147
 
        :param sponsored: The user who is being sponsored to make the copy.
148
 
            The person who is making this request then becomes the sponsor.
149
145
        """
150
146
 
151
147
    def createMultiple(target_distroseries, copy_tasks, requester,
194
190
        title=_("Copy binaries"),
195
191
        required=False, readonly=True)
196
192
 
197
 
    sponsored = Reference(
198
 
        schema=IPerson, title=_('Sponsored Person'),
199
 
        required=False, readonly=True)
200
 
 
201
193
    def addSourceOverride(override):
202
194
        """Add an `ISourceOverride` to the metadata."""
203
195