~wgrant/launchpad/bugs-stormrangefactory

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/bugtask.py

  • Committer: William Grant
  • Date: 2012-02-14 05:37:07 UTC
  • Revision ID: william.grant@canonical.com-20120214053707-1imq9ftc6ddonfes
Initial mostly working attempt at StormRangeFactory for bug listings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
    check_permission,
279
279
    precache_permission_for_objects,
280
280
    )
281
 
from lp.services.webapp.batching import TableBatchNavigator
 
281
from lp.services.webapp.batching import (
 
282
    StormRangeFactory,
 
283
    TableBatchNavigator,
 
284
    )
282
285
from lp.services.webapp.breadcrumb import Breadcrumb
283
286
from lp.services.webapp.interfaces import ILaunchBag
284
287
from lp.services.webapp.menu import structured
2269
2272
        self.field_visibility = None
2270
2273
        self._setFieldVisibility()
2271
2274
        TableBatchNavigator.__init__(
2272
 
            self, tasks, request, columns_to_show=columns_to_show, size=size)
 
2275
            self, tasks, request, columns_to_show=columns_to_show,
 
2276
            range_factory=StormRangeFactory(tasks))
2273
2277
 
2274
2278
    @cachedproperty
2275
2279
    def bug_badge_properties(self):