1
# Copyright 2009 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
# pylint: disable-msg=E0211,E0213
6
"""Cache of Binary Package in DistroSeries details interfaces."""
11
'IDistroSeriesPackageCache',
14
from zope.interface import (
20
class IDistroSeriesPackageCache(Interface):
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")
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 "