(domain, deleted=None)
return [
        _row_to_form_details(r) for r in Application.get_db().view(
            'forms_by_app_info/view',
            startkey=startkey,
            endkey=startkey + [{}],
            reduce=False,
            stale=stale_ok(),
        ).all()
    ]
deleted = None means include all options.
    deleted = True/False will only included deleted/non-deleted apps
deleted = None means include all options.
    deleted = True/False will only included deleted/non-deleted apps
deleted = None means include all options . deleted = True / False will only included deleted / non - deleted apps
def get_all_form_details(domain, deleted=None):
    """
    deleted = None means include all options.
    deleted = True/False will only included deleted/non-deleted apps
    """
    if deleted is None:
        startkey = ["app module form", domain]
    else:
        status = 'deleted' if deleted else 'active'
        startkey = ["status app module form", domain, status]
    return [
        _row_to_form_details(r) for r in Application.get_db().view(
            'forms_by_app_info/view',
            startkey=startkey,
            endkey=startkey + [{}],
            reduce=False,
            stale=stale_ok(),
        ).all()
    ]
def get_all_form_details ( domain , deleted = None ) : if deleted is None : startkey = [ "app module form" , domain ] else : status = 'deleted' if deleted else 'active' startkey = [ "status app module form" , domain , status ] return [ _row_to_form_details ( r ) for r in Application . get_db ( ) . view ( 'forms_by_app_info/view' , startkey = startkey , endkey = startkey + [ { } ] , reduce = False , stale = stale_ok ( ) , ) . all ( ) ]