Exemplo n.º 1
0
def export_project(request, group_slug):
    project = get_object_or_404(Project, slug=group_slug)
    read_access_or_403(project, request.user )
    #return exportProject( project )
    if request.method == "POST":
        form = ExportProjectForm( request.POST )
        if form.is_valid():
            return exportProject( project, form.cleaned_data["file_name"])
        else:
            return HttpResponseRedirect(reverse("project_detail",kwargs={'group_slug':project.slug}))
    else:
        form = ExportProjectForm(initial={'file_name':u'project'})
    return render_to_response("projects/project_export_options.html", { "project":project, "form":form }, context_instance=RequestContext(request))
Exemplo n.º 2
0
def export_project(request, group_slug):
    project = get_object_or_404(Project, slug=group_slug)
    read_access_or_403(project, request.user )
    return exportProject( project )
Exemplo n.º 3
0
def export_project(request, group_slug):
    project = get_object_or_404(Project, slug=group_slug)
    read_access_or_403(project, request.user)
    return exportProject(project)