summaryrefslogtreecommitdiff
path: root/lib/task.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-05-06 11:32:05 +0200
committermguetlein <martin.guetlein@gmail.com>2010-05-06 11:32:05 +0200
commit9e356d0d94ea4fe210ea7cefce5d4c1179cb63cd (patch)
tree486bd97d9e968c56c755dfa69331a8cabc70895f /lib/task.rb
parent8439bb9b337bded4a54018c03500a15082bce6b0 (diff)
major change: using literal datatypes in owl
Diffstat (limited to 'lib/task.rb')
-rw-r--r--lib/task.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/task.rb b/lib/task.rb
index b686d24..9cfba88 100644
--- a/lib/task.rb
+++ b/lib/task.rb
@@ -10,7 +10,7 @@ module OpenTox
class Task
# due_to_time is only set in local tasks
- TASK_ATTRIBS = [ :uri, :date, :title, :creator, :title, :description, :hasStatus, :percentageCompleted, :resultURI, :due_to_time ]
+ TASK_ATTRIBS = [ :uri, :date, :title, :creator, :description, :hasStatus, :percentageCompleted, :resultURI, :due_to_time ]
TASK_ATTRIBS.each{ |a| attr_accessor(a) }
attr_accessor :http_code
@@ -134,7 +134,6 @@ module OpenTox
rescue => ex
RestClientWrapper.raise_uri_error(ex.message, @uri)
end
-
end
# returns the task uri
@@ -161,6 +160,7 @@ module OpenTox
task.completed(result)
rescue => ex
LOGGER.error "task failed: "+ex.message
+ #LOGGER.error ": "+ex.backtrace.join("\n")
task.error(ex.message)
end
end