Beispiel #1
0
def diffsingle_get_original_file(request):
    return make_download(
        open(view_helpers.DiffSingleFileMission.OLD_FILE).read(),
        filename=os.path.basename(view_helpers.DiffSingleFileMission.OLD_FILE))
Beispiel #2
0
def patchrecursive_get_patch(request):
    return make_download(
        view_helpers.PatchRecursiveMission.get_patch(),
        filename=view_helpers.PatchRecursiveMission.BASE_NAME + '.patch')
Beispiel #3
0
def patchsingle_get_patch(request):
    return make_download(
        view_helpers.PatchSingleFileMission.get_patch(),
        filename=view_helpers.PatchSingleFileMission.PATCH_FILENAME)
Beispiel #4
0
def diffrecursive_get_original_tarball(request):
    return make_download(view_helpers.DiffRecursiveMission.synthesize_tarball(), filename=view_helpers.DiffRecursiveMission.TARBALL_NAME)
Beispiel #5
0
def diffrecursive_get_original_tarball(request):
    return make_download(
        view_helpers.DiffRecursiveMission.synthesize_tarball(),
        filename=view_helpers.DiffRecursiveMission.TARBALL_NAME)
Beispiel #6
0
def patchsingle_get_patch(request):
    return make_download(view_helpers.PatchSingleFileMission.get_patch(),
                         filename=view_helpers.PatchSingleFileMission.PATCH_FILENAME)
Beispiel #7
0
def diffsingle_get_original_file(request):
    return make_download(open(view_helpers.DiffSingleFileMission.OLD_FILE).read(),
                         filename=os.path.basename(view_helpers.DiffSingleFileMission.OLD_FILE))
Beispiel #8
0
def patchrecursive_get_patch(request):
    return make_download(view_helpers.PatchRecursiveMission.get_patch(), filename=view_helpers.PatchRecursiveMission.BASE_NAME+'.patch')
Beispiel #9
0
def patchsingle_get_patch(request):
    return make_download(controllers.PatchSingleFileMission.get_patch(),
                         filename=controllers.PatchSingleFileMission.PATCH_FILENAME)
Beispiel #10
0
def patchsingle_get_original_file(request):
    return make_download(open(controllers.PatchSingleFileMission.OLD_FILE).read(),
                         filename=os.path.basename(controllers.PatchSingleFileMission.OLD_FILE))
Beispiel #11
0
def patchrecursive_get_patch(request):
    return make_download(controllers.PatchRecursiveMission.get_patch(), filename=controllers.PatchRecursiveMission.BASE_NAME+'.patch')
Beispiel #12
0
def patchrecursive_get_original_tarball(request):
    return make_download(controllers.PatchRecursiveMission.synthesize_tarball(), filename=controllers.PatchRecursiveMission.BASE_NAME+'.tar.gz')