~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Abel Deuring
  • Date: 2011-07-27 16:22:36 UTC
  • mfrom: (13539 devel)
  • mto: This revision was merged to the branch mainline in revision 13587.
  • Revision ID: abel.deuring@canonical.com-20110727162236-m5e4e45257ehq65r
devel merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
    def create(package_name, source_archive,
127
127
               target_archive, target_distroseries, target_pocket,
128
128
               include_binaries=False, package_version=None,
129
 
               copy_policy=PackageCopyPolicy.INSECURE):
 
129
               copy_policy=PackageCopyPolicy.INSECURE, requester=None):
130
130
        """Create a new `IPlainPackageCopyJob`.
131
131
 
132
132
        :param package_name: The name of the source package to copy.
141
141
        :param package_version: The version string for the package version
142
142
            that is to be copied.
143
143
        :param copy_policy: Applicable `PackageCopyPolicy`.
 
144
        :param requester: The user requesting the copy.
144
145
        """
145
146
 
146
 
    def createMultiple(target_distroseries, copy_tasks,
 
147
    def createMultiple(target_distroseries, copy_tasks, requester,
147
148
                       copy_policy=PackageCopyPolicy.INSECURE,
148
149
                       include_binaries=False):
149
150
        """Create multiple new `IPlainPackageCopyJob`s at once.
153
154
        :param copy_tasks: A list of tuples describing the copies to be
154
155
            performed: (package name, package version, source archive,
155
156
            target archive, target pocket).
 
157
        :param requester: The user requesting the copy.
156
158
        :param copy_policy: Applicable `PackageCopyPolicy`.
157
159
        :param include_binaries: As in `do_copy`.
158
160
        :return: An iterable of `PackageCopyJob` ids.