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
|
# Copyright 2009-2011 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""A class for the top-level link to the pillar set."""
__metaclass__ = type
__all__ = [
'IPillarSetLink',
'PillarSetLink',
]
from lazr.restful.interfaces import ITopLevelEntryLink
from zope.interface import implements
from lp.services.webapp.interfaces import ICanonicalUrlData
from lp.registry.interfaces.pillar import IPillarNameSet
class IPillarSetLink(ITopLevelEntryLink, ICanonicalUrlData):
"""A marker interface."""
class PillarSetLink:
"""The top-level link to the pillar set."""
implements(IPillarSetLink)
link_name = 'pillars'
entry_type = IPillarNameSet
inside = None
path = 'pillars'
rootsite = 'api'
|