ref: refs/heads/master
commit 40278e6a3b76b6c407b1f8384cd4bf2c4b52d6d6
Author: Stefan Schubert
Date: Thu Jul 16 11:22:18 2009 +0200
only logging
---
.../status/app/controllers/status_controller.rb | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/plugins/status/app/controllers/status_controller.rb b/plugins/status/app/controllers/status_controller.rb
index 6eec8e5..77b05a4 100644
--- a/plugins/status/app/controllers/status_controller.rb
+++ b/plugins/status/app/controllers/status_controller.rb
@@ -48,6 +48,7 @@ class StatusController < ApplicationController
from = till - 300 #last 5 minutes
status = @client.find(:dummy_param, :params => { :start => from.strftime("%H:%M,%m/%d/%Y"), :stop => till.strftime("%H:%M,%m/%d/%Y") })
+
rescue ActiveResource::ClientError => e
flash[:error] = YaST::ServiceResource.error(e)
return false
@@ -129,7 +130,16 @@ class StatusController < ApplicationController
return unless client_permissions
create_data()
- @new_limits = @client.new()
+ @new_limits = @client.find()
+
+#puts "xxxxxxxxxxxxxxxx #{status.to_param.inspect}"
+#puts "xxxxxxxxxxxxxxxx #{status.to_xml}"
+#puts "yyyyxxxxxxxxxxxxxxxx #{Hash.from_xml(status.to_xml).inspect}"
+
+#test = @client.new()
+#test.load(Hash.from_xml(status.to_xml))
+
+#puts "sssssssssssssssss #{test.inspect}"
success = true
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org