~launchpad-pqm/launchpad/devel

7675.1052.4 by Curtis Hovey
Add basic view to show feature flag changes.
1
# Copyright 2011 Canonical Ltd.  This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
7675.1052.13 by Curtis Hovey
Fixed spelling.
4
"""Classes to view FeatureFlagChange."""
7675.1052.4 by Curtis Hovey
Add basic view to show feature flag changes.
5
6
__all__ = [
7
    'ChangeLog',
8
    ]
9
10
__metaclass__ = type
11
14600.2.2 by Curtis Hovey
Moved webapp to lp.services.
12
from lp.services.webapp.batching import BatchNavigator
13
from lp.services.webapp.publisher import LaunchpadView
7675.1052.4 by Curtis Hovey
Add basic view to show feature flag changes.
14
from lp.services.features.changelog import ChangeLog
15
16
17
class FeatureChangeLogView(LaunchpadView):
18
19
    page_title = label = 'Feature flag changelog'
20
21
    @property
22
    def changes(self):
23
        navigator = BatchNavigator(ChangeLog.get(), self.request, size=10)
24
        navigator.setHeadings('change', 'changes')
25
        return navigator