~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-22 04:55:30 UTC
  • mfrom: (14577.1.1 testfix)
  • Revision ID: launchpad@pqm.canonical.com-20111222045530-wki9iu6c0ysqqwkx
[r=wgrant][no-qa] Fix test_publisherconfig lpstorm import. Probably a
        silent conflict between megalint and apocalypse.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
 
 
4
# pylint: disable-msg=E0211,E0213
 
5
 
 
6
"""Cache of Binary Package in DistroSeries details interfaces."""
 
7
 
 
8
__metaclass__ = type
 
9
 
 
10
__all__ = [
 
11
    'IDistroSeriesPackageCache',
 
12
    ]
 
13
 
 
14
from zope.interface import (
 
15
    Attribute,
 
16
    Interface,
 
17
    )
 
18
 
 
19
 
 
20
class IDistroSeriesPackageCache(Interface):
 
21
 
 
22
    archive = Attribute("The cache target archive.")
 
23
    distroseries = Attribute("The cache target distroseries.")
 
24
    binarypackagename = Attribute("The binary package name.")
 
25
    fti = Attribute("Full Text Index")
 
26
 
 
27
    name = Attribute("The binary package name as text.")
 
28
    summary = Attribute("A single summary from one of the binary "
 
29
        "packages with this name in this distroseries. The basic "
 
30
        "difficulty here is that two different architectures (or "
 
31
        "DistroArchSeriess) might have binary packages with the "
 
32
        "same name but different summaries and descriptions. We "
 
33
        "can't know which is more important, so we single out "
 
34
        "one at random (well, alphabetically) and call that the "
 
35
        "summary for display purposes.")
 
36
    description = Attribute("A description, as per the summary.")
 
37
    summaries = Attribute("A concatenation of the package "
 
38
        "summaries for this binary package name in this distro series.")
 
39
    descriptions = Attribute("A concatenation of the descriptions "
 
40
        "of the binary packages from this binary package name in the "
 
41
        "distro series.")
 
42
 
 
43