Turbogears2 migration: API calls

Mads Kiilerich mads at kiilerich.com
Mon Aug 22 18:55:31 UTC 2016


On 07/30/2016 10:01 PM, Thomas De Schampheleire wrote:
> line 119, in __call__
>      response = self._perform_call(context)
>    File "/home/tdescham/repo/contrib/kallithea/venv/kallithea-tg-clean/lib/python2.7/site-packages/tg/controllers/dispatcher.py",
> line 99, in _perform_call
>      state = self._get_dispatchable(context, py_request.quoted_path_info)
>    File "/home/tdescham/repo/contrib/kallithea/venv/kallithea-tg-clean/lib/python2.7/site-packages/tg/controllers/dispatcher.py",
> line 73, in _get_dispatchable
>      state = state.resolve()
>    File "/home/tdescham/repo/contrib/kallithea/venv/kallithea-tg-clean/lib/python2.7/site-packages/crank/dispatchstate.py",
> line 178, in resolve
>      return self._root_dispatcher._dispatch(self, self._path)
>    File "/home/tdescham/repo/contrib/kallithea/venv/kallithea-tg-clean/lib/python2.7/site-packages/tgext/routes/dispatch.py",
> line 146, in _dispatch
>      action = getattr(controller, action_name)
> AttributeError: 'ApiController' object has no attribute 'index'
>
>
> So the routing tries to access an index method.

This reminds me of 
https://kallithea-scm.org/repos/kallithea/changeset/1fdff0d0516c ... but 
it doesn't seem to be directly related, only in spirit.

/Mads




More information about the kallithea-general mailing list