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