Hello Pylons experts,
Suddenly webhelpers pagination has become broken in my app (i.e., this
was working before). As soon as a page requires pagination, I now get
the following error:
GenerationException: url_for could not generate URL. Called with args:
() {'page': 2}
20 <a href="${url(controller='export', action='options',
id='lastsearch')}" class="buttonLink" title="export all search result
Forms; you will be asked to choose a format">export all</a>
21 </div>
22
23 <p id="paginatorPager">${ c.paginator.pager('$link_first
$link_previous $first_item to $last_item of $item_count $link_next
$link_last') }</p>
24
/Users/user/env-2.6-1.0/lib/python2.6/site-packages/Routes-1.12.3-
py2.6.egg/routes/util.py, line 269:
(args, kargs))
/Users/user/env-2.6-1.0/lib/python2.6/site-packages/WebHelpers-0.6.4-
py2.6.egg/webhelpers/paginate.py, line 597:
link_url = url_for(**link_params)
/Users/user/env-2.6-1.0/lib/python2.6/site-packages/WebHelpers-0.6.4-
py2.6.egg/webhelpers/paginate.py, line 703:
_pagerlink(self.last_page, symbol_last) or '',
/Users/user/app/app/templates/derived/form/results.html, line 23:
<p id="paginatorPager">${ c.paginator.pager('$link_first
$link_previous $first_item to $last_item of $item_count $link_next
$link_last') }</p>
I'm quite certain that I have replaced url_for() with url.current()
throughout my code. And I haven't changed form/results.html for a
long time.
Any help would be much appreciated as my app is effectively broken at
this point. Thanks,
Joel
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.