8687.15.17
by Karl Fogel
Add the copyright header block to the rest of the files under lib/lp/. |
1 |
# Copyright 2009 Canonical Ltd. This software is licensed under the
|
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
2705
by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving. |
3 |
|
4 |
__metaclass__ = type |
|
5 |
||
6 |
__all__ = [ |
|
4285.2.1
by Mark Shuttleworth
Massive renaming of distrorelease to distroseries |
7 |
'DistroArchSeriesBinaryPackageNavigation', |
8 |
'DistroArchSeriesBinaryPackageView', |
|
2705
by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving. |
9 |
]
|
10 |
||
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
11 |
from canonical.launchpad.webapp import ( |
12 |
ApplicationMenu, |
|
13 |
GetitemNavigation, |
|
14 |
)
|
|
9310.1.2
by Julian Edwards
Add distroarchseriesbinarypackage breadcrumbs |
15 |
from canonical.launchpad.webapp.breadcrumb import Breadcrumb |
9297.1.9
by Julian Edwards
Noodles review suggestions |
16 |
from canonical.lazr.utils import smartquote |
11403.1.4
by Henning Eggers
Reformatted imports using format-imports script r32. |
17 |
from lp.soyuz.interfaces.distroarchseriesbinarypackage import ( |
18 |
IDistroArchSeriesBinaryPackage, |
|
19 |
)
|
|
9310.1.2
by Julian Edwards
Add distroarchseriesbinarypackage breadcrumbs |
20 |
|
21 |
||
4285.2.1
by Mark Shuttleworth
Massive renaming of distrorelease to distroseries |
22 |
class DistroArchSeriesBinaryPackageOverviewMenu(ApplicationMenu): |
2705
by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving. |
23 |
|
4285.2.1
by Mark Shuttleworth
Massive renaming of distrorelease to distroseries |
24 |
usedfor = IDistroArchSeriesBinaryPackage |
2705
by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving. |
25 |
facet = 'overview' |
26 |
links = [] |
|
27 |
||
28 |
||
4285.2.1
by Mark Shuttleworth
Massive renaming of distrorelease to distroseries |
29 |
class DistroArchSeriesBinaryPackageNavigation(GetitemNavigation): |
2705
by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving. |
30 |
|
4285.2.1
by Mark Shuttleworth
Massive renaming of distrorelease to distroseries |
31 |
usedfor = IDistroArchSeriesBinaryPackage |
2705
by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving. |
32 |
|
33 |
||
4285.2.1
by Mark Shuttleworth
Massive renaming of distrorelease to distroseries |
34 |
class DistroArchSeriesBinaryPackageView: |
2705
by Canonical.com Patch Queue Manager
r=spiv, mark's soyuz loving. |
35 |
|
36 |
def __init__(self, context, request): |
|
37 |
self.context = context |
|
38 |
self.request = request |
|
39 |
||
9297.1.9
by Julian Edwards
Noodles review suggestions |
40 |
@property
|
41 |
def page_title(self): |
|
42 |
return smartquote(self.context.title) |