Error !

TypeError: 'Undefined' object has no attribute '__getitem__'

<% marks = object.REQUEST.get('marks', False) attributes['pages'] = attributes['pages'] + 1 %> % if attributes['pages'] % 2 != 0: <div class="page ${ ['right','left'][(attributes['pages']-1)%2] }" data-side="${ attributes['pages'] }" data-template="two-full-filler">
templates/default/product-catalog-two-full, line 1:
<%
/srv/limefivedata/limecms/cantec/cantec01/local/lib/python2.7/site-packages/Mako-1.0.6-py2.7.egg/mako/runtime.py, line 899:
callable_(context, *args, **kwargs)
/srv/limefivedata/limecms/cantec/cantec01/local/lib/python2.7/site-packages/Mako-1.0.6-py2.7.egg/mako/runtime.py, line 873:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/srv/limefivedata/limecms/cantec/cantec01/local/lib/python2.7/site-packages/Mako-1.0.6-py2.7.egg/mako/runtime.py, line 838:
**_kwargs_for_callable(callable_, data))
/srv/limefivedata/limecms/cantec/cantec01/local/lib/python2.7/site-packages/Mako-1.0.6-py2.7.egg/mako/template.py, line 462:
return runtime._render(self, self.callable_, args, data)
/var/limecms/cantec/cantec01/cantec-inst/Products/LimeTemplate/LimeTemplate.py, line 704:
html = mytemplate.render(object=object, site=site, request=self.REQUEST, extra=extra.get('kwargs', None), **extra)