Error !

TypeError: tuple indices must be integers, not str

%> <a class="home" href="${site.attr('sitePath')}/shop">  </a> // <a href="${site.attr('sitePath')}/shop/cat?id=${str(book['categoryid'])}">${book['categoryname']}</a> // <span>${book['maintitle']}</span> % endif % else: <a class="home" href="${site.attr('sitePath')}/shop">  </a>
/srv/dd-web02/limecms/fribokhandel/fribokhandel01/lib/python2.7/site-packages/Products.ZSQLMethods-2.13.4-py2.7.egg/Shared/DC/ZRDB/Results.py, line 101:
fields=self._class(self._data[index], parent)
templates/default/functions/components, line 21:
// <a href="${site.attr('sitePath')}/shop/cat?id=${str(book['categoryid'])}">${book['categoryname']}</a>
templates/default/freebook_site_template, line 94:
${renderBread(book=site.LimeAPI.map_sqlresult_to_dict_list(booky))}
/srv/dd-web02/limecms/fribokhandel/fribokhandel01/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py, line 899:
callable_(context, *args, **kwargs)
/srv/dd-web02/limecms/fribokhandel/fribokhandel01/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py, line 873:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/srv/dd-web02/limecms/fribokhandel/fribokhandel01/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/runtime.py, line 838:
**_kwargs_for_callable(callable_, data))
/srv/dd-web02/limecms/fribokhandel/fribokhandel01/local/lib/python2.7/site-packages/Mako-1.0.7-py2.7.egg/mako/template.py, line 462:
return runtime._render(self, self.callable_, args, data)
/var/limecms/fribokhandel/fribokhandel01/fribokhandel-inst/Products/LimeTemplate/LimeTemplate.py, line 703:
html = mytemplate.render(object=object, site=site, **extra)