(request, domain, app_id)
return response
See ApplicationBase.create_jadjar_from_build_files
See ApplicationBase.create_jadjar_from_build_files
See ApplicationBase . create_jadjar_from_build_files
def download_jad(request, domain, app_id):
    """
    See ApplicationBase.create_jadjar_from_build_files

    """
    app = request.app
    if not app.copy_of:
        app.set_media_versions()
    jad, _ = app.create_jadjar_from_build_files()
    try:
        response = HttpResponse(jad)
    except Exception:
        messages.error(request, BAD_BUILD_MESSAGE)
        return back_to_main(request, domain, app_id=app_id)
    set_file_download(response, "CommCare.jad")
    response["Content-Type"] = "text/vnd.sun.j2me.app-descriptor"
    response["Content-Length"] = len(jad)
    return response
def download_jad ( request , domain , app_id ) : app = request . app if not app . copy_of : app . set_media_versions ( ) jad , _ = app . create_jadjar_from_build_files ( ) try : response = HttpResponse ( jad ) except Exception : messages . error ( request , BAD_BUILD_MESSAGE ) return back_to_main ( request , domain , app_id = app_id ) set_file_download ( response , "CommCare.jad" ) response [ "Content-Type" ] = "text/vnd.sun.j2me.app-descriptor" response [ "Content-Length" ] = len ( jad ) return response