'Poll a Channel for New Messages'

def poll(self, tablename, channel_id):

    channel_type = tablename.split('_', 2)[1]
    function_name = ('poll_%s' % channel_type)
    try:
        fn = getattr(S3Msg, function_name)
    except:
        error = ('Unsupported    Channel:    %s' % channel_type)
        current.log.error(error)
        return error
    result = fn(channel_id)
    return result
