Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> jr_ntp : Fixed HTML rendering.
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Fri, 11 Sep 2009 09:55:40 +0200
  • Message-id: <E1MpkqP-00053g-BX@xxxxxxxxxxxxxxxx>
ref: refs/heads/jr_ntp
commit b59359d52a76450846626561163f05c032cb2113
Author: Martin Vidner <mvidner@xxxxxxx>
Date: Fri Sep 11 09:55:40 2009 +0200

Fixed HTML rendering.

ARGH, having it on a single line means that it LOOKS covered by
tests when ifact it is NOT.
IMO we should remove the HTML from REST.
---
.../controllers/network/interfaces_controller.rb | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/plugins/network/app/controllers/network/interfaces_controller.rb
b/plugins/network/app/controllers/network/interfaces_controller.rb
index a8f491a..bc71feb 100644
--- a/plugins/network/app/controllers/network/interfaces_controller.rb
+++ b/plugins/network/app/controllers/network/interfaces_controller.rb
@@ -29,7 +29,9 @@ class Network::InterfacesController < ApplicationController
@ifce = Interface.find(params[:id])

respond_to do |format|
- format.html { render :xml => @difce.to_xml( :root => "interfaces",
:dasherize => false ) }
+ format.html do
+ render :xml => difce.to_xml( :root => "interfaces", :dasherize =>
false )
+ end
format.xml { render :xml => @ifce.to_xml( :root => "interfaces",
:dasherize => false ) }
format.json { render :json => @ifce.to_json }
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages