~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/interfaces/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:
381
381
            ))
382
382
    archive = exported(
383
383
        Reference(
384
 
            Interface, # Really IArchive, see below.
 
384
            # Really IArchive (fixed in _schema_circular_imports.py).
 
385
            Interface,
385
386
            title=_('Archive ID'), required=True, readonly=True,
386
387
            ))
387
388
    supersededby = Int(
478
479
        "if one exists, or None.")
479
480
 
480
481
    ancestor = Reference(
481
 
        Interface, # Really ISourcePackagePublishingHistory
 
482
         # Really ISourcePackagePublishingHistory (fixed in
 
483
         # _schema_circular_imports.py).
 
484
        Interface,
482
485
        title=_('Ancestor'),
483
486
        description=_('The previous release of this source package.'),
484
487
        required=False, readonly=True)
519
522
            `IBinaryPackagePublishingHistory`.
520
523
        """
521
524
 
522
 
    @operation_returns_collection_of(Interface) # Really IBuild, see below.
 
525
    # Really IBuild (fixed in _schema_circular_imports.py)
 
526
    @operation_returns_collection_of(Interface)
523
527
    @export_read_operation()
524
528
    def getBuilds():
525
529
        """Return a list of `IBuild` objects in this publishing context.
688
692
        title=_('The DB id for the binarypackagename.'),
689
693
        required=False, readonly=False)
690
694
    binarypackagename = Attribute('The binary package name being published')
691
 
    binarypackagerelease = Int(
692
 
            title=_('The binary package being published'), required=False,
693
 
            readonly=False)
 
695
    binarypackagereleaseID = Int(
 
696
        title=_('The DB id for the binarypackagerelease.'),
 
697
        required=False, readonly=False)
 
698
    binarypackagerelease = Attribute(
 
699
        "The binary package release being published")
694
700
    distroarchseries = exported(
695
701
        Reference(
696
 
            Interface, #Really IDistroArchSeries, circular import fixed below.
 
702
            # Really IDistroArchSeries (fixed in
 
703
            #_schema_circular_imports.py).
 
704
            Interface,
697
705
            title=_("Distro Arch Series"),
698
706
            description=_('The distroarchseries being published into'),
699
707
            required=False, readonly=False,
779
787
        exported_as="date_removed")
780
788
    archive = exported(
781
789
        Reference(
782
 
            Interface, # Really IArchive, see below.
 
790
            # Really IArchive (fixed in _schema_circular_imports.py).
 
791
            Interface,
783
792
            title=_('Archive'),
784
793
            description=_("The context archive for this publication."),
785
794
            required=True, readonly=True,