diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-07 15:38:33 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-07 15:38:33 +0100 |
commit | d99823f61fc3b2f463bc1a51db0a952c965c2141 (patch) | |
tree | caf259594bc93a7f0eeaf14e217cc9c6a6ff06ae /reach_reports/reach_application.rb | |
parent | 67e72fe916dab5c0ee18e65d4cbc1f3e0ed64b99 (diff) |
add a&a to qmrf reports
Diffstat (limited to 'reach_reports/reach_application.rb')
-rwxr-xr-x | reach_reports/reach_application.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/reach_reports/reach_application.rb b/reach_reports/reach_application.rb index fd77078..969ce8b 100755 --- a/reach_reports/reach_application.rb +++ b/reach_reports/reach_application.rb @@ -65,7 +65,7 @@ post '/reach_report/:type' do LOGGER.info "creating "+type+" report "+params.inspect #puts "creating "+type+" report "+params.inspect - result_uri = ReachReports.create_report(type,params,request.env["rack.input"]) + result_uri = ReachReports.create_report(type,params,@subjectid,request.env["rack.input"]) if result_uri and result_uri.task_uri? halt 202,result_uri+"\n" @@ -123,6 +123,11 @@ post '/reach_report/:type/:id' do #f.puts rep.to_xml end +delete '/reach_report/:type/:id' do + type = extract_type(params) + LOGGER.info "delete "+type+" report with id '"+params[:id].to_s+"'" + ReachReports.delete_report(type, params[:id], @subjectid) +end #get '/reach_report/:type/:id/:section' do |