ref: refs/heads/master
commit 0876226dabaed651bd278683fbf8802ea19e28e5
Author: Jiri Suchomel
Date: Wed Sep 16 10:25:37 2009 +0200
format xml for better testing
---
plugins/administrator/app/models/administrator.rb | 2 +-
.../app/controllers/services_controller.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/administrator/app/models/administrator.rb b/plugins/administrator/app/models/administrator.rb
index abda993..3bc16f9 100644
--- a/plugins/administrator/app/models/administrator.rb
+++ b/plugins/administrator/app/models/administrator.rb
@@ -53,7 +53,7 @@ class Administrator
xml.administrator do
xml.password password
- xml.aliases aliases
+ xml.aliases aliases, {:type => "string"}
end
end
diff --git a/plugins/services/app/controllers/services_controller.rb b/plugins/services/app/controllers/services_controller.rb
index bdeca73..8d0103c 100644
--- a/plugins/services/app/controllers/services_controller.rb
+++ b/plugins/services/app/controllers/services_controller.rb
@@ -31,7 +31,7 @@ class ServicesController < ApplicationController
respond_to do |format|
format.html { render :xml => @service.to_xml(:root => 'service', :dasherize => false), :location => "none" } #return xml only
- format.xml { render :xml => @service.to_xml(:root => 'service', :dasherize => false), :location => "none" }
+ format.xml { render :xml => @service.to_xml(:root => 'service', :dasherize => false, :indent => 2), :location => "none" }
format.json { render :json => @service.to_json, :location => "none" }
end
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org