respondapp_iter = self.application(environ, detect_start_response)
__call__return self.wrap_app(environ, session_start_response)
__call__response = self.app(environ, start_response)
__call__response = self.dispatch(controller, environ, start_response)
dispatchreturn controller(environ, start_response)
__call__return WSGIController.__call__(self, environ, start_response)
__call__response = self._dispatch_call()
_dispatch_callresponse = self._inspect_call(func)
_inspect_callresult = self._perform_call(func, args)
_perform_callreturn func(**args)
itcreturn render('/derived/browse/itc.html')
render_makocache_type=cache_type, cache_expire=cache_expire)
cached_templatereturn render_func()
render_templatereturn literal(template.render_unicode(**globs))
render_unicodeas_unicode=True)
_render_render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
_render_context_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
_exec_template_render_error(template, context, e)
_render_errorresult = template.error_handler(context, error)
_exec_templatecallable_(context, *args, **kwargs)
render_body__M_writer(escape(next.body()))
<lambda>return lambda *args, **kwargs:callable_(self.context, *args, **kwargs)
render_body__M_writer(escape( c.paginator.pager(format='~2~')))
pagerresult = re.sub(r'~(\d+)~', _range, format)
subreturn _compile(pattern, 0).sub(repl, string, count)
_rangenav_items.append( _pagerlink(thispage, text) )
_pagerlinklink_url = url_for(**link_params)
url_forencoding = config.mapper.encoding
__getattr__return getattr(self.__shared_state, name)
AttributeError: 'thread._local' object has no attribute 'mapper'
No Description Entered
| beaker | 1.5.3 |
| decorator | 3.0.0 |
| formencode | 1.2.2 |
| mako | 0.3.2 |
| nose | 0.11.3 |
| paste | 1.7.2 |
| pastedeploy | 1.3.3 |
| pastescript | 1.7.3 |
| pygments | 0.11.1 |
| pylons | 1.0 |
| routes | 1.12.3 |
| simplejson | 2.0.9 |
| sqlalchemy | 0.5.8 |
| tempita | 0.4 |
| weberror | 0.10.2 |
| webhelpers | 0.6.4 |
| webob | 0.9.8 |
| webtest | 1.2 |
Powered by Pylons - Contact Administrators
Comments (1)
This does not seem to be the first time this problem has cropped up.
http://pylonshq.com/tracebacks/af4b2087ed15e60e70726c05e20c5f83
Basically I’m trying to use the paginate.pager function in one of my templates. I did manage to get this working with pylons 0.9.7. However, now that I have updated to pylons 1.0 it does not seem to work any more. The code seems to fall over as the webhelper paginator.pager function seems to make use of the routes url_for call, which appears to have been deprecated in pylons 1.0.
Does this mean that the webhelper module is out of sync with pylons 1.0 or that my easy_install of pylons 1.0 failed to update the webhelpers module. I currently seem to be running webhelpers 0.6.4.
Any thoughts?
Suggest a fix or tip to help solve this traceback.
You must login before you can comment.