def redirect(self, view_name):
return lambda x, y: self.context._load_view(view_name)<EOL>
Function used for view switching.
Use it to get the callback in an event handler declaration.
``self.on('click', self.redirect('myview'), '#' + mybtn.id)``

:param view_name: Target view
:returns: View loader callback