~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=benji][bug=795573,
 796233] On DistroSeries:+localpackagediffs ensure that the comment
 form is hidden after adding a new comment to a DistroSeriesDifference,
 prevent empty comments from being submitted,
 and add some animations and effects to make the UI less jarring and easier to
 follow.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
               target_archive, target_distroseries, target_pocket,
91
91
               include_binaries=False, package_version=None,
92
92
               copy_policy=PackageCopyPolicy.INSECURE):
93
 
        """Create a new `IPackageCopyJob`.
 
93
        """Create a new `IPlainPackageCopyJob`.
94
94
 
95
95
        :param package_name: The name of the source package to copy.
96
96
        :param source_archive: The `IArchive` in which `source_packages` are
106
106
        :param copy_policy: Applicable `PackageCopyPolicy`.
107
107
        """
108
108
 
 
109
    def createMultiple(target_distroseries, copy_tasks,
 
110
                       copy_policy=PackageCopyPolicy.INSECURE,
 
111
                       include_binaries=False):
 
112
        """Create multiple new `IPlainPackageCopyJob`s at once.
 
113
 
 
114
        :param target_distroseries: The `IDistroSeries` to which to copy the
 
115
            packages.
 
116
        :param copy_tasks: A list of tuples describing the copies to be
 
117
            performed: (package name, package version, source archive,
 
118
            target archive, target pocket).
 
119
        :param copy_policy: Applicable `PackageCopyPolicy`.
 
120
        :param include_binaries: As in `do_copy`.
 
121
        :return: An iterable of `PackageCopyJob` ids.
 
122
        """
 
123
 
109
124
    def getActiveJobs(target_archive):
110
125
        """Retrieve all active sync jobs for an archive."""
111
126