'Return plugin configuration in advanced form'

def process_config(self, config):

    if isinstance(config, str):
        config = {u'path': config}
    if (not isinstance(config, dict)):
        config = {}
    if (not config.get(u'path')):
        config[u'require_path'] = True
    config.setdefault(u'fail_html', True)
    return config
