Adapt a channel to include token of the logged user.

        Ignore default channels.

def parse_token_channel(self, channel, token):
        """
        Adapt a channel to include token of the logged user.

        Ignore default channels.
        """
        if (token and channel not in self.DEFAULT_CHANNELS and
                channel != 'defaults'):
            url_parts = channel.split('/')
            start = url_parts[:-1]
            middle = 't/{0}'.format(token)
            end = url_parts[-1]
            token_channel = '{0}/{1}/{2}'.format('/'.join(start), middle, end)
            return token_channel
        else:
            return channel