def init_addon(app, addon_name, routes=True):
 import_path = 'website.addons.{0}'.format(addon_name)
 addon_module = importlib.import_module(import_path)
 data = vars(addon_module)
 data['description'] = settings.ADDONS_DESCRIPTION.get(addon_name, '')
 data['url'] = settings.ADDONS_URL.get(addon_name, None)
 return AddonConfig(**{key.lower(): value for (key, value) in data.iteritems()})

def init_addon ( app , addon_name , routes = True ) : import_path = 'website.addons.{0}' . format ( addon_name ) addon_module = importlib . import_module ( import_path ) data = vars ( addon_module ) data [ 'description' ] = settings . ADDONS_DESCRIPTION . get ( addon_name , '' ) data [ 'url' ] = settings . ADDONS_URL . get ( addon_name , None ) return AddonConfig ( ** { key . lower ( ) : value for ( key , value ) in data . iteritems ( ) } )
load addon module return its create configuration object .