l.a.d.GeneralizedPublication : class documentation

Part of lp.archivepublisher.domination View In Hierarchy

Generalize handling of publication records.

This allows us to write code that can be dealing with either
`SourcePackagePublishingHistory`s or `BinaryPackagePublishingHistory`s
without caring which.  Differences are abstracted away in a traits
class.
Method __init__ Undocumented
Method getPackageName Get the package's name.
Method getPackageVersion Obtain the version string for a publication record.
Method compare Compare publications by version.
Method sortPublications Sort publications from most to least current versions.
def __init__(self, is_source=True):
Undocumented
def getPackageName(self, pub):
Get the package's name.
def getPackageVersion(self, pub):
Obtain the version string for a publication record.
def compare(self, pub1, pub2):
Compare publications by version.

If both publications are for the same version, their creation dates break the tie.

def sortPublications(self, publications):
Sort publications from most to least current versions.
API Documentation for Launchpad, generated by pydoctor at 2018-11-19 00:00:14.