~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/model/publishing.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-26 15:32:36 UTC
  • mfrom: (14017.3.5 post-857155)
  • Revision ID: launchpad@pqm.canonical.com-20110926153236-pdldzk96qfb71z51
[r=allenap][bug=857155] Bit more optimization and a renaming for Gina
 domination.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
from lp.soyuz.scripts.changeoverride import ArchiveOverriderError
115
115
 
116
116
 
117
 
# XXX cprov 2006-08-18: move it away, perhaps archivepublisher/pool.py
118
 
 
119
117
def makePoolPath(source_name, component_name):
 
118
    # XXX cprov 2006-08-18: move it away, perhaps archivepublisher/pool.py
120
119
    """Return the pool path for a given source name and component name."""
121
120
    from lp.archivepublisher.diskpool import poolify
122
121
    return os.path.join(
421
420
    """A source package release publishing record."""
422
421
    implements(ISourcePackagePublishingHistory)
423
422
 
424
 
    sourcepackagename = ForeignKey(foreignKey='SourcePackageName',
425
 
        dbName='sourcepackagename')
426
 
    sourcepackagerelease = ForeignKey(foreignKey='SourcePackageRelease',
427
 
        dbName='sourcepackagerelease')
428
 
    distroseries = ForeignKey(foreignKey='DistroSeries',
429
 
        dbName='distroseries')
 
423
    sourcepackagename = ForeignKey(
 
424
        foreignKey='SourcePackageName', dbName='sourcepackagename')
 
425
    sourcepackagerelease = ForeignKey(
 
426
        foreignKey='SourcePackageRelease', dbName='sourcepackagerelease')
 
427
    distroseries = ForeignKey(
 
428
        foreignKey='DistroSeries', dbName='distroseries')
430
429
    component = ForeignKey(foreignKey='Component', dbName='component')
431
430
    section = ForeignKey(foreignKey='Section', dbName='section')
432
431
    status = EnumCol(schema=PackagePublishingStatus)
688
687
        return self.distroseries.distribution.getSourcePackageRelease(
689
688
            self.supersededby)
690
689
 
691
 
    # XXX: StevenK 2011-09-13 bug=848563: This can die when 
 
690
    # XXX: StevenK 2011-09-13 bug=848563: This can die when
692
691
    # self.sourcepackagename is populated.
693
692
    @property
694
693
    def source_package_name(self):
912
911
 
913
912
    implements(IBinaryPackagePublishingHistory)
914
913
 
915
 
    binarypackagename = ForeignKey(foreignKey='BinaryPackageName',
916
 
        dbName='binarypackagename')
917
 
    binarypackagerelease = ForeignKey(foreignKey='BinaryPackageRelease',
918
 
                                      dbName='binarypackagerelease')
919
 
    distroarchseries = ForeignKey(foreignKey='DistroArchSeries',
920
 
                                   dbName='distroarchseries')
 
914
    binarypackagename = ForeignKey(
 
915
        foreignKey='BinaryPackageName', dbName='binarypackagename')
 
916
    binarypackagerelease = ForeignKey(
 
917
        foreignKey='BinaryPackageRelease', dbName='binarypackagerelease')
 
918
    distroarchseries = ForeignKey(
 
919
        foreignKey='DistroArchSeries', dbName='distroarchseries')
921
920
    component = ForeignKey(foreignKey='Component', dbName='component')
922
921
    section = ForeignKey(foreignKey='Section', dbName='section')
923
922
    priority = EnumCol(dbName='priority', schema=PackagePublishingPriority)
961
960
        """See `IBinaryPackagePublishingHistory`"""
962
961
        return self.distroarchseries.distroseries
963
962
 
964
 
    # XXX: StevenK 2011-09-13 bug=848563: This can die when 
 
963
    # XXX: StevenK 2011-09-13 bug=848563: This can die when
965
964
    # self.binarypackagename is populated.
966
965
    @property
967
966
    def binary_package_name(self):