'Returns a list of available channels: if only one is available,
redirects directly to its slides'

@http.route('/slides', type='http', auth='public', website=True)
def slides_index(self, *args, **post):

    channels = request.env['slide.channel'].search([], order='sequence,    id')
    if (not channels):
        return request.render('website_slides.channel_not_found')
    elif (len(channels) == 1):
        return request.redirect(('/slides/%s' % channels.id))
    return request.render('website_slides.channels', {'channels': channels, 'user': request.env.user, 'is_public_user': (request.env.user == request.website.user_id)})
