Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> jr_ntp : format xml for better testing
  • From: Jiri Suchomel <jsuchome@xxxxxxx>
  • Date: Wed, 16 Sep 2009 13:39:37 +0200
  • Message-id: <E1MpkqT-00058I-FL@xxxxxxxxxxxxxxxx>
ref: refs/heads/jr_ntp
commit 67d0ca08d3f95a60bd442180f6f567ea63153d0f
Author: Jiri Suchomel <jsuchome@xxxxxxx>
Date: Wed Sep 16 13:39:37 2009 +0200

format xml for better testing
---
.../app/controllers/administrator_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/administrator/app/controllers/administrator_controller.rb
b/plugins/administrator/app/controllers/administrator_controller.rb
index be54d65..5a06f0a 100644
--- a/plugins/administrator/app/controllers/administrator_controller.rb
+++ b/plugins/administrator/app/controllers/administrator_controller.rb
@@ -14,7 +14,7 @@ class AdministratorController < ApplicationController

respond_to do |format|
format.html { render :xml => @admin.to_xml(:root => "administrator"),
:location => "none" } #return xml only
- format.xml { render :xml => @admin.to_xml(:root => "administrator"),
:location => "none" }
+ format.xml { render :xml => @admin.to_xml(:root => "administrator",
:indent=>2), :location => "none" }
format.json { render :json => @admin.to_json, :location => "none" }
end
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >