def view_trash_file(request, repo_id): ret_dict = {} view_history_file_common(request, repo_id, ret_dict) if not request.user_perm: return render_permission_error(request, _(u"Unable to view file")) basedir = request.GET.get("base", "") if not basedir: raise Http404 days = show_delete_days(request) ret_dict["basedir"] = basedir ret_dict["days"] = days # generate file path navigator path = ret_dict["path"] repo = ret_dict["repo"] ret_dict["zipped"] = gen_path_link(path, repo.name) return render_to_response("view_trash_file.html", ret_dict, context_instance=RequestContext(request))
def view_trash_file(request, repo_id): ret_dict = {} view_history_file_common(request, repo_id, ret_dict) if not request.user_perm: return render_permission_error(request, _(u'Unable to view file')) basedir = request.GET.get('base', '') if not basedir: raise Http404 days = show_delete_days(request) ret_dict['basedir'] = basedir ret_dict['days'] = days # generate file path navigator path = ret_dict['path'] repo = ret_dict['repo'] ret_dict['zipped'] = gen_path_link(path, repo.name) return render_to_response('view_trash_file.html', ret_dict, context_instance=RequestContext(request), )