(domain)
return apps
Return a dictionary of {
        <app id>: {
            'name': <app name>,
            'modules': {
                <module id>: {'name': <module name>}
            }
        }
    }
Return a dictionary of {
        <app id>: {
            'name': <app name>,
            'modules': {
                <module id>: {'name': <module name>}
            }
        }
    }
Return a dictionary of { <app id > : { name : <app name > modules : { <module id > : { name : <module name > } } } }
def get_apps_modules_by_id(domain):
    """
    Return a dictionary of {
        <app id>: {
            'name': <app name>,
            'modules': {
                <module id>: {'name': <module name>}
            }
        }
    }
    """
    apps = {}
    for app_id in get_app_ids_in_domain(domain):
        app = get_app(domain, app_id)
        modules = {}
        for module in app.get_modules():
            modules[module.unique_id] = {'name': module.default_name(app)}
        apps[app_id] = {
            'name': app.name,
            'modules': modules
        }
    return apps
def get_apps_modules_by_id ( domain ) : apps = { } for app_id in get_app_ids_in_domain ( domain ) : app = get_app ( domain , app_id ) modules = { } for module in app . get_modules ( ) : modules [ module . unique_id ] = { 'name' : module . default_name ( app ) } apps [ app_id ] = { 'name' : app . name , 'modules' : modules } return apps