'Load all addons from addons path containing static files and
controllers and configure them.'

def load_addons(self):

    statics = {}
    for addons_path in odoo.modules.module.ad_paths:
        for module in sorted(os.listdir(str(addons_path))):
            if (module not in addons_module):
                mod_path = opj(addons_path, module)
                manifest_path = module_manifest(mod_path)
                path_static = opj(addons_path, module, 'static')
                if (manifest_path and os.path.isdir(path_static)):
                    manifest = ast.literal_eval(open(manifest_path).read())
                    if (not manifest.get('installable', True)):
                        continue
                    manifest['addons_path'] = addons_path
                    _logger.debug('Loading    %s', module)
                    if ('odoo.addons' in sys.modules):
                        m = __import__(('odoo.addons.' + module))
                    else:
                        m = None
                    addons_module[module] = m
                    addons_manifest[module] = manifest
                    statics[('/%s/static' % module)] = path_static
    if statics:
        _logger.info('HTTP    Configuring    static    files')
    app = werkzeug.wsgi.SharedDataMiddleware(self.dispatch, statics, cache_timeout=STATIC_CACHE)
    self.dispatch = DisableCacheMiddleware(app)
