From 031901f20b8aab63d0126121efa40cc08ddcb62c Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 6 Aug 2010 13:34:56 +0200 Subject: owl and csv parsing disabled --- application.rb | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 31d7e4f..42552f1 100755 --- a/application.rb +++ b/application.rb @@ -125,10 +125,10 @@ post '/?' do case request.content_type when /yaml/ dataset.yaml = request.env["rack.input"].read - when /csv/ - dataset.yaml = csv2yaml request.env["rack.input"].read - when "application/rdf+xml" - dataset.yaml = owl2yaml request.env["rack.input"].read + #when /csv/ + #dataset.yaml = csv2yaml request.env["rack.input"].read + #when "application/rdf+xml" + #dataset.yaml = owl2yaml request.env["rack.input"].read else halt 404, "MIME type \"#{request.content_type}\" not supported." end @@ -158,17 +158,6 @@ delete '/:id/?' do end delete '/?' do - -=begin - Dataset.all.each do |d| - begin - File.delete d.file - rescue - LOGGER.error "Cannot delete dataset file '#{d.file}'" - end - #d.destroy! - end -=end Dataset.auto_migrate! response['Content-Type'] = 'text/plain' "All datasets deleted." -- cgit v1.2.3