~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/browser/translationmessage.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-13 10:49:24 UTC
  • mfrom: (13404.2.3 batchnav)
  • Revision ID: launchpad@pqm.canonical.com-20110713104924-mfbue2x6uo8skz1r
[r=lifeless][bug=809719] Update to lazr.batchnavigator 1.2.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        results is an iterable of results. request is the web request
129
129
        being processed. size is a default batch size which the callsite
130
130
        can choose to provide.
 
131
 
 
132
        Why a custom BatchNavigator is required is a great mystery and
 
133
        should be documented here.
131
134
        """
132
135
        schema, netloc, path, parameters, query, fragment = (
133
136
            urlparse(str(request.URL)))
164
167
 
165
168
        BatchNavigator.__init__(self, results, request, start_value, size)
166
169
 
167
 
    def generateBatchURL(self, batch):
 
170
    def generateBatchURL(self, batch, backwards=False):
168
171
        """Return a custom batch URL for `ITranslationMessage`'s views."""
169
172
        url = ""
170
173
        if batch is None: