Ejemplo n.º 1
0
def yafowil_resource_directive(_context):
    """Register plugin resource directories as plone resource directories
    to be accessible via browser URL.
    """
    for plugin_name in get_plugin_names():
        resources = factory.resources_for(plugin_name)
        if not resources:
            continue
        resourceDirectory(_context, plugin_name, resources['resourcedir'])
Ejemplo n.º 2
0
def yafowil_resource_directive(_context):
    for plugin_name in get_plugin_names():
        resources = factory.resources_for(plugin_name)
        if not resources:
            continue
        resourceDirectory(_context, plugin_name, resources['resourcedir'])