(domain, current_app_id=None, current_module_id=None, app_doc_types=('Application',))
return [
        {
            'app_id': app.id,
            'name': app.name,
            'is_current': app.id == current_app_id,
            'modules': [{
                'module_id': module.id,
                'name': clean_trans(module.name, app.langs),
                'is_current': module.unique_id == current_module_id,
            } for module in app.modules]
        }
        for app in get_apps_in_domain(domain)
        # No linked, deleted or remote apps. (Use app.doc_type not
        # app.get_doc_type() so that the suffix isn't dropped.)
        if app.doc_type in app_doc_types
    ]
Returns a domain's Applications and their modules.

    If current_app_id and current_module_id are given, "is_current" is
    set to True for them. The interface uses this to select the current
    app and module by default.

    Linked and remote apps are omitted. Use the app_doc_types parameter
    to change this behaviour. (Deleted apps are not returned because the
    underlying Couch view doesn't include them.)
Returns a domain's Applications and their modules.
Returns a domain s Applications and their modules .
def get_apps_modules(domain, current_app_id=None, current_module_id=None, app_doc_types=('Application',)):
    """
    Returns a domain's Applications and their modules.

    If current_app_id and current_module_id are given, "is_current" is
    set to True for them. The interface uses this to select the current
    app and module by default.

    Linked and remote apps are omitted. Use the app_doc_types parameter
    to change this behaviour. (Deleted apps are not returned because the
    underlying Couch view doesn't include them.)
    """
    return [
        {
            'app_id': app.id,
            'name': app.name,
            'is_current': app.id == current_app_id,
            'modules': [{
                'module_id': module.id,
                'name': clean_trans(module.name, app.langs),
                'is_current': module.unique_id == current_module_id,
            } for module in app.modules]
        }
        for app in get_apps_in_domain(domain)
        # No linked, deleted or remote apps. (Use app.doc_type not
        # app.get_doc_type() so that the suffix isn't dropped.)
        if app.doc_type in app_doc_types
    ]
def get_apps_modules ( domain , current_app_id = None , current_module_id = None , app_doc_types = ( 'Application' , ) ) : return [ { 'app_id' : app . id , 'name' : app . name , 'is_current' : app . id == current_app_id , 'modules' : [ { 'module_id' : module . id , 'name' : clean_trans ( module . name , app . langs ) , 'is_current' : module . unique_id == current_module_id , } for module in app . modules ] } for app in get_apps_in_domain ( domain ) # No linked, deleted or remote apps. (Use app.doc_type not # app.get_doc_type() so that the suffix isn't dropped.) if app . doc_type in app_doc_types ]